Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-discover
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 80159696
authored
Feb 24, 2023
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
390ac79e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
11 deletions
src/views/store/add.vue
src/views/store/add.vue
View file @
8015969
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
</div>
</div>
<div
slot=
"channelHtml"
>
<div
slot=
"channelHtml"
>
<el-checkbox-group
v-model=
"editForm.channelIds"
@
change=
"handleCheckedChannelChange"
>
<el-checkbox-group
v-model=
"editForm.channelIds"
@
change=
"handleCheckedChannelChange"
>
<el-checkbox
v-for=
"channel in channelList"
:label=
"channel.
id"
:key=
"channel.id"
>
{{
channel
.
n
ame
}}
</el-checkbox>
<el-checkbox
v-for=
"channel in channelList"
:label=
"channel.
channelType"
:key=
"channel.channelType"
>
{{
channel
.
channelN
ame
}}
</el-checkbox>
</el-checkbox-group>
</el-checkbox-group>
</div>
</div>
</glsx-combi-form>
</glsx-combi-form>
...
@@ -38,8 +38,8 @@ export default {
...
@@ -38,8 +38,8 @@ export default {
merchantId
:
this
.
$route
.
query
.
merchantId
?
this
.
$route
.
query
.
merchantId
:
''
,
merchantId
:
this
.
$route
.
query
.
merchantId
?
this
.
$route
.
query
.
merchantId
:
''
,
editForm
:
{
editForm
:
{
channelIds
:
[],
channelIds
:
[],
merchantId
:
''
,
merchantId
:
''
,
merchantName
:
''
merchantName
:
''
},
},
merchantFlag
:
false
,
merchantFlag
:
false
,
editFormData
:
[
editFormData
:
[
...
@@ -55,12 +55,7 @@ export default {
...
@@ -55,12 +55,7 @@ export default {
}
}
],
],
selectedList
:
[],
selectedList
:
[],
channelList
:
[
channelList
:
[],
{
name
:
'新车专区'
,
id
:
1
},
{
name
:
'膜类专区'
,
id
:
2
},
{
name
:
'限时众筹'
,
id
:
3
},
{
name
:
'定保专区'
,
id
:
4
}
],
relateStoreVisible
:
false
,
// 选择门店
relateStoreVisible
:
false
,
// 选择门店
editRule
:
{
editRule
:
{
channelIds
:
[{
required
:
true
,
message
:
'请选择频道名称'
,
trigger
:
'change'
}]
channelIds
:
[{
required
:
true
,
message
:
'请选择频道名称'
,
trigger
:
'change'
}]
...
@@ -68,16 +63,29 @@ export default {
...
@@ -68,16 +63,29 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
this
.
getChannelList
()
if
(
this
.
merchantId
)
{
if
(
this
.
merchantId
)
{
this
.
getconfigMerchant
()
this
.
getconfigMerchant
()
this
.
getMerchantData
()
this
.
getMerchantData
()
}
}
},
},
methods
:
{
methods
:
{
//获取频道名称
getChannelList
()
{
this
.
$apis
.
channel
.
getChannelListApi
({
pageSize
:
100
,
pageNum
:
1
})
.
then
(
res
=>
{
this
.
channelList
=
res
.
list
})
},
getMerchantData
()
{
getMerchantData
()
{
var
params
=
{
var
params
=
{
merchantId
:
this
.
merchantId
,
merchantId
:
this
.
merchantId
,
pageSize
:
10
,
pageSize
:
10
0
,
currentPage
:
1
currentPage
:
1
}
}
...
@@ -143,7 +151,7 @@ export default {
...
@@ -143,7 +151,7 @@ export default {
}
}
}
}
</
script
>
</
script
>
<
style
scoped
lang=
'scss'
>
<
style
scoped
lang=
"scss"
>
.add-wrap
{
.add-wrap
{
.container
{
.container
{
min-height
:
680px
;
min-height
:
680px
;
...
...
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