menu-list.js 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496
  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. },
  34. {
  35. id: 'tb-costomer',
  36. name: '客户管理',
  37. parent: true,
  38. icon: 'el-icon-s-custom',
  39. childList: [{
  40. id: 'tb-costomer-list',
  41. name: '客户列表',
  42. url: 'sa-view/tb-costomer/tb-costomer-list.html'
  43. },
  44. {
  45. id: 'tb-costomer-add',
  46. name: '添加',
  47. isShow: false
  48. },
  49. {
  50. id: 'tb-costomer-judge',
  51. name: '审核',
  52. isShow: false
  53. },
  54. {
  55. id: 'tb-costomer-del',
  56. name: '删除',
  57. isShow: false
  58. },
  59. {
  60. id: 'tb-costomer-edit',
  61. name: '修改',
  62. isShow: false
  63. },
  64. {
  65. id: 'tb-costomer-account',
  66. name: '账户',
  67. isShow: false,
  68. childList: [{
  69. id: 'tb-costomer-account-charge',
  70. name: '充值',
  71. isShow: false,
  72. }]
  73. },
  74. {
  75. id: 'tb-costomer-user',
  76. name: '用户管理',
  77. isShow: false,
  78. childList: [{
  79. id: 'tb-costomer-user-add',
  80. name: '添加',
  81. isShow: false,
  82. },
  83. {
  84. id: 'tb-costomer-user-del',
  85. name: '删除',
  86. isShow: false,
  87. },
  88. {
  89. id: 'tb-costomer-user-edit',
  90. name: '编辑',
  91. isShow: false,
  92. },
  93. ]
  94. },
  95. ]
  96. },
  97. {
  98. id: 'tb-costomer-maintain',
  99. name: '信息维护',
  100. parent: true,
  101. icon: 'el-icon-s-custom',
  102. childList: [{
  103. id: 'tb-costomer-maintain-list',
  104. name: '企业信息',
  105. icon: 'el-icon-s-custom',
  106. url: 'sa-view/tb-costomer/tb-costomer-maintain.html',
  107. childList: [{
  108. id: 'tb-costomer-maintain-edit',
  109. name: '编辑信息',
  110. icon: 'el-icon-s-custom',
  111. isShow: false
  112. },
  113. {
  114. id: 'tb-costomer-maintain-account',
  115. name: '账户管理',
  116. icon: 'el-icon-s-custom',
  117. isShow: false
  118. },
  119. {
  120. id: 'tb-costomer-maintain-user',
  121. name: '用户管理',
  122. parent: true,
  123. isShow: false,
  124. childList: [{
  125. id: 'tb-costomer-maintain-user-add',
  126. name: '添加',
  127. isShow: false,
  128. },
  129. {
  130. id: 'tb-costomer-maintain-user-del',
  131. name: '删除',
  132. isShow: false,
  133. },
  134. {
  135. id: 'tb-costomer-maintain-user-edit',
  136. name: '编辑',
  137. isShow: false,
  138. },
  139. ]
  140. },
  141. ]
  142. }, ]
  143. },
  144. {
  145. id: 'tb-partner',
  146. name: '合作伙伴',
  147. parent: true,
  148. icon: 'el-icon-s-custom',
  149. childList: [{
  150. id: 'tb-partner-list',
  151. name: '信息管理',
  152. url: 'sa-view/tb-partner/tb-partner-list.html',
  153. childList: [{
  154. id: 'tb-partner-add',
  155. name: '添加伙伴',
  156. isShow: false,
  157. },
  158. {
  159. id: 'tb-partner-del',
  160. name: '删除伙伴',
  161. isShow: false,
  162. },
  163. {
  164. id: 'tb-partner-edit',
  165. name: '编辑伙伴',
  166. isShow: false,
  167. },
  168. {
  169. id: 'tb-partner-user',
  170. name: '伙伴用户',
  171. isShow: false,
  172. parent: true,
  173. childList: [{
  174. id: 'tb-partner-user-add',
  175. name: '添加用户',
  176. isShow: false,
  177. },
  178. {
  179. id: 'tb-partner-user-edit',
  180. name: '编辑用户',
  181. isShow: false,
  182. },
  183. {
  184. id: 'tb-partner-user-del',
  185. name: '删除用户',
  186. isShow: false,
  187. },
  188. ]
  189. },
  190. ],
  191. }, ]
  192. },
  193. {
  194. id: 'tb-business-item',
  195. name: '作业管理',
  196. icon: 'el-icon-edit-outline',
  197. parent: true,
  198. childList: [{
  199. id: 'tb-business-item-list',
  200. name: '作业订单',
  201. url: 'sa-view/tb-partner/tb-business-item-list.html',
  202. childList:[
  203. {
  204. id: 'tb-business-item-confirm',
  205. name: '接单确认',
  206. isShow: false,
  207. },
  208. ]
  209. },
  210. ]
  211. },
  212. {
  213. id: 'tb-business',
  214. name: '业务录入',
  215. icon: 'el-icon-edit-outline',
  216. parent: true,
  217. childList: [{
  218. id: 'tb-business-list',
  219. name: '业务列表',
  220. url: 'sa-view/tb-business/tb-business-list.html',
  221. childList: [{
  222. id: 'tb-business-add',
  223. name: '添加业务',
  224. isShow: false
  225. },
  226. {
  227. id: 'tb-business-del',
  228. name: '删除业务',
  229. isShow: false
  230. },
  231. {
  232. id: 'tb-business-edit',
  233. name: '修改业务',
  234. isShow: false,
  235. childList: [{
  236. id: 'tb-business-car-change',
  237. name: '确认出入场',
  238. isShow: false,
  239. }]
  240. },
  241. {
  242. id: 'tb-business-confirm',
  243. name: '确认账单',
  244. isShow: false,
  245. },
  246. {
  247. id: 'tb-business-pay',
  248. name: '支付账单',
  249. isShow: false,
  250. },
  251. ]
  252. },
  253. ]
  254. },
  255. {
  256. id: 'tb-business-car',
  257. name: '放行记录',
  258. icon: 'el-icon-notebook-2',
  259. parent: true,
  260. childList: [{
  261. id: 'tb-business-car-list',
  262. name: '放行列表',
  263. url: 'sa-view/tb-business-car/tb-business-car-list.html'
  264. }, ]
  265. },
  266. {
  267. id: 'info-setting',
  268. name: '信息设置',
  269. icon: 'el-icon-monitor',
  270. parent: true,
  271. childList: [{
  272. id: 'tb-item',
  273. name: '收费管理',
  274. icon: 'el-icon-coin',
  275. parent: true,
  276. childList: [{
  277. id: 'tb-item-list',
  278. name: '收费标准',
  279. url: 'sa-view/tb-item/tb-item-list.html'
  280. },
  281. {
  282. id: 'tb-item-list-edit-type',
  283. name: '修改类型',
  284. isShow: false
  285. },
  286. ]
  287. }, ]
  288. },
  289. {
  290. id: 'tb-notices',
  291. name: '消息管理',
  292. icon: 'el-icon-news',
  293. parent: true,
  294. childList: [{
  295. id: 'tb-notices-list',
  296. name: '消息列表',
  297. url: 'sa-view/tb-notices/tb-notices-list.html',
  298. childList: [{
  299. id: 'tb-notices-add',
  300. name: '添加消息',
  301. isShow: false
  302. },
  303. {
  304. id: 'tb-notices-del',
  305. name: '删除消息',
  306. isShow: false
  307. },
  308. {
  309. id: 'tb-notices-edit',
  310. name: '修改消息',
  311. isShow: false
  312. },
  313. ]
  314. },
  315. ]
  316. },
  317. {
  318. id: 'tb-charge-record',
  319. name: '充值记录',
  320. icon: 'el-icon-folder-opened',
  321. parent: true,
  322. childList: [{
  323. id: 'tb-charge-record-list',
  324. name: '充值记录',
  325. url: 'sa-view/tb-charge-record/tb-charge-record-list.html'
  326. }, ]
  327. },
  328. {
  329. id: 'tb-pay-record',
  330. name: '支付记录',
  331. icon: 'el-icon-folder-opened',
  332. parent: true,
  333. childList: [{
  334. id: 'tb-pay-record-list',
  335. name: '支付记录',
  336. url: 'sa-view/tb-pay-record/tb-pay-record-list.html'
  337. }, ]
  338. },
  339. {
  340. id: 'tb-declare',
  341. name: '申报信息',
  342. icon: 'el-icon-folder-opened',
  343. parent: true,
  344. childList: [{
  345. id: 'tb-declare-list',
  346. name: '申报列表',
  347. url: 'sa-view/tb-declare/tb-declare-list.html',
  348. childList: [{
  349. id: 'tb-declare-print',
  350. name: '打印申报信息',
  351. isShow: false
  352. },
  353. {
  354. id: 'tb-declare-add',
  355. name: '添加申报信息',
  356. isShow: false
  357. },
  358. {
  359. id: 'tb-declare-edit',
  360. name: '修改申报信息',
  361. isShow: false
  362. },
  363. {
  364. id: 'tb-declare-del',
  365. name: '删除申报信息',
  366. isShow: false
  367. },
  368. ]
  369. }, ]
  370. },
  371. {
  372. id: 'tb-disinfect',
  373. name: '消毒信息',
  374. icon: 'el-icon-folder-opened',
  375. parent: true,
  376. childList: [{
  377. id: 'tb-disinfect-list',
  378. name: '申请列表',
  379. url: 'sa-view/tb-disinfect/tb-disinfect-list.html',
  380. childList: [{
  381. id: 'tb-disinfect-print',
  382. name: '打印信息',
  383. isShow: false
  384. },
  385. {
  386. id: 'tb-disinfect-edit',
  387. name: '修改信息',
  388. isShow: false
  389. },
  390. {
  391. id: 'tb-disinfect-del',
  392. name: '删除信息',
  393. isShow: false
  394. },
  395. ]
  396. }, ]
  397. },
  398. {
  399. id: 'tb-discount',
  400. name: '折扣管理',
  401. icon: 'el-icon-folder-opened',
  402. parent: true,
  403. childList: [{
  404. id: 'tb-discount-list',
  405. name: '折扣管理',
  406. url: 'sa-view/tb-discount/tb-discount-list.html',
  407. childList: [{
  408. id: 'tb-discount-add',
  409. name: '添加折扣',
  410. isShow: false
  411. },
  412. {
  413. id: 'tb-discount-del',
  414. name: '删除',
  415. isShow: false
  416. },
  417. {
  418. id: 'tb-discount-edit',
  419. name: '编辑',
  420. isShow: false
  421. },
  422. {
  423. id: 'tb-discount-change',
  424. name: '启用/停用',
  425. isShow: false
  426. },
  427. ]
  428. }, ]
  429. },
  430. {
  431. id: 'tb-fee-statistics',
  432. name: '收费统计',
  433. icon: 'el-icon-folder-opened',
  434. parent: true,
  435. childList: [{
  436. id: 'tb-fee-details-list',
  437. name: '收费明细',
  438. url: 'sa-view/tb-fee-statistics/tb-fee-details-list.html'
  439. },
  440. {
  441. id: 'tb-fee-statistics-list',
  442. name: '日统计',
  443. url: 'sa-view/tb-fee-statistics/tb-fee-statistics-list.html'
  444. },
  445. {
  446. id: 'month-statistcs-list',
  447. name: '月统计',
  448. url: 'sa-view/tb-fee-statistics/month-statistcs-list.html'
  449. },
  450. {
  451. id: 'year-statistcs-list',
  452. name: '年统计',
  453. url: 'sa-view/tb-fee-statistics/year-statistcs-list.html'
  454. },
  455. ]
  456. },
  457. ]