menu-list.js 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499
  1. // 一个菜单可以包括的所有属性
  2. // {
  3. // id: '12345', // 菜单id, 必须唯一
  4. // name: '用户中心', // 菜单名称, 同时也是tab选项卡上显示的名称
  5. // icon: 'el-icon-user', // 菜单图标, 参考地址: https://element.eleme.cn/#/zh-CN/component/icon
  6. // info: '管理所有用户', // 菜单介绍, 在菜单预览和分配权限时会有显示
  7. // url: 'sa-html/user/user-list.html', // 菜单指向地址
  8. // parentId: 1, // 所属父菜单id, 如果指定了一个值, sa-admin在初始化时会将此菜单转移到指定菜单上
  9. // isShow: true, // 是否显示, 默认true
  10. // isBlank: false, // 是否属于外部链接, 如果为true, 则点击菜单时从新窗口打开
  11. // childList: [ // 指定这个菜单所有的子菜单, 子菜单可以继续指定子菜单, 至多支持三级菜单
  12. // // ....
  13. // ],
  14. // click: function(){} // 点击菜单执行一个函数
  15. // }
  16. // 定义菜单列表
  17. var menuList = [{
  18. id: 'auth',
  19. parent: true,
  20. name: '权限控制',
  21. icon: 'el-icon-unlock',
  22. childList: [{
  23. id: 'role-list',
  24. name: '角色列表',
  25. url: 'sa-view-sp/sp-role/role-list.html',
  26. },
  27. {
  28. id: 'admin-list',
  29. name: '管理员列表',
  30. url: 'sa-view-sp/sp-admin/admin-list.html',
  31. },
  32. {
  33. id: 'customer-auth-list',
  34. name: '客户权限列表',
  35. url: 'sa-view/tb-costomer/tb-menu-list.html',
  36. },
  37. {
  38. id: 'partner-auth-list',
  39. name: '合作伙伴列表',
  40. url: 'sa-view/tb-partner/tb-menu-list.html',
  41. },
  42. ]
  43. },
  44. {
  45. id: 'tb-costomer',
  46. name: '客户管理',
  47. parent: true,
  48. icon: 'el-icon-s-custom',
  49. childList: [{
  50. id: 'tb-costomer-list',
  51. name: '客户列表',
  52. url: 'sa-view/tb-costomer/tb-costomer-list.html'
  53. },
  54. {
  55. id: 'tb-costomer-add',
  56. name: '添加',
  57. isShow: false
  58. },
  59. {
  60. id: 'tb-costomer-judge',
  61. name: '审核',
  62. isShow: false
  63. },
  64. {
  65. id: 'tb-costomer-del',
  66. name: '删除',
  67. isShow: false
  68. },
  69. {
  70. id: 'tb-costomer-edit',
  71. name: '修改',
  72. isShow: false
  73. },
  74. {
  75. id: 'tb-costomer-account',
  76. name: '账户',
  77. isShow: false,
  78. childList: [{
  79. id: 'tb-costomer-account-charge',
  80. name: '充值',
  81. isShow: false,
  82. }]
  83. },
  84. {
  85. id: 'tb-costomer-user',
  86. name: '用户管理',
  87. isShow: false,
  88. childList: [{
  89. id: 'tb-costomer-user-add',
  90. name: '添加',
  91. isShow: false,
  92. },
  93. {
  94. id: 'tb-costomer-user-del',
  95. name: '删除',
  96. isShow: false,
  97. },
  98. {
  99. id: 'tb-costomer-user-edit',
  100. name: '编辑',
  101. isShow: false,
  102. },
  103. ]
  104. },
  105. ]
  106. },
  107. {
  108. id: 'tb-costomer-maintain',
  109. name: '信息维护',
  110. parent: true,
  111. icon: 'el-icon-s-custom',
  112. childList: [{
  113. id: 'tb-costomer-maintain-list',
  114. name: '企业信息',
  115. icon: 'el-icon-s-custom',
  116. url: 'sa-view/tb-costomer/tb-costomer-maintain.html',
  117. childList: [{
  118. id: 'tb-costomer-maintain-edit',
  119. name: '编辑信息',
  120. icon: 'el-icon-s-custom',
  121. isShow: false
  122. },
  123. {
  124. id: 'tb-costomer-maintain-account',
  125. name: '账户管理',
  126. icon: 'el-icon-s-custom',
  127. isShow: false
  128. },
  129. {
  130. id: 'tb-costomer-maintain-user',
  131. name: '用户管理',
  132. parent: true,
  133. isShow: false,
  134. childList: [{
  135. id: 'tb-costomer-maintain-user-add',
  136. name: '添加',
  137. isShow: false,
  138. },
  139. {
  140. id: 'tb-costomer-maintain-user-del',
  141. name: '删除',
  142. isShow: false,
  143. },
  144. {
  145. id: 'tb-costomer-maintain-user-edit',
  146. name: '编辑',
  147. isShow: false,
  148. },
  149. ]
  150. },
  151. ]
  152. }, ]
  153. },
  154. {
  155. id: 'tb-partner',
  156. name: '合作伙伴',
  157. parent: true,
  158. icon: 'el-icon-s-custom',
  159. childList: [{
  160. id: 'tb-partner-list',
  161. name: '信息管理',
  162. url: 'sa-view/tb-partner/tb-partner-list.html',
  163. childList: [{
  164. id: 'tb-partner-add',
  165. name: '添加伙伴',
  166. isShow: false,
  167. },
  168. {
  169. id: 'tb-partner-del',
  170. name: '删除伙伴',
  171. isShow: false,
  172. },
  173. {
  174. id: 'tb-partner-edit',
  175. name: '编辑伙伴',
  176. isShow: false,
  177. },
  178. {
  179. id: 'tb-partner-user',
  180. name: '伙伴用户',
  181. isShow: false,
  182. parent: true,
  183. childList: [{
  184. id: 'tb-partner-user-add',
  185. name: '添加用户',
  186. isShow: false,
  187. },
  188. {
  189. id: 'tb-partner-user-edit',
  190. name: '编辑用户',
  191. isShow: false,
  192. },
  193. {
  194. id: 'tb-partner-user-del',
  195. name: '删除用户',
  196. isShow: false,
  197. },
  198. ]
  199. },
  200. ],
  201. }, ]
  202. },
  203. {
  204. id: 'tb-business-item',
  205. name: '作业管理',
  206. icon: 'el-icon-edit-outline',
  207. parent: true,
  208. childList: [{
  209. id: 'tb-business-item-list',
  210. name: '作业订单',
  211. url: 'sa-view/tb-partner/tb-business-item-list.html',
  212. childList:[
  213. {
  214. id: 'tb-business-item-confirm',
  215. name: '接单确认',
  216. isShow: false,
  217. },
  218. ]
  219. },
  220. ]
  221. },
  222. {
  223. id: 'tb-business',
  224. name: '业务录入',
  225. icon: 'el-icon-edit-outline',
  226. parent: true,
  227. childList: [{
  228. id: 'tb-business-list',
  229. name: '业务列表',
  230. url: 'sa-view/tb-business/tb-business-list.html',
  231. childList: [{
  232. id: 'tb-business-add',
  233. name: '添加业务',
  234. isShow: false
  235. },
  236. {
  237. id: 'tb-business-del',
  238. name: '删除业务',
  239. isShow: false
  240. },
  241. {
  242. id: 'tb-business-edit',
  243. name: '修改业务',
  244. isShow: false,
  245. childList: [{
  246. id: 'tb-business-car-change',
  247. name: '确认出入场',
  248. isShow: false,
  249. }]
  250. },
  251. {
  252. id: 'tb-business-confirm',
  253. name: '确认账单',
  254. isShow: false,
  255. },
  256. {
  257. id: 'tb-business-pay',
  258. name: '支付账单',
  259. isShow: false,
  260. },
  261. ]
  262. },
  263. ]
  264. },
  265. {
  266. id: 'tb-business-car',
  267. name: '放行记录',
  268. icon: 'el-icon-notebook-2',
  269. parent: true,
  270. childList: [{
  271. id: 'tb-business-car-list',
  272. name: '放行列表',
  273. url: 'sa-view/tb-business-car/tb-business-car-list.html'
  274. }, ]
  275. },
  276. {
  277. id: 'info-setting',
  278. name: '信息设置',
  279. icon: 'el-icon-monitor',
  280. parent: true,
  281. childList: [{
  282. id: 'tb-item',
  283. name: '收费管理',
  284. icon: 'el-icon-coin',
  285. parent: true,
  286. childList: [{
  287. id: 'tb-item-list',
  288. name: '收费标准',
  289. url: 'sa-view/tb-item/tb-item-list.html'
  290. },
  291. {
  292. id: 'tb-item-list-edit-type',
  293. name: '修改类型',
  294. isShow: false
  295. },
  296. ]
  297. }, ]
  298. },
  299. {
  300. id: 'tb-notices',
  301. name: '消息管理',
  302. icon: 'el-icon-news',
  303. parent: true,
  304. childList: [{
  305. id: 'tb-notices-list',
  306. name: '消息列表',
  307. url: 'sa-view/tb-notices/tb-notices-list.html',
  308. childList: [{
  309. id: 'tb-notices-add',
  310. name: '添加消息',
  311. isShow: false
  312. },
  313. {
  314. id: 'tb-notices-del',
  315. name: '删除消息',
  316. isShow: false
  317. },
  318. {
  319. id: 'tb-notices-edit',
  320. name: '修改消息',
  321. isShow: false
  322. },
  323. ]
  324. },
  325. ]
  326. },
  327. {
  328. id: 'tb-charge-record',
  329. name: '充值记录',
  330. icon: 'el-icon-folder-opened',
  331. parent: true,
  332. childList: [{
  333. id: 'tb-charge-record-list',
  334. name: '充值记录',
  335. url: 'sa-view/tb-charge-record/tb-charge-record-list.html'
  336. }, ]
  337. },
  338. {
  339. id: 'tb-pay-record',
  340. name: '支付记录',
  341. icon: 'el-icon-folder-opened',
  342. parent: true,
  343. childList: [{
  344. id: 'tb-pay-record-list',
  345. name: '支付记录',
  346. url: 'sa-view/tb-pay-record/tb-pay-record-list.html'
  347. }, ]
  348. },
  349. {
  350. id: 'tb-declare',
  351. name: '申报信息',
  352. icon: 'el-icon-folder-opened',
  353. parent: true,
  354. childList: [{
  355. id: 'tb-declare-list',
  356. name: '申报列表',
  357. url: 'sa-view/tb-declare/tb-declare-list.html',
  358. childList: [{
  359. id: 'tb-declare-print',
  360. name: '打印申报信息',
  361. isShow: false
  362. },
  363. {
  364. id: 'tb-declare-edit',
  365. name: '修改申报信息',
  366. isShow: false
  367. },
  368. {
  369. id: 'tb-declare-del',
  370. name: '删除申报信息',
  371. isShow: false
  372. },
  373. ]
  374. }, ]
  375. },
  376. {
  377. id: 'tb-disinfect',
  378. name: '消毒信息',
  379. icon: 'el-icon-folder-opened',
  380. parent: true,
  381. childList: [{
  382. id: 'tb-disinfect-list',
  383. name: '申请列表',
  384. url: 'sa-view/tb-disinfect/tb-disinfect-list.html',
  385. childList: [{
  386. id: 'tb-disinfect-print',
  387. name: '打印信息',
  388. isShow: false
  389. },
  390. {
  391. id: 'tb-disinfect-edit',
  392. name: '修改信息',
  393. isShow: false
  394. },
  395. {
  396. id: 'tb-disinfect-del',
  397. name: '删除信息',
  398. isShow: false
  399. },
  400. ]
  401. }, ]
  402. },
  403. {
  404. id: 'tb-discount',
  405. name: '折扣管理',
  406. icon: 'el-icon-folder-opened',
  407. parent: true,
  408. childList: [{
  409. id: 'tb-discount-list',
  410. name: '折扣管理',
  411. url: 'sa-view/tb-discount/tb-discount-list.html',
  412. childList: [{
  413. id: 'tb-discount-add',
  414. name: '添加折扣',
  415. isShow: false
  416. },
  417. {
  418. id: 'tb-discount-del',
  419. name: '删除',
  420. isShow: false
  421. },
  422. {
  423. id: 'tb-discount-edit',
  424. name: '编辑',
  425. isShow: false
  426. },
  427. {
  428. id: 'tb-discount-change',
  429. name: '启用/停用',
  430. isShow: false
  431. },
  432. ]
  433. }, ]
  434. },
  435. {
  436. id: 'tb-fee-statistics',
  437. name: '收费统计',
  438. icon: 'el-icon-folder-opened',
  439. parent: true,
  440. childList: [{
  441. id: 'tb-fee-details-list',
  442. name: '收费明细',
  443. url: 'sa-view/tb-fee-statistics/tb-fee-details-list.html'
  444. },
  445. {
  446. id: 'tb-fee-statistics-list',
  447. name: '日统计',
  448. url: 'sa-view/tb-fee-statistics/tb-fee-statistics-list.html'
  449. },
  450. {
  451. id: 'month-statistcs-list',
  452. name: '月统计',
  453. url: 'sa-view/tb-fee-statistics/month-statistcs-list.html'
  454. },
  455. {
  456. id: 'year-statistcs-list',
  457. name: '年统计',
  458. url: 'sa-view/tb-fee-statistics/year-statistcs-list.html'
  459. },
  460. ]
  461. },
  462. ]