Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
client
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
be297361
authored
Jul 11, 2024
by
曾凡江
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加卡时选择
parent
9bde6036
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/views/computingResource/resourceList.vue
+3
-3
No files found.
src/views/computingResource/resourceList.vue
View file @
be297361
...
...
@@ -186,7 +186,7 @@
<el-input-number
v-if=
"item.type === 2"
v-model=
"item.value"
:min=
"0"
@
change=
"orderComputerPrice"
style=
"width: 110px"
/>
<el-radio-group
v-if=
"[0,1].includes(item.type)"
v-model=
"item.value"
@
change=
"orderComputerPrice"
>
<el-radio-group
v-if=
"[0,1
,4
].includes(item.type)"
v-model=
"item.value"
@
change=
"orderComputerPrice"
>
<el-radio-button
v-for=
"option in item.options"
:label=
"option.id"
>
{{
option
.
model
+
option
.
unit
}}
</el-radio-button>
...
...
@@ -304,7 +304,7 @@ function selectedProduct(type, id) {
selectedId
.
value
=
id
getRDetail
({
id
}).
then
(
res
=>
{
res
.
data
.
options
.
forEach
(
item
=>
{
if
([
0
,
1
].
includes
(
item
.
type
))
{
if
([
0
,
1
,
4
].
includes
(
item
.
type
))
{
item
.
value
=
item
.
options
[
0
].
id
}
if
(
item
.
type
===
2
)
{
...
...
@@ -322,7 +322,7 @@ function initSubmitData() {
id
:
selectedId
.
value
,
num
:
form
.
value
.
num
,
computerItems
:
productDetail
.
value
.
options
.
map
(
item
=>
{
if
([
0
,
1
].
includes
(
item
.
type
))
{
if
([
0
,
1
,
4
].
includes
(
item
.
type
))
{
return
{
id
:
item
.
id
,
name
:
item
.
label
,
...
...
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