Commit 5beeddf1 by caoyanzhi

update: 添加菜单icon

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