Commit 5beeddf1 by caoyanzhi

update: 添加菜单icon

parent c36710e4
...@@ -13,7 +13,7 @@ function checkData(data, level) { ...@@ -13,7 +13,7 @@ function checkData(data, level) {
return !flag; return !flag;
} }
// 每个menu是否有三个元素 // 每个menu是否有三个元素
flag = Array.isArray(el.menu) && el.menu.length == 3; flag = Array.isArray(el.menu) && ((level == 1 && el.menu.length == 4) || el.menu.length == 3);
if (!flag) { if (!flag) {
console.log(el, 'menu格式错误'); console.log(el, 'menu格式错误');
return !flag; return !flag;
...@@ -69,7 +69,7 @@ function createMenuJson(data, parentCode) { ...@@ -69,7 +69,7 @@ function createMenuJson(data, parentCode) {
} }
function createXls() { function createXls() {
if (checkData(menuData, 0)) return; if (checkData(menuData, 0)) return;
return; return
const data = createMenuJson(menuData, ''); const data = createMenuJson(menuData, '');
const jsonArray = data.map( item => { const jsonArray = data.map( item => {
return { return {
......
...@@ -5,20 +5,20 @@ module.exports = [ ...@@ -5,20 +5,20 @@ module.exports = [
menu: ['客户', '', 1], menu: ['客户', '', 1],
children: [ children: [
{ {
menu: ['我的客户', '', 1], menu: ['我的客户', '', 1, 'iconwodekehu'],
children: [ children: [
{ menu: ['客户列表', 'myCustomerList', 1] } { menu: ['客户列表', 'myCustomerList', 1] }
] ]
}, },
{ {
menu: ['客户标签', '', 1], menu: ['客户标签', '', 1, 'iconkehubiaoqian'],
children: [ children: [
{ menu: ['客户标签', 'memberTagSet', 1] }, { menu: ['客户标签', 'memberTagSet', 1] },
{ menu: ['同步历史', 'syncHistory', 1] } { menu: ['同步历史', 'syncHistory', 1] }
] ]
}, },
{ {
menu: ['客户基础设置', '', 1], menu: ['客户基础设置', '', 1, 'iconkehushezhi'],
children: [ children: [
// { // {
// menu: ['客户展示设置', '', 1],// TODO 本次新增页面 // menu: ['客户展示设置', '', 1],// TODO 本次新增页面
...@@ -45,7 +45,7 @@ module.exports = [ ...@@ -45,7 +45,7 @@ module.exports = [
menu: ['营销', '', 1], menu: ['营销', '', 1],
children: [ children: [
{ {
menu: ['任务触达', '', 1], menu: ['任务触达', '', 1, 'iconrenwuchuda'],
children: [ children: [
// { // {
// menu: ['会话任务', '', 1], // TODO 本次新增页面 // menu: ['会话任务', '', 1], // TODO 本次新增页面
...@@ -58,7 +58,7 @@ module.exports = [ ...@@ -58,7 +58,7 @@ module.exports = [
] ]
}, },
{ {
menu: ['卡券活动', '', 1], menu: ['卡券活动', '', 1, 'iconkaquanhuodong'],
children: [ children: [
{ {
menu: ['卡券列表', 'cardList', 1], menu: ['卡券列表', 'cardList', 1],
...@@ -71,7 +71,7 @@ module.exports = [ ...@@ -71,7 +71,7 @@ module.exports = [
] ]
}, },
{ {
menu: ['评价回访', '', 1], menu: ['评价回访', '', 1, 'iconpingjiahuifang'],
children: [ children: [
// { // {
// menu: ['评价回访设置', '', 1], // TODO 本次新增页面 // menu: ['评价回访设置', '', 1], // TODO 本次新增页面
...@@ -84,13 +84,13 @@ module.exports = [ ...@@ -84,13 +84,13 @@ module.exports = [
] ]
}, },
{ {
menu: ['素材库', '', 1], menu: ['素材库', '', 1, 'iconsucaiku1'],
children: [ children: [
{ menu: ['素材库', 'material', 1] } { menu: ['素材库', 'material', 1] }
] ]
}, },
{ {
menu: ['商品中心', '', 1], menu: ['商品中心', '', 1, 'iconshangpinzhongxin'],
children: [ children: [
{ menu: ['商品展示设置', 'goodsShowSet', 1] } { menu: ['商品展示设置', 'goodsShowSet', 1] }
] ]
...@@ -101,7 +101,7 @@ module.exports = [ ...@@ -101,7 +101,7 @@ module.exports = [
menu: ['数据', '', 1], menu: ['数据', '', 1],
children: [ children: [
{ {
menu: ['企业数据', '', 1], menu: ['登录数据', '', 1, 'icondenglushuju'],
children: [ children: [
{ {
menu: ['好办使用详情', 'enterpriseUseData', 1], menu: ['好办使用详情', 'enterpriseUseData', 1],
...@@ -114,7 +114,7 @@ module.exports = [ ...@@ -114,7 +114,7 @@ module.exports = [
] ]
}, },
{ {
menu: ['云日报', '', 1], menu: ['云日报', '', 1, 'iconyunribao'],
children: [ children: [
{ {
menu: ['云日报记录', 'dailyRecord', 1], menu: ['云日报记录', 'dailyRecord', 1],
...@@ -135,7 +135,7 @@ module.exports = [ ...@@ -135,7 +135,7 @@ module.exports = [
] ]
}, },
{ {
menu: ['月指标', '', 1], menu: ['月指标', '', 1, 'iconyuezhibiao'],
children: [ children: [
{ {
menu: ['月指标设置', 'monthList', 1], menu: ['月指标设置', 'monthList', 1],
...@@ -158,7 +158,7 @@ module.exports = [ ...@@ -158,7 +158,7 @@ module.exports = [
] ]
}, },
{ {
menu: ['群发任务记录', '', 1], menu: ['群发任务记录', '', 1, 'iconqunfarenwujilu'],
children: [ children: [
{ {
menu: ['门店视图', 'grStoreList', 1], menu: ['门店视图', 'grStoreList', 1],
...@@ -175,7 +175,7 @@ module.exports = [ ...@@ -175,7 +175,7 @@ module.exports = [
] ]
}, },
{ {
menu: ['会话任务记录', '', 1], menu: ['会话任务记录', '', 1, 'iconhuihuarenwujilu'],
children: [ children: [
{ {
menu: ['门店视图', 'taskRecord', 1], menu: ['门店视图', 'taskRecord', 1],
...@@ -197,7 +197,7 @@ module.exports = [ ...@@ -197,7 +197,7 @@ module.exports = [
menu: ['设置', '', 1], menu: ['设置', '', 1],
children: [ children: [
{ {
menu: ['欢迎语设置', '', 1], menu: ['欢迎语设置', '', 1, 'iconhuanyingyu-o'],
children: [ children: [
{ {
menu: ['欢迎语', 'salutatory', 1], menu: ['欢迎语', 'salutatory', 1],
...@@ -209,7 +209,7 @@ module.exports = [ ...@@ -209,7 +209,7 @@ module.exports = [
] ]
}, },
{ {
menu: ['审核中心', '', 1], menu: ['审核中心', '', 1, 'iconshenhezhongxin1'],
// children: [ // children: [
// {menu: ['待审核', '', 1]}, // update 本次新增页面 // {menu: ['待审核', '', 1]}, // update 本次新增页面
// {menu: ['已审核', '', 1]}, // update 本次新增页面 // {menu: ['已审核', '', 1]}, // update 本次新增页面
...@@ -217,26 +217,26 @@ module.exports = [ ...@@ -217,26 +217,26 @@ module.exports = [
// ] // ]
}, },
{ {
menu: ['通讯录', '', 1], menu: ['通讯录', '', 1, 'icontongxunlu1'],
children: [ children: [
{menu: ['通讯录', 'contactsList', 1]}, {menu: ['通讯录', 'contactsList', 1]},
{menu: ['通讯录日志', 'syncLog', 1]} {menu: ['通讯录日志', 'syncLog', 1]}
] ]
}, },
{ {
menu: ['导购设置', '', 1], menu: ['导购设置', '', 1, 'icondaogoushezhi'],
// children: [ // children: [
// { menu: ['导购设置', '', 1] } // update 本次新增页面 // { menu: ['导购设置', '', 1] } // update 本次新增页面
// ] // ]
}, },
{ {
menu: ['应用接入', '', 1], menu: ['应用接入', '', 1, 'iconyingyongjieru'],
children: [ children: [
{ menu: ['应用接入', 'enterpriseSet', 1] } { menu: ['应用接入', 'enterpriseSet', 1] }
] ]
}, },
{ {
menu: ['授权商户', '', 1], menu: ['授权商户', '', 1, 'iconshouquanshanghu'],
children: [ children: [
{ {
menu: ['授权商户', 'authMerchant', 1], menu: ['授权商户', 'authMerchant', 1],
...@@ -249,7 +249,7 @@ module.exports = [ ...@@ -249,7 +249,7 @@ module.exports = [
] ]
}, },
{ {
menu: ['管理员列表', '', 1], menu: ['管理员列表', '', 1, 'iconguanliyuanliebiao'],
children: [ children: [
{ menu: ['管理员列表', 'adminList', 1] } { menu: ['管理员列表', 'adminList', 1] }
] ]
......
No preview for this file type
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