Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
marketing-opeartion
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gic-web
marketing-opeartion
Commits
fa754bfa
Commit
fa754bfa
authored
Mar 08, 2022
by
chenyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: update
parent
30eb18e6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
CategoryDialog.vue
src/views/activity/component/CategoryDialog.vue
+7
-2
index.vue
src/views/activity/index.vue
+1
-2
No files found.
src/views/activity/component/CategoryDialog.vue
View file @
fa754bfa
...
...
@@ -45,7 +45,7 @@
</template>
<
script
>
import
requestApi
from
'@/api/operation'
;
const
{
activityCategoryGetList
,
activityCategoryUpdate
}
=
requestApi
;
const
{
activity
GetList
,
activity
CategoryGetList
,
activityCategoryUpdate
}
=
requestApi
;
import
draggable
from
'vuedraggable'
;
export
default
{
name
:
'CategoryDialog'
,
...
...
@@ -121,7 +121,12 @@ export default {
}
});
},
onDeleteItem
(
idx
)
{
async
onDeleteItem
(
idx
)
{
// activityGetList
const
{
result
=
[]
}
=
await
activityGetList
({
activityCategoryId
:
this
.
list
[
idx
].
activityCategoryId
});
if
(
Array
.
isArray
(
result
)
&&
result
.
length
)
{
return
this
.
$message
.
error
(
'该分类有活动在引用,不可删除!'
);
}
this
.
list
.
splice
(
idx
,
1
);
delete
this
.
nameMap
[
this
.
list
[
idx
].
categoryName
];
},
...
...
src/views/activity/index.vue
View file @
fa754bfa
...
...
@@ -77,11 +77,10 @@ export default {
methods
:
{
getTableHeader
()
{
this
.
tableHeader
=
[
{
label
:
'活动分类'
,
prop
:
'activityCategoryId'
,
width
:
'120'
,
formatter
:
({
activityCategoryId
=
''
})
=>
(
activityCategoryId
?
this
.
categoryFilter
[
activityCategoryId
]
:
'--'
)
},
{
label
:
'活动分类'
,
prop
:
'activityCategoryId'
,
width
:
'120'
,
formatter
:
({
activityCategoryId
=
''
})
=>
(
this
.
categoryFilter
[
activityCategoryId
]
?
this
.
categoryFilter
[
activityCategoryId
]
:
'--'
)
},
{
label
:
'活动名称'
,
prop
:
'activityName'
,
'min-width'
:
'100'
},
{
label
:
'活动说明'
,
prop
:
'activityExplain'
,
'min-width'
:
'100'
},
{
label
:
'标签文案'
,
prop
:
'activityRemark'
,
'min-width'
:
'50'
},
{
label
:
'跳转路径'
,
prop
:
'jumpUrl'
,
'min-width'
:
'100'
},
{
label
:
'排序号'
,
prop
:
'activitySort'
,
width
:
'100'
},
{
label
:
'活动图片'
,
prop
:
'activityImage'
,
width
:
'100'
,
isImage
:
true
},
{
...
...
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