Commit 60b15d94 by caoyanzhi

update: 数据对话厅菜单调整

parent daa7b984
......@@ -8,7 +8,6 @@
}
#app .dm-wrap{
margin:24px;
background:#FFF;
padding:24px;
// min-height: 500px;
......
......@@ -52,16 +52,16 @@ export default {
this.bodyHeight = document.body.clientHeight || document.documentElement.clientHeight;
},
computed: {
asideShow() {
return this.$store.state.marketing.asideShow;
},
// asideShow() {
// return this.$store.state.marketing.asideShow;
// },
contentTitle() {
const name = (this.$route.meta && this.$route.meta.aliasName) || this.$route.name; // 有些params跳转的需要用到route.name 这种情况如果meta中有aliasName,优先aliasName
return name;
},
breadcrumb() {
return this.$store.state.marketing.breadcrumb;
},
// breadcrumb() {
// return this.$store.state.marketing.breadcrumb;
// },
layoutTips() {
return this.$store.state.marketing.layoutTips;
},
......
......@@ -41,12 +41,28 @@ export default [
name: 'layout',
component: Layout,
redirect: '/wechat/record',
children: [card, ecm, scan, game, message, wechat, msg, calllog, recharge, evaluation, ewash, activity, cdKey, pop, signIn]
},
{
path: '/marketing-app-list',
name: '营销活动',
component: activityCenter
children: [
{
path: '/marketing-app-list',
name: '营销活动',
component: activityCenter
},
card,
ecm,
scan,
game,
message,
wechat,
msg,
calllog,
recharge,
evaluation,
ewash,
activity,
cdKey,
pop,
signIn
]
},
{
path: '/401',
......
......@@ -10,8 +10,6 @@ const state = {
total: 0,
leftMenu: [],
storeObj: {},
asideShow: false,
breadcrumb: [],
layoutTips: '',
isShowSelf: false, // 展示是否显示 '仅看本人' btn 在app.vue调用 每次刷新都会获取
openFlag: false, // 列表是否显示创建人
......@@ -93,12 +91,6 @@ const mutations = {
}
}
},
aside_handler(state, val) {
state.asideShow = val;
},
mutations_breadcrumb(state, val) {
state.breadcrumb = val;
},
mutations_layoutTips(state, val) {
state.layoutTips = val;
},
......
......@@ -177,10 +177,6 @@ export default {
behavior: 'smooth'
});
this.getData();
},
created() {
this.$store.commit('aside_handler', false);
this.$store.commit('mutations_breadcrumb', [{ name: '数据对话厅', path: '/activity/list' }, { name: '数据概览', path: '' }]); // eslint-disable-line
}
};
</script>
......
<template>
<div class="dm-wrap" v-loading="loading">
<el-form ref="form" :model="ruleForm" label-width="140px" :rules="rules">
<el-form ref="form" :model="ruleForm" label-width="110px" :rules="rules">
<el-form-item prop="name" label="数据对话名称">
<dm-input v-model="ruleForm.name" class="w300" placeholder="请输入数据对话名称" :byteType="1" :maxlength="10"></dm-input>
</el-form-item>
......@@ -190,15 +190,6 @@ export default {
if (this.isEdit) {
this.getInfo();
}
},
created() {
// 设置面包屑
let breadcrumbName = '数据对话编辑';
if (this.isAdd) {
breadcrumbName = '数据对话新增';
}
this.$store.commit('aside_handler', false);
this.$store.commit('mutations_breadcrumb', [{ name: '数据对话厅', path: '/activity/list' }, { name: breadcrumbName, path: '' }]); // eslint-disable-line
}
};
</script>
......
......@@ -77,8 +77,6 @@ export default {
},
mixins: [talbeMethods],
created() {
this.$store.commit('aside_handler', false);
this.$store.commit('mutations_breadcrumb', [{ name: '数据对话厅', path: '/activity/list' }, { name: '历史数据对话' }]); // eslint-disable-line
this.getTableList();
},
methods: {
......
......@@ -84,8 +84,6 @@ export default {
},
mixins: [talbeMethods],
created() {
this.$store.commit('aside_handler', false);
this.$store.commit('mutations_breadcrumb', [{ name: '数据对话厅', path: '' }]); // eslint-disable-line
this.getTableList();
},
methods: {
......
<template>
<dm-layout projectName="integral-mall">
<div style="padding:20px;">
<list-item v-for="item in list" :key="item" :item="item" />
</div>
</dm-layout>
<div style="padding:20px;">
<list-item v-for="item in list" :key="item" :item="item" />
</div>
</template>
<script>
import ListItem from './components/ListItem.vue';
......
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