Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
glsx-dj-oss-equity
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 43a8368c
authored
Jul 20, 2021
by
liwk
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
d55f1bb5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
15 deletions
src/components/equity-dialog/index.vue
src/views/equity/list/index.vue
src/components/equity-dialog/index.vue
View file @
43a8368
...
@@ -16,10 +16,12 @@
...
@@ -16,10 +16,12 @@
<el-form-item
<el-form-item
v-if=
"type==1"
v-if=
"type==1"
label=
"服务提供方"
label=
"服务提供方"
required
prop=
"supplier"
prop=
"supplier"
>
>
<el-select
v-model=
"form.supplier"
>
<el-select
v-model=
"form.supplier"
@
change=
"changeSupplier"
>
<el-option
<el-option
v-for=
"item in supplierList"
v-for=
"item in supplierList"
:key=
"item.value"
:key=
"item.value"
...
@@ -31,7 +33,6 @@
...
@@ -31,7 +33,6 @@
<template
v-if=
"type==2"
>
<template
v-if=
"type==2"
>
<el-form-item
<el-form-item
label=
"产品提供方"
label=
"产品提供方"
required
prop=
"supplier"
prop=
"supplier"
>
>
<el-select
v-model=
"form.supplier"
>
<el-select
v-model=
"form.supplier"
>
...
@@ -43,12 +44,12 @@
...
@@ -43,12 +44,12 @@
</el-form-item>
</el-form-item>
<el-form-item
<el-form-item
label=
"选择品牌"
label=
"选择品牌"
required
prop=
"brandName"
prop=
"brandName"
>
>
<el-select
<el-select
v-model=
"form.brandName"
v-model=
"form.brandName"
@
change=
"changeBrandName"
@
change=
"changeBrandName"
filterable
>
>
<el-option
<el-option
v-for=
"item in brandList"
v-for=
"item in brandList"
...
@@ -59,14 +60,10 @@
...
@@ -59,14 +60,10 @@
</el-form-item>
</el-form-item>
<el-form-item
<el-form-item
label=
"商品形态"
label=
"商品形态"
required
prop=
"appearance"
prop=
"appearance"
v-if=
"form.brandName"
v-if=
"form.brandName"
>
>
<el-select
<el-select
v-model=
"form.appearance"
>
v-model=
"form.appearance"
@
change=
"change"
>
<el-option
<el-option
v-for=
"item in appearanceList"
v-for=
"item in appearanceList"
:key=
"item.value"
:key=
"item.value"
...
@@ -78,7 +75,6 @@
...
@@ -78,7 +75,6 @@
<div
class=
"flex"
>
<div
class=
"flex"
>
<el-form-item
<el-form-item
label=
"权益名称"
label=
"权益名称"
required
prop=
"equityName"
prop=
"equityName"
>
>
<el-input
<el-input
...
@@ -88,7 +84,6 @@
...
@@ -88,7 +84,6 @@
</el-form-item>
</el-form-item>
<el-form-item
<el-form-item
label=
"描述"
label=
"描述"
required
prop=
"equityDesc"
prop=
"equityDesc"
>
>
<el-input
<el-input
...
@@ -185,7 +180,7 @@ export default {
...
@@ -185,7 +180,7 @@ export default {
],
],
rules
:
{
rules
:
{
supplier
:
[
supplier
:
[
{
required
:
true
,
message
:
'请选择
服务
提供方'
,
trigger
:
'change'
}
{
required
:
true
,
message
:
'请选择提供方'
,
trigger
:
'change'
}
],
],
brandName
:
[
brandName
:
[
{
required
:
true
,
message
:
'请选择品牌'
,
trigger
:
'change'
}
{
required
:
true
,
message
:
'请选择品牌'
,
trigger
:
'change'
}
...
@@ -276,13 +271,22 @@ export default {
...
@@ -276,13 +271,22 @@ export default {
}
}
}
}
},
},
change
(
e
)
{
changeSupplier
(
e
)
{
console
.
log
(
e
)
this
.
supplierList
.
map
(
i
=>
{
if
(
i
.
value
==
e
)
{
this
.
form
.
equityName
=
i
.
label
}
})
},
},
changeBrandName
(
e
)
{
changeBrandName
(
e
)
{
console
.
log
(
e
)
console
.
log
(
e
)
this
.
form
.
brandId
=
e
this
.
form
.
brandId
=
e
this
.
brandList
.
map
(
i
=>
{
this
.
brandList
.
map
(
i
=>
{
if
(
i
.
brandId
==
e
)
this
.
form
.
brandName
=
i
.
brandName
if
(
i
.
brandId
==
e
)
{
this
.
form
.
brandName
=
i
.
brandName
this
.
form
.
equityName
=
i
.
brandName
}
})
})
},
},
submit
(
type
)
{
submit
(
type
)
{
...
...
src/views/equity/list/index.vue
View file @
43a8368
...
@@ -74,6 +74,7 @@
...
@@ -74,6 +74,7 @@
size=
"small"
size=
"small"
@
keyup
.
enter
.
native=
"handleInputConfirm"
@
keyup
.
enter
.
native=
"handleInputConfirm"
@
blur=
"handleInputConfirm"
@
blur=
"handleInputConfirm"
maxlength=
"8"
>
>
</el-input>
</el-input>
<el-button
<el-button
...
@@ -142,7 +143,7 @@ export default {
...
@@ -142,7 +143,7 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
//
this.init()
this
.
init
()
},
},
methods
:
{
methods
:
{
init
()
{
init
()
{
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment