提交 9ef13c07 编写于 作者: tao.wu's avatar tao.wu

no message

上级 09cd06e8
...@@ -36,31 +36,6 @@ export default { ...@@ -36,31 +36,6 @@ export default {
} }
}, },
data() { data() {
// storageIdType=2才展示随访管理模块
const storageIdType = localStorage.getItem('storageIdType');
const followSider = (storageIdType=='2') ? {
title: '随访管理',
icon: 'el-icon-edit-outline',
index: 'followup',
subs: [
{
title: '计划管理',
icon: 'el-icon-setting',
index: 'followup/plan-manage/plan-list'
},
{
title: '预约管理',
icon: 'el-icon-setting',
index: 'followup/reservation-manage/reservation-list'
},
{
title: '录入管理',
icon: 'el-icon-setting',
index: 'followup/record-manage/record-list'
}
]
} : {};
return { return {
items: [ items: [
{ {
...@@ -95,7 +70,7 @@ export default { ...@@ -95,7 +70,7 @@ export default {
index: 'role' index: 'role'
} }
] ]
}, followSider }
] ]
} }
}, },
...@@ -105,7 +80,34 @@ export default { ...@@ -105,7 +80,34 @@ export default {
} }
}, },
created() { created() {
vm = this vm = this;
console.log('beforeRouteEnter===》')
// storageIdType=2才展示随访管理模块
const storageIdType = localStorage.getItem('storageIdType');
console.log((storageIdType=='2'))
const followSider = (storageIdType=='2') ? {
title: '随访管理',
icon: 'el-icon-edit-outline',
index: 'followup',
subs: [
{
title: '计划管理',
icon: 'el-icon-setting',
index: 'followup/plan-manage/plan-list'
},
{
title: '预约管理',
icon: 'el-icon-setting',
index: 'followup/reservation-manage/reservation-list'
},
{
title: '录入管理',
icon: 'el-icon-setting',
index: 'followup/record-manage/record-list'
}
]
} : {};
vm.items.push(followSider)
}, },
watch: { watch: {
authList(newVal, oldVal){ authList(newVal, oldVal){
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册