Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-3
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
office
haoban-3
Commits
c36710e4
Commit
c36710e4
authored
Apr 25, 2022
by
caoyanzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 菜单数据
parent
89bbc105
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
79 additions
and
24 deletions
+79
-24
create-menu-json.js
menu-data/create-menu-json.js
+5
-0
menu-data.js
menu-data/menu-data.js
+74
-24
No files found.
menu-data/create-menu-json.js
View file @
c36710e4
...
@@ -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
);
...
...
menu-data/menu-data.js
View file @
c36710e4
...
@@ -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
]
}
]
},
]
]
},
},
];
];
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment