Commit c36710e4 by caoyanzhi

update: 菜单数据

parent 89bbc105
...@@ -32,6 +32,11 @@ function checkData(data, level) { ...@@ -32,6 +32,11 @@ function checkData(data, level) {
console.log(el, '未配置menuUrl'); console.log(el, '未配置menuUrl');
return !flag; return !flag;
} }
flag = el.menu[1].indexOf('/') != 0;
if (!flag) {
console.log(el, 'menuUrl不能以/开头');
return !flag;
}
} }
if (flag && Array.isArray(el.children)) { if (flag && Array.isArray(el.children)) {
flag = !checkData(el.children, level + 1); flag = !checkData(el.children, level + 1);
......
...@@ -20,16 +20,22 @@ module.exports = [ ...@@ -20,16 +20,22 @@ module.exports = [
{ {
menu: ['客户基础设置', '', 1], menu: ['客户基础设置', '', 1],
children: [ children: [
{ menu: ['客户展示设置', 'memberShowSet', 1] }, // {
// menu: ['客户展示设置', '', 1],// TODO 本次新增页面
// children: [
// { menu: ['新增特殊策略', '', 1] },// TODO 本次新增页面
// { menu: ['编辑特殊策略', '', 1] },// TODO 本次新增页面
// ]
// },
{ {
menu: ['客户分组设置', 'memberGroupSet', 1], menu: ['客户分组设置', 'memberGroupSet', 1],
children: [ children: [
{ menu: ['新建模板', 'addGroupTemplate', 1 ]}, { menu: ['新建模板', 'addGroupTemplate', 1 ]},
{ menu: ['编辑', 'editGroupTemplate', 1] }, // update 本次新增路径 { menu: ['编辑模板', 'editGroupTemplate', 1] }, // update 本次新增路径
{ menu: ['门店范围设置', 'storeRangeSet', 1] }, { menu: ['门店范围设置', 'storeRangeSet', 1] },
] ]
}, },
{ menu: ['客户管理设置', 'memberSearchSet', 1] }, { menu: ['客户管理设置', 'memberSearchSet', 1] },// TODO 本次新增页面
{ menu: ['客户详情设置', 'memberDetailSet', 1] } { menu: ['客户详情设置', 'memberDetailSet', 1] }
] ]
} }
...@@ -45,8 +51,8 @@ module.exports = [ ...@@ -45,8 +51,8 @@ module.exports = [
// menu: ['会话任务', '', 1], // TODO 本次新增页面 // menu: ['会话任务', '', 1], // TODO 本次新增页面
// children: [ // children: [
// { menu: ['新增规则策略', '', 1] }, // TODO 本次新增页面 // { menu: ['新增规则策略', '', 1] }, // TODO 本次新增页面
// { menu: ['查看', '', 1] }, // TODO 本次新增页面 // { menu: ['查看规则策略', '', 1] }, // TODO 本次新增页面
// { menu: ['编辑', '', 1] }, // TODO 本次新增页面 // { menu: ['编辑规则策略', '', 1] }, // TODO 本次新增页面
// ] // ]
// } // }
] ]
...@@ -58,7 +64,7 @@ module.exports = [ ...@@ -58,7 +64,7 @@ module.exports = [
menu: ['卡券列表', 'cardList', 1], menu: ['卡券列表', 'cardList', 1],
children: [ children: [
{ menu: ['新增卡券', 'newCard', 1] }, { menu: ['新增卡券', 'newCard', 1] },
{ menu: ['编辑', 'editCard', 1] }, // update 本次新增路径 { menu: ['编辑卡券', 'editCard', 1] }, // update 本次新增路径
] ]
}, },
{ menu: ['卡券记录', 'cardRecord', 1] }, { menu: ['卡券记录', 'cardRecord', 1] },
...@@ -71,8 +77,8 @@ module.exports = [ ...@@ -71,8 +77,8 @@ module.exports = [
// menu: ['评价回访设置', '', 1], // TODO 本次新增页面 // menu: ['评价回访设置', '', 1], // TODO 本次新增页面
// children: [ // children: [
// { menu: ['新增规则策略', '', 1] }, // TODO 本次新增页面 // { menu: ['新增规则策略', '', 1] }, // TODO 本次新增页面
// { menu: ['编辑', '', 1] }, // TODO 本次新增页面 // { menu: ['编辑规则策略', '', 1] }, // TODO 本次新增页面
// { menu: ['查看', '', 1] }, // TODO 本次新增页面 // { menu: ['查看规则策略', '', 1] }, // TODO 本次新增页面
// ] // ]
// } // }
] ]
...@@ -113,7 +119,7 @@ module.exports = [ ...@@ -113,7 +119,7 @@ module.exports = [
{ {
menu: ['云日报记录', 'dailyRecord', 1], menu: ['云日报记录', 'dailyRecord', 1],
children: [ children: [
{ menu: ['查看详情', 'dailyDetail', 1], } { menu: ['云日报记录详情', 'dailyDetail', 1], }
] ]
}, },
{ menu: ['云日报导出', 'dailyExport', 1] }, { menu: ['云日报导出', 'dailyExport', 1] },
...@@ -122,8 +128,8 @@ module.exports = [ ...@@ -122,8 +128,8 @@ module.exports = [
// menu: ['云日报设置', '', 1], // TODO 本次新增页面 // menu: ['云日报设置', '', 1], // TODO 本次新增页面
// children: [ // children: [
// { menu: ['新建模板', 'customReportSet', 1]}, // { menu: ['新建模板', 'customReportSet', 1]},
// { menu: ['复制', 'customReportCopy', 1]}, // update 本次新增路径 // { menu: ['复制模板', 'customReportCopy', 1]}, // update 本次新增路径
// { menu: ['编辑', 'customReportEdit', 1]} // update 本次新增路径 // { menu: ['编辑模板', 'customReportEdit', 1]} // update 本次新增路径
// ] // ]
// }, // },
] ]
...@@ -135,14 +141,18 @@ module.exports = [ ...@@ -135,14 +141,18 @@ module.exports = [
menu: ['月指标设置', 'monthList', 1], menu: ['月指标设置', 'monthList', 1],
children: [ children: [
{ {
menu: ['门店月指标', 'storeMonthTask', 1],}, menu: ['门店月指标', 'storeMonthTask', 1],
children: [
{ menu: ['导购月指标详情', 'salerMonthDetail', 1] }
]
},
{ menu: ['商户日权重', 'companyDaySet', 1]}, { menu: ['商户日权重', 'companyDaySet', 1]},
] ]
}, },
{ {
menu: ['月指标任务报表', 'monthTask', 1], menu: ['月指标任务报表', 'monthTask', 1],
children: [ children: [
{ menu: ['查看详情', 'monthTaskDetail', 1] } { menu: ['月指标任务详情', 'monthTaskDetail', 1] }
] ]
}, },
] ]
...@@ -153,13 +163,13 @@ module.exports = [ ...@@ -153,13 +163,13 @@ module.exports = [
{ {
menu: ['门店视图', 'grStoreList', 1], menu: ['门店视图', 'grStoreList', 1],
children: [ children: [
{ menu: ['查看详情', 'grStoreDetail/:id', 1]} { menu: ['详情', 'grStoreDetail/:id', 1]}
] ]
}, },
{ {
menu: ['计划视图', 'grTaskList', 1], menu: ['计划视图', 'grTaskList', 1],
children: [ children: [
{ menu: ['查看详情', 'grStoreList', 1]} { menu: ['详情', 'grStoreList', 1]}
] ]
}, },
] ]
...@@ -170,13 +180,13 @@ module.exports = [ ...@@ -170,13 +180,13 @@ module.exports = [
{ {
menu: ['门店视图', 'taskRecord', 1], menu: ['门店视图', 'taskRecord', 1],
children: [ children: [
{ menu: ['查看详情', 'taskDetail', 1] } { menu: ['详情', 'taskDetail', 1] }
] ]
}, },
{ {
menu: ['任务视图', 'taskView', 1], menu: ['任务视图', 'taskView', 1],
children: [ children: [
{ menu: ['查看详情', 'taskViewDetail', 1] } { menu: ['详情', 'taskViewDetail', 1] }
] ]
} }
] ]
...@@ -193,17 +203,57 @@ module.exports = [ ...@@ -193,17 +203,57 @@ module.exports = [
menu: ['欢迎语', 'salutatory', 1], menu: ['欢迎语', 'salutatory', 1],
children: [ children: [
{ menu: ['新建欢迎语', 'salutatorySet', 1] }, { menu: ['新建欢迎语', 'salutatorySet', 1] },
{ menu: ['编辑', 'editSalutatorySet', 1] } // update 本次新增路径 { menu: ['编辑欢迎语', 'editSalutatorySet', 1] } // update 本次新增路径
] ]
} }
] ]
}, },
{ menu: ['审核中心', '', 1]}, {
{ menu: ['通讯录', '', 1]}, menu: ['审核中心', '', 1],
{ menu: ['导购设置', '', 1]}, // children: [
{ menu: ['应用接入', '', 1]}, // {menu: ['待审核', '', 1]}, // update 本次新增页面
{ menu: ['授权商户', '', 1]}, // {menu: ['已审核', '', 1]}, // update 本次新增页面
{ menu: ['管理员列表', '', 1]}, // {menu: ['生活设置', '', 1]} // update 本次新增页面
// ]
},
{
menu: ['通讯录', '', 1],
children: [
{menu: ['通讯录', 'contactsList', 1]},
{menu: ['通讯录日志', 'syncLog', 1]}
]
},
{
menu: ['导购设置', '', 1],
// children: [
// { menu: ['导购设置', '', 1] } // update 本次新增页面
// ]
},
{
menu: ['应用接入', '', 1],
children: [
{ menu: ['应用接入', 'enterpriseSet', 1] }
]
},
{
menu: ['授权商户', '', 1],
children: [
{
menu: ['授权商户', 'authMerchant', 1],
children: [
{menu: ['新建授权', 'authMerchantForm', 1]},
// {menu: ['查看授权设置', '', 1]}, // TODO 本次新增页面
{menu: ['绑定门店列表', 'merchantStoreList', 1]}
]
}
]
},
{
menu: ['管理员列表', '', 1],
children: [
{ menu: ['管理员列表', 'adminList', 1] }
]
},
] ]
}, },
]; ];
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