Commit 45b4af0b by crushh

update: dist

parent 2e170c1e
......@@ -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 => {
......
......@@ -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>
......
......@@ -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>
......
......@@ -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 ? '关闭' : '开启'}提示`, {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment