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
45b4af0b
Commit
45b4af0b
authored
Jul 05, 2022
by
crushh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: dist
parent
2e170c1e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
7 deletions
+9
-7
aside-menu.vue
src/components/aside-menu.vue
+2
-0
template-config.vue
src/views/activity/template-config.vue
+2
-2
template-detail.vue
src/views/activity/template-detail.vue
+2
-2
template-list.vue
src/views/activity/template-list.vue
+3
-3
No files found.
src/components/aside-menu.vue
View file @
45b4af0b
...
...
@@ -82,12 +82,14 @@ export default {
'$route.path'
:
{
immediate
:
true
,
handler
(
path
)
{
console
.
log
(
path
);
this
.
activeTab
=
path
;
}
},
menu
:
{
immediate
:
true
,
handler
(
menu
)
{
let
menuTree
=
menu
.
filter
(
item
=>
item
.
code
===
'marketing_operation'
)[
0
]
||
{};
console
.
log
(
menu
,
menuTree
);
this
.
tabData
=
(
menuTree
.
nodeChildren
||
[]).
map
(
item
=>
{
...
...
src/views/activity/template-config.vue
View file @
45b4af0b
...
...
@@ -13,8 +13,8 @@
<el-progress
:percentage=
"(item.configNum/20)*100"
:show-text=
"false"
></el-progress>
</div>
<div
class=
"btn"
>
<el-button
v-if=
"item.configNum > 0"
@
click=
"$router.push(`/activity/template-list?type=$
{item.templateType}`)">模板列表
</el-button>
<el-button
v-else
@
click=
"$router.push(`/activity/template-detail/$
{item.type}`);">前往配置
</el-button>
<el-button
v-if=
"item.configNum > 0"
@
click=
"$router.push(`/activity/template-list?type=$
{item.templateType}
&
tabId=${$route.query.tabId}
`)">模板列表
</el-button>
<el-button
v-else
@
click=
"$router.push(`/activity/template-detail/$
{item.type}
&
tabId=${$route.query.tabId}
`);">前往配置
</el-button>
</div>
</div>
</div>
...
...
src/views/activity/template-detail.vue
View file @
45b4af0b
...
...
@@ -2,8 +2,8 @@
<div>
<div
class=
"pt10 pb10 pl20 border-bottom"
>
<el-breadcrumb
separator-class=
"el-icon-arrow-right"
>
<el-breadcrumb-item
:to=
"
{ path:
'/activity/template-config'
}">营销游戏配置
</el-breadcrumb-item>
<el-breadcrumb-item
:to=
"
{ path: `/activity/template-list?type=${$route.params.type}` }">模板列表
</el-breadcrumb-item>
<el-breadcrumb-item
:to=
"
{ path:
`/activity/template-config?tabId=${$route.query.tabId}`
}">营销游戏配置
</el-breadcrumb-item>
<el-breadcrumb-item
:to=
"
{ path: `/activity/template-list?type=${$route.params.type}
&
tabId=${$route.query.tabId}
` }">模板列表
</el-breadcrumb-item>
<el-breadcrumb-item>
{{
(
$route
.
query
.
id
?
'编辑'
:
'新增'
)
+
'模板'
}}
</el-breadcrumb-item>
</el-breadcrumb>
</div>
...
...
src/views/activity/template-list.vue
View file @
45b4af0b
...
...
@@ -2,7 +2,7 @@
<div>
<div
class=
"pt10 pb10 pl20 border-bottom"
>
<el-breadcrumb
separator-class=
"el-icon-arrow-right"
>
<el-breadcrumb-item
:to=
"
{ path:
'/activity/template-config'
}">营销游戏配置
</el-breadcrumb-item>
<el-breadcrumb-item
:to=
"
{ path:
`/activity/template-config?tabId=${$route.query.tabId}`
}">营销游戏配置
</el-breadcrumb-item>
<el-breadcrumb-item>
模板列表
</el-breadcrumb-item>
</el-breadcrumb>
</div>
...
...
@@ -89,10 +89,10 @@ export default {
});
},
addTemplate
()
{
this
.
$router
.
push
(
`/activity/template-detail/
${
this
.
$route
.
query
.
type
}
`
);
this
.
$router
.
push
(
`/activity/template-detail/
${
this
.
$route
.
query
.
type
}
?tabId=
${
this
.
$route
.
query
.
tabId
}
`
);
},
edit
(
row
)
{
this
.
$router
.
push
({
path
:
`/activity/template-detail/
${
this
.
$route
.
query
.
type
}
`
,
query
:
{
id
:
row
.
templateId
}
});
this
.
$router
.
push
({
path
:
`/activity/template-detail/
${
this
.
$route
.
query
.
type
}
?tabId=
${
this
.
$route
.
query
.
tabId
}
`
,
query
:
{
id
:
row
.
templateId
}
});
},
handleSwitch
(
statusFlag
,
templateId
)
{
this
.
$confirm
(
`
${
statusFlag
==
0
?
'关闭后,商户在创建此类型游戏时将无法选用此游戏模板,确认关闭'
:
'开启后,商户将可引用次模板,确认开启'
}
?`
,
`
${
statusFlag
==
0
?
'关闭'
:
'开启'
}
提示`
,
{
...
...
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