menu-list.js 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511
  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-car-disincle',
  224. name: '车辆消杀',
  225. icon: 'el-icon-notebook-2',
  226. parent: true,
  227. childList: [{
  228. id: 'tb-car-disincle-list',
  229. name: '消杀管理',
  230. url: 'sa-view/tb-business/tb-car-disincle-list.html'
  231. }, ]
  232. },
  233. {
  234. id: 'tb-business',
  235. name: '业务录入',
  236. icon: 'el-icon-edit-outline',
  237. parent: true,
  238. childList: [{
  239. id: 'tb-business-list',
  240. name: '业务列表',
  241. url: 'sa-view/tb-business/tb-business-list.html',
  242. childList: [{
  243. id: 'tb-business-add',
  244. name: '添加业务',
  245. isShow: false
  246. },
  247. {
  248. id: 'tb-business-del',
  249. name: '删除业务',
  250. isShow: false
  251. },
  252. {
  253. id: 'tb-business-edit',
  254. name: '修改业务',
  255. isShow: false,
  256. childList: [{
  257. id: 'tb-business-car-change',
  258. name: '确认出入场',
  259. isShow: false,
  260. }]
  261. },
  262. {
  263. id: 'tb-business-confirm',
  264. name: '确认账单',
  265. isShow: false,
  266. },
  267. {
  268. id: 'tb-business-pay',
  269. name: '支付账单',
  270. isShow: false,
  271. },
  272. ]
  273. },
  274. ]
  275. },
  276. {
  277. id: 'tb-business-car',
  278. name: '放行记录',
  279. icon: 'el-icon-notebook-2',
  280. parent: true,
  281. childList: [{
  282. id: 'tb-business-car-list',
  283. name: '放行列表',
  284. url: 'sa-view/tb-business-car/tb-business-car-list.html'
  285. }, ]
  286. },
  287. {
  288. id: 'info-setting',
  289. name: '信息设置',
  290. icon: 'el-icon-monitor',
  291. parent: true,
  292. childList: [{
  293. id: 'tb-item',
  294. name: '收费管理',
  295. icon: 'el-icon-coin',
  296. parent: true,
  297. childList: [{
  298. id: 'tb-item-list',
  299. name: '收费标准',
  300. url: 'sa-view/tb-item/tb-item-list.html'
  301. },
  302. {
  303. id: 'tb-item-list-edit-type',
  304. name: '修改类型',
  305. isShow: false
  306. },
  307. ]
  308. }, ]
  309. },
  310. {
  311. id: 'tb-notices',
  312. name: '消息管理',
  313. icon: 'el-icon-news',
  314. parent: true,
  315. childList: [{
  316. id: 'tb-notices-list',
  317. name: '消息列表',
  318. url: 'sa-view/tb-notices/tb-notices-list.html',
  319. childList: [{
  320. id: 'tb-notices-add',
  321. name: '添加消息',
  322. isShow: false
  323. },
  324. {
  325. id: 'tb-notices-del',
  326. name: '删除消息',
  327. isShow: false
  328. },
  329. {
  330. id: 'tb-notices-edit',
  331. name: '修改消息',
  332. isShow: false
  333. },
  334. ]
  335. },
  336. ]
  337. },
  338. {
  339. id: 'tb-charge-record',
  340. name: '充值记录',
  341. icon: 'el-icon-folder-opened',
  342. parent: true,
  343. childList: [{
  344. id: 'tb-charge-record-list',
  345. name: '充值记录',
  346. url: 'sa-view/tb-charge-record/tb-charge-record-list.html'
  347. }, ]
  348. },
  349. {
  350. id: 'tb-pay-record',
  351. name: '支付记录',
  352. icon: 'el-icon-folder-opened',
  353. parent: true,
  354. childList: [{
  355. id: 'tb-pay-record-list',
  356. name: '支付记录',
  357. url: 'sa-view/tb-pay-record/tb-pay-record-list.html'
  358. }, ]
  359. },
  360. {
  361. id: 'tb-declare',
  362. name: '申报信息',
  363. icon: 'el-icon-folder-opened',
  364. parent: true,
  365. childList: [{
  366. id: 'tb-declare-list',
  367. name: '申报列表',
  368. url: 'sa-view/tb-declare/tb-declare-list.html',
  369. childList: [{
  370. id: 'tb-declare-print',
  371. name: '打印申报信息',
  372. isShow: false
  373. },
  374. {
  375. id: 'tb-declare-edit',
  376. name: '修改申报信息',
  377. isShow: false
  378. },
  379. {
  380. id: 'tb-declare-del',
  381. name: '删除申报信息',
  382. isShow: false
  383. },
  384. ]
  385. }, ]
  386. },
  387. {
  388. id: 'tb-disinfect',
  389. name: '消毒信息',
  390. icon: 'el-icon-folder-opened',
  391. parent: true,
  392. childList: [{
  393. id: 'tb-disinfect-list',
  394. name: '申请列表',
  395. url: 'sa-view/tb-disinfect/tb-disinfect-list.html',
  396. childList: [{
  397. id: 'tb-disinfect-print',
  398. name: '打印信息',
  399. isShow: false
  400. },
  401. {
  402. id: 'tb-disinfect-edit',
  403. name: '修改信息',
  404. isShow: false
  405. },
  406. {
  407. id: 'tb-disinfect-del',
  408. name: '删除信息',
  409. isShow: false
  410. },
  411. ]
  412. }, ]
  413. },
  414. {
  415. id: 'tb-discount',
  416. name: '折扣管理',
  417. icon: 'el-icon-folder-opened',
  418. parent: true,
  419. childList: [{
  420. id: 'tb-discount-list',
  421. name: '折扣管理',
  422. url: 'sa-view/tb-discount/tb-discount-list.html',
  423. childList: [{
  424. id: 'tb-discount-add',
  425. name: '添加折扣',
  426. isShow: false
  427. },
  428. {
  429. id: 'tb-discount-del',
  430. name: '删除',
  431. isShow: false
  432. },
  433. {
  434. id: 'tb-discount-edit',
  435. name: '编辑',
  436. isShow: false
  437. },
  438. {
  439. id: 'tb-discount-change',
  440. name: '启用/停用',
  441. isShow: false
  442. },
  443. ]
  444. }, ]
  445. },
  446. {
  447. id: 'tb-fee-statistics',
  448. name: '收费统计',
  449. icon: 'el-icon-folder-opened',
  450. parent: true,
  451. childList: [{
  452. id: 'tb-fee-details-list',
  453. name: '收费明细',
  454. url: 'sa-view/tb-fee-statistics/tb-fee-details-list.html'
  455. },
  456. {
  457. id: 'tb-fee-statistics-list',
  458. name: '日统计',
  459. url: 'sa-view/tb-fee-statistics/tb-fee-statistics-list.html'
  460. },
  461. {
  462. id: 'month-statistcs-list',
  463. name: '月统计',
  464. url: 'sa-view/tb-fee-statistics/month-statistcs-list.html'
  465. },
  466. {
  467. id: 'year-statistcs-list',
  468. name: '年统计',
  469. url: 'sa-view/tb-fee-statistics/year-statistcs-list.html'
  470. },
  471. ]
  472. },
  473. ]