Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
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 26c8e49d
authored
Mar 13, 2024
by
杨北旺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
内容管理
1 parent
1fb3b917
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
4 deletions
src/views/contentManager/contentManagerList.vue
src/views/contentManager/contentManagerList.vue
View file @
26c8e49
...
...
@@ -75,7 +75,7 @@ export default {
type
:
""
,
scene
:
""
,
showChannel
:
""
,
showMerchant
:
""
,
merchantId
:
""
,
status
:
""
},
showFormData
:
[
...
...
@@ -115,7 +115,7 @@ export default {
},
{
label
:
"可见门店"
,
name
:
"
showMerchant
"
,
name
:
"
merchantId
"
,
type
:
"select"
,
optionList
:
[],
optionId
:
"merchantNo"
,
...
...
@@ -144,7 +144,7 @@ export default {
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
listName
:
"list"
,
mutiSelectUniqueKey
:
"id"
,
mutiSelectName
:
"
title
"
,
mutiSelectName
:
"
contentIndex
"
,
tableOption
:
{
width
:
"170"
},
...
...
@@ -233,6 +233,8 @@ export default {
var
params
=
{
currentPage
:
1
,
pageSize
:
100
,
merchantIdName
:
""
}
getMerchantList
(
params
).
then
((
res
)
=>
{
this
.
getBaseData
(
res
.
list
)
}).
catch
(()
=>
{
this
.
getBaseData
([])
})
},
...
...
@@ -257,7 +259,7 @@ export default {
this
.
baseData
[
item
.
optionsName
]
)
}
if
(
item
.
type
===
"select"
&&
item
.
name
===
"
showMerchant
"
)
{
if
(
item
.
type
===
"select"
&&
item
.
name
===
"
merchantId
"
)
{
res
.
unshift
({
merchantNo
:
""
,
merchantName
:
"全部"
...
...
@@ -294,6 +296,21 @@ export default {
})
},
mutiStartOrStop
(
type
)
{
let
selectedData
=
[]
console
.
log
(
this
.
$refs
.
contentTable
.
mutiSelectArr
);
if
(
this
.
$refs
.
contentTable
.
mutiSelectArr
.
contentIndex
)
{
selectedData
=
this
.
$refs
.
contentTable
.
mutiSelectArr
.
contentIndex
}
let
status
=
selectedData
.
map
(
v
=>
{
return
v
.
status
})
||
[]
if
(
status
.
includes
(
0
)
||
!
selectedData
.
length
)
{
// 包含0草稿 未选择
this
.
$message
({
message
:
`请选择
${
type
==
2
?
'已停用'
:
'已开启'
}
的内容`
,
type
:
'warning'
,
showClose
:
true
})
return
false
}
const
title
=
type
==
2
?
"停用内容,对应的渠道和门店将无法查看该内容"
...
...
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