Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
apaas-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gzga-jzapi
apaas-ui
Commits
baf8aa03
Commit
baf8aa03
authored
Nov 04, 2020
by
刘殿昕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
disk&eci
parent
325cd2f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
src/components/shop-cloud/shop-cloud.vue
src/components/shop-cloud/shop-cloud.vue
+10
-0
No files found.
src/components/shop-cloud/shop-cloud.vue
View file @
baf8aa03
...
...
@@ -1062,11 +1062,13 @@ export default {
let
priceObj
=
this
.
cpu_memory
.
find
((
item
)
=>
{
return
item
.
cpu
==
8
&&
item
.
memory
==
16
;
}
);
this
.
eci_single_money
=
Number
(
priceObj
.
price
);
sumCM
+=
Number
(
priceObj
.
price
);
}
else
if
(
this
.
formNew
.
memory
==
"
32
"
)
{
let
priceObj
=
this
.
cpu_memory
.
find
((
item
)
=>
{
return
item
.
cpu
==
8
&&
item
.
memory
==
32
;
}
);
this
.
eci_single_money
=
Number
(
priceObj
.
price
);
sumCM
+=
Number
(
priceObj
.
price
);
}
}
else
if
(
this
.
formNew
.
cpu
==
"
16
"
)
{
...
...
@@ -1074,11 +1076,13 @@ export default {
let
priceObj
=
this
.
cpu_memory
.
find
((
item
)
=>
{
return
item
.
cpu
==
16
&&
item
.
memory
==
32
;
}
);
this
.
eci_single_money
=
Number
(
priceObj
.
price
);
sumCM
+=
Number
(
priceObj
.
price
);
}
else
if
(
this
.
formNew
.
memory
==
"
64
"
)
{
let
priceObj
=
this
.
cpu_memory
.
find
((
item
)
=>
{
return
item
.
cpu
==
16
&&
item
.
memory
==
64
;
}
);
this
.
eci_single_money
=
Number
(
priceObj
.
price
);
sumCM
+=
Number
(
priceObj
.
price
);
}
}
...
...
@@ -1090,6 +1094,7 @@ export default {
this
.
formNew
.
appDuration
>=
1
)
{
if
(
this
.
hard_disk
&&
this
.
hard_disk
.
length
!=
0
)
{
this
.
disk_single_money
=
Number
(
this
.
hard_disk
[
0
].
price
);
sumDisk
+=
Number
(
this
.
formNew
.
dataDisk
)
*
Number
(
this
.
formNew
.
perDataDisk
)
*
...
...
@@ -1126,11 +1131,13 @@ export default {
let
priceObj
=
this
.
cpu_memory
.
find
((
item
)
=>
{
return
item
.
cpu
==
8
&&
item
.
memory
==
16
;
}
);
this
.
eci_single_money
=
Number
(
priceObj
.
price
);
sumCM
+=
Number
(
priceObj
.
price
);
}
else
if
(
this
.
formOld
.
memory
==
"
32
"
)
{
let
priceObj
=
this
.
cpu_memory
.
find
((
item
)
=>
{
return
item
.
cpu
==
8
&&
item
.
memory
==
32
;
}
);
this
.
eci_single_money
=
Number
(
priceObj
.
price
);
sumCM
+=
Number
(
priceObj
.
price
);
}
}
else
if
(
this
.
formOld
.
cpu
==
"
16
"
)
{
...
...
@@ -1138,11 +1145,13 @@ export default {
let
priceObj
=
this
.
cpu_memory
.
find
((
item
)
=>
{
return
item
.
cpu
==
16
&&
item
.
memory
==
32
;
}
);
this
.
eci_single_money
=
Number
(
priceObj
.
price
);
sumCM
+=
Number
(
priceObj
.
price
);
}
else
if
(
this
.
formOld
.
memory
==
"
64
"
)
{
let
priceObj
=
this
.
cpu_memory
.
find
((
item
)
=>
{
return
item
.
cpu
==
16
&&
item
.
memory
==
64
;
}
);
this
.
eci_single_money
=
Number
(
priceObj
.
price
);
sumCM
+=
Number
(
priceObj
.
price
);
}
}
...
...
@@ -1154,6 +1163,7 @@ export default {
this
.
formOld
.
appDuration
>=
1
)
{
if
(
this
.
hard_disk
&&
this
.
hard_disk
.
length
!=
0
)
{
this
.
disk_single_money
=
Number
(
this
.
hard_disk
[
0
].
price
);
sumDisk
+=
Number
(
this
.
formOld
.
dataDisk
)
*
Number
(
this
.
formOld
.
perDataDisk
)
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment