menu-list.js 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687
  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. isShow: false
  121. },
  122. {
  123. id: 'tb-costomer-maintain-account',
  124. name: '账户管理',
  125. isShow: false
  126. },
  127. {
  128. id: 'tb-costomer-maintain-user',
  129. name: '用户管理',
  130. parent: true,
  131. isShow: false,
  132. childList: [{
  133. id: 'tb-costomer-maintain-user-add',
  134. name: '添加',
  135. isShow: false,
  136. },
  137. {
  138. id: 'tb-costomer-maintain-user-del',
  139. name: '删除',
  140. isShow: false,
  141. },
  142. {
  143. id: 'tb-costomer-maintain-user-edit',
  144. name: '编辑',
  145. isShow: false,
  146. },
  147. ]
  148. },
  149. ]
  150. }, ]
  151. },
  152. {
  153. id: 'tb-partner',
  154. name: '合作伙伴',
  155. parent: true,
  156. icon: 'el-icon-s-custom',
  157. childList: [{
  158. id: 'tb-partner-list',
  159. name: '信息管理',
  160. url: 'sa-view/tb-partner/tb-partner-list.html',
  161. childList: [{
  162. id: 'tb-partner-add',
  163. name: '添加伙伴',
  164. isShow: false,
  165. },
  166. {
  167. id: 'tb-partner-del',
  168. name: '删除伙伴',
  169. isShow: false,
  170. },
  171. {
  172. id: 'tb-partner-edit',
  173. name: '编辑伙伴',
  174. isShow: false,
  175. },
  176. {
  177. id: 'tb-partner-user',
  178. name: '伙伴用户',
  179. isShow: false,
  180. parent: true,
  181. childList: [{
  182. id: 'tb-partner-user-add',
  183. name: '添加用户',
  184. isShow: false,
  185. },
  186. {
  187. id: 'tb-partner-user-edit',
  188. name: '编辑用户',
  189. isShow: false,
  190. },
  191. {
  192. id: 'tb-partner-user-del',
  193. name: '删除用户',
  194. isShow: false,
  195. },
  196. ]
  197. },
  198. ],
  199. }, ]
  200. },
  201. {
  202. id: 'tb-car',
  203. name: '车辆管理',
  204. parent: true,
  205. icon: 'el-icon-s-platform',
  206. childList: [{
  207. id: 'tb-car-list',
  208. name: '车辆列表',
  209. icon: 'el-icon-s-platform',
  210. url: 'sa-view/tb-car/tb-car-list.html',
  211. childList: [{
  212. id: 'tb-car-add',
  213. name: '添加车辆',
  214. isShow: false
  215. },
  216. {
  217. id: 'tb-car-edit',
  218. name: '编辑车辆',
  219. isShow: false
  220. },
  221. {
  222. id: 'tb-car-del',
  223. name: '删除车辆',
  224. isShow: false
  225. },
  226. {
  227. id: 'tb-car-import',
  228. name: '批量导入',
  229. isShow: false
  230. },
  231. ]
  232. }]
  233. },
  234. {
  235. id: 'tb-business-item',
  236. name: '作业管理',
  237. icon: 'el-icon-edit-outline',
  238. parent: true,
  239. childList: [{
  240. id: 'tb-business-item-list',
  241. name: '作业订单',
  242. url: 'sa-view/tb-partner/tb-business-item-list.html',
  243. childList: [{
  244. id: 'tb-business-item-confirm',
  245. name: '接单确认',
  246. isShow: false,
  247. }, ]
  248. },
  249. ]
  250. },
  251. {
  252. id: 'tb-business',
  253. name: '业务管理',
  254. icon: 'el-icon-edit-outline',
  255. parent: true,
  256. childList: [{
  257. id: 'tb-business-list',
  258. name: '整车业务',
  259. url: 'sa-view/tb-business/tb-business-list.html',
  260. childList: [{
  261. id: 'tb-business-add',
  262. name: '添加业务',
  263. isShow: false
  264. },
  265. {
  266. id: 'tb-business-del',
  267. name: '删除业务',
  268. isShow: false
  269. },
  270. {
  271. id: 'tb-business-edit',
  272. name: '修改业务',
  273. isShow: false,
  274. childList: [{
  275. id: 'tb-business-car-change',
  276. name: '确认出入场',
  277. isShow: false,
  278. }]
  279. },
  280. {
  281. id: 'tb-business-confirm',
  282. name: '确认账单',
  283. isShow: false,
  284. },
  285. {
  286. id: 'tb-business-pay',
  287. name: '支付账单',
  288. isShow: false,
  289. },
  290. ]
  291. },
  292. {
  293. id: 'tb-car-disincle-list',
  294. name: '其他业务',
  295. url: 'sa-view/tb-business/tb-car-disincle-list.html',
  296. childList: [{
  297. id: 'tb-flex-business-add',
  298. name: '添加业务',
  299. isShow: false
  300. },
  301. {
  302. id: 'tb-flex-business-edit',
  303. name: '编辑业务',
  304. isShow: false
  305. },
  306. {
  307. id: 'tb-flex-business-del',
  308. name: '删除业务',
  309. isShow: false
  310. },
  311. {
  312. id: 'tb-flex-business-pay',
  313. name: '手工缴费',
  314. isShow: false
  315. },
  316. {
  317. id: 'tb-business-car-bind',
  318. name: '车辆绑定',
  319. isShow: false
  320. },
  321. {
  322. id: 'tb-flex-business-confirm',
  323. name: '账单确认',
  324. isShow: false
  325. },
  326. ]
  327. },
  328. ]
  329. },
  330. {
  331. id: 'tb-item-type',
  332. name: '收费项管理',
  333. icon: 'el-icon-notebook-2',
  334. parent: true,
  335. childList: [{
  336. id: 'tb-goods-list',
  337. name: '业务项管理',
  338. url: 'sa-view/tb-goods/tb-goods-list.html',
  339. childList: [{
  340. id: 'tb-goods-add',
  341. name: '添加业务项',
  342. isShow: false
  343. },
  344. {
  345. id: 'tb-goods-edit',
  346. name: '编辑业务项',
  347. isShow: false
  348. },
  349. {
  350. id: 'tb-goods-item-type',
  351. name: '编辑收费项',
  352. isShow: false
  353. },
  354. {
  355. id: 'tb-goods-del',
  356. name: '删除业务项',
  357. isShow: false
  358. },
  359. ]
  360. }, {
  361. id: 'tb-item-type-list',
  362. name: '收费项管理',
  363. url: 'sa-view/tb-item-type/tb-item-type-list.html',
  364. childList: [{
  365. id: 'tb-item-type-add',
  366. name: '添加收费项',
  367. isShow: false
  368. },
  369. {
  370. id: 'tb-item-type-edit',
  371. name: '编辑收费项',
  372. isShow: false
  373. },
  374. {
  375. id: 'tb-item-type-relation',
  376. name: '收费明细',
  377. isShow: false
  378. },
  379. {
  380. id: 'tb-item-type-del',
  381. name: '删除收费项',
  382. isShow: false
  383. },
  384. ]
  385. },
  386. {
  387. id: 'tb-item-re-list',
  388. name: '明细管理',
  389. url: 'sa-view/tb-item-type/tb-item-list.html',
  390. childList: [{
  391. id: 'tb-item-manager-add',
  392. name: '添加明细',
  393. isShow: false
  394. },
  395. {
  396. id: 'tb-item-manager-del',
  397. name: '删除明细',
  398. isShow: false
  399. },
  400. {
  401. id: 'tb-item-manager-edit',
  402. name: '修改明细',
  403. isShow: false
  404. },
  405. ]
  406. },
  407. {
  408. id: 'tb-sort-group',
  409. name: '其他业务设置',
  410. url: 'sa-view/tb-sort-group/tb-sort-group-list.html',
  411. childList: [{
  412. id: 'tb-sort-group-add',
  413. name: '添加',
  414. isShow: false
  415. },
  416. {
  417. id: 'tb-sort-group-del',
  418. name: '删除',
  419. isShow: false
  420. },
  421. {
  422. id: 'tb-sort-group-edit',
  423. name: '修改',
  424. isShow: false
  425. },
  426. ]
  427. },
  428. ],
  429. },
  430. {
  431. id: 'tb-business-car',
  432. name: '放行记录',
  433. icon: 'el-icon-notebook-2',
  434. parent: true,
  435. childList: [{
  436. id: 'tb-business-car-list',
  437. name: '放行列表',
  438. url: 'sa-view/tb-business-car/tb-business-car-list.html',
  439. childList: [{
  440. id: 'tb-business-car-add',
  441. name: '添加记录',
  442. isShow: false
  443. },
  444. {
  445. id: 'tb-business-car-export',
  446. name: '导出记录',
  447. isShow: false
  448. },
  449. {
  450. id: 'tb-business-car-edit',
  451. name: '修改记录',
  452. isShow: false
  453. },
  454. {
  455. id: 'tb-business-car-del',
  456. name: '删除记录',
  457. isShow: false
  458. },
  459. ]
  460. }, ]
  461. }, {
  462. id: 'info-setting',
  463. name: '信息设置',
  464. icon: 'el-icon-monitor',
  465. parent: true,
  466. childList: [{
  467. id: 'tb-item',
  468. name: '收费管理',
  469. icon: 'el-icon-coin',
  470. parent: true,
  471. childList: [{
  472. id: 'tb-item-list',
  473. name: '收费标准',
  474. url: 'sa-view/tb-item/tb-item-list.html'
  475. },
  476. {
  477. id: 'tb-item-list-edit-type',
  478. name: '修改类型',
  479. isShow: false
  480. },
  481. ]
  482. }, ]
  483. }, {
  484. id: 'tb-notices',
  485. name: '消息管理',
  486. icon: 'el-icon-news',
  487. parent: true,
  488. childList: [{
  489. id: 'tb-notices-list',
  490. name: '消息列表',
  491. url: 'sa-view/tb-notices/tb-notices-list.html',
  492. childList: [{
  493. id: 'tb-notices-add',
  494. name: '添加消息',
  495. isShow: false
  496. },
  497. {
  498. id: 'tb-notices-del',
  499. name: '删除消息',
  500. isShow: false
  501. },
  502. {
  503. id: 'tb-notices-edit',
  504. name: '修改消息',
  505. isShow: false
  506. },
  507. ]
  508. },
  509. ]
  510. }, {
  511. id: 'tb-charge-record',
  512. name: '充值记录',
  513. icon: 'el-icon-folder-opened',
  514. parent: true,
  515. childList: [{
  516. id: 'tb-charge-record-list',
  517. name: '充值记录',
  518. url: 'sa-view/tb-charge-record/tb-charge-record-list.html'
  519. }, ]
  520. }, {
  521. id: 'tb-pay-record',
  522. name: '支付记录',
  523. icon: 'el-icon-folder-opened',
  524. parent: true,
  525. childList: [{
  526. id: 'tb-pay-record-list',
  527. name: '支付记录',
  528. url: 'sa-view/tb-pay-record/tb-pay-record-list.html'
  529. }, ]
  530. }, {
  531. id: 'tb-declare',
  532. name: '申报信息',
  533. icon: 'el-icon-folder-opened',
  534. parent: true,
  535. childList: [{
  536. id: 'tb-declare-list',
  537. name: '申报列表',
  538. url: 'sa-view/tb-declare/tb-declare-list.html',
  539. childList: [{
  540. id: 'tb-declare-print',
  541. name: '打印申报信息',
  542. isShow: false
  543. },
  544. {
  545. id: 'tb-declare-edit',
  546. name: '修改申报信息',
  547. isShow: false
  548. },
  549. {
  550. id: 'tb-declare-del',
  551. name: '删除申报信息',
  552. isShow: false
  553. },
  554. ]
  555. }, ]
  556. }, {
  557. id: 'tb-disinfect',
  558. name: '消毒信息',
  559. icon: 'el-icon-folder-opened',
  560. parent: true,
  561. childList: [{
  562. id: 'tb-disinfect-list',
  563. name: '申请列表',
  564. url: 'sa-view/tb-disinfect/tb-disinfect-list.html',
  565. childList: [{
  566. id: 'tb-disinfect-print',
  567. name: '打印信息',
  568. isShow: false
  569. },
  570. {
  571. id: 'tb-disinfect-edit',
  572. name: '修改信息',
  573. isShow: false
  574. },
  575. {
  576. id: 'tb-disinfect-del',
  577. name: '删除信息',
  578. isShow: false
  579. },
  580. ]
  581. }, ]
  582. }, {
  583. id: 'tb-discount',
  584. name: '折扣管理',
  585. icon: 'el-icon-folder-opened',
  586. parent: true,
  587. childList: [{
  588. id: 'tb-discount-list',
  589. name: '折扣管理',
  590. url: 'sa-view/tb-discount/tb-discount-list.html',
  591. childList: [{
  592. id: 'tb-discount-add',
  593. name: '添加折扣',
  594. isShow: false
  595. },
  596. {
  597. id: 'tb-discount-del',
  598. name: '删除',
  599. isShow: false
  600. },
  601. {
  602. id: 'tb-discount-edit',
  603. name: '编辑',
  604. isShow: false
  605. },
  606. {
  607. id: 'tb-discount-change',
  608. name: '启用/停用',
  609. isShow: false
  610. },
  611. ]
  612. }, ]
  613. }, {
  614. id: 'tb-fee-statistics',
  615. name: '收费统计',
  616. icon: 'el-icon-folder-opened',
  617. parent: true,
  618. childList: [{
  619. id: 'tb-fee-details-list',
  620. name: '收费明细',
  621. url: 'sa-view/tb-fee-statistics/tb-fee-details-list.html'
  622. },
  623. {
  624. id: 'tb-fee-statistics-list',
  625. name: '日统计',
  626. url: 'sa-view/tb-fee-statistics/tb-fee-statistics-list.html'
  627. },
  628. {
  629. id: 'month-statistcs-list',
  630. name: '月统计',
  631. url: 'sa-view/tb-fee-statistics/month-statistcs-list.html'
  632. },
  633. {
  634. id: 'year-statistcs-list',
  635. name: '年统计',
  636. url: 'sa-view/tb-fee-statistics/year-statistcs-list.html'
  637. },
  638. ]
  639. },
  640. ]