menu-list-sp.js 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628
  1. // 此处定义所有有关 sa-plus 的路由菜单
  2. // 如需添加自定义菜单,请不要更改此文件,请在 menu-list.js 里添加 (没有这个文件就新建)
  3. window.menuList = window.menuList || [];
  4. window.menuList.unshift({
  5. id: 'bas',
  6. name: '身份相关',
  7. isShow: false, // 隐藏显示
  8. info: '身份相关权限,不显示在菜单上',
  9. childList: [{
  10. id: '1',
  11. name: '身份-超管',
  12. info: '最高权限,超管身份的代表(请谨慎授权)',
  13. isShow: false
  14. },
  15. {
  16. id: '11',
  17. name: '身份-普通账号',
  18. isShow: false,
  19. info: '无特殊权限'
  20. },
  21. {
  22. id: '99',
  23. name: '允许进入后台管理',
  24. isShow: false,
  25. info: '只有拥有这个权限的角色才可以进入后台'
  26. },
  27. ]
  28. }, {
  29. id: 'console',
  30. name: '监控中心',
  31. icon: 'el-icon-view',
  32. info: '对本系统的各种监控',
  33. parent: true,
  34. childList: [{
  35. id: 'sql-console',
  36. name: 'SQL监控台',
  37. url: 'sa-view-sp/sp-console/sql-console.html',
  38. info: 'sql控制台'
  39. },
  40. {
  41. id: 'redis-console',
  42. name: 'Redis控制台',
  43. url: 'sa-view-sp/sp-console/redis-console.html',
  44. info: 'redis常用工具'
  45. },
  46. {
  47. id: 'apilog-list',
  48. name: 'API请求日志',
  49. url: 'sa-view-sp/sp-apilog/api-log-list.html',
  50. info: '记录本系统所有的api请求'
  51. },
  52. {
  53. id: 'form-generator',
  54. name: '在线表单构建',
  55. url: 'https://mrhj.gitee.io/form-generator/#/'
  56. },
  57. ]
  58. }, {
  59. id: 'auth',
  60. name: '权限控制',
  61. parent: true,
  62. icon: 'el-icon-unlock',
  63. info: '对系统角色权限的分配等设计,敏感度较高,请谨慎授权',
  64. childList: [{
  65. id: 'role-list',
  66. name: '角色列表',
  67. url: 'sa-view-sp/sp-role/role-list.html',
  68. info: '管理系统各种角色',
  69. childList: [{
  70. id: 'role-add',
  71. name: '添加角色',
  72. info: '添加角色的权限',
  73. isShow: false
  74. }]
  75. },
  76. {
  77. id: 'menu-list',
  78. name: '菜单列表',
  79. url: 'sa-view-sp/sp-role/menu-list.html',
  80. info: '所有菜单项预览'
  81. },
  82. {
  83. id: 'admin-list',
  84. name: '管理员列表',
  85. url: 'sa-view-sp/sp-admin/admin-list.html',
  86. info: '所有管理员账号'
  87. },
  88. {
  89. id: 'admin-add',
  90. name: '管理员添加',
  91. url: 'sa-view-sp/sp-admin/admin-add.html',
  92. info: '添加一个管理员'
  93. },
  94. // {id: 'apilog-list', name: '请求日志监控', url: 'sa-view-sp/sp-apilog/api-log-list.html', info: '记录本系统所有的api请求'},
  95. ]
  96. }, {
  97. id: 'sp-cfg',
  98. name: '系统配置',
  99. icon: 'el-icon-setting',
  100. parent: true,
  101. info: '有关系统的一些配置',
  102. childList: [{
  103. id: 'sp-cfg-app',
  104. name: '系统对公配置',
  105. url: 'sa-view-sp/sp-cfg/app-cfg.html'
  106. },
  107. {
  108. id: 'sp-cfg-server',
  109. name: '服务器私有配置',
  110. url: 'sa-view-sp/sp-cfg/server-cfg.html'
  111. },
  112. {
  113. id: 'tb-port-news',
  114. name: '口岸资讯管理',
  115. url: 'sa-view/tb-port-news/tb-port-news-list.html',
  116. childList: [{
  117. id: 'tb-port-news-add',
  118. name: '口岸资讯添加',
  119. isShow: true
  120. },
  121. {
  122. id: 'tb-port-news-edit',
  123. name: '口岸资讯更新',
  124. isShow: true
  125. },
  126. {
  127. id: 'tb-port-news-del',
  128. name: '口岸资讯删除',
  129. isShow: true
  130. },
  131. ]
  132. },
  133. {
  134. id: 'tb-banner',
  135. name: '轮播图',
  136. url: 'sa-view/tb-banner/tb-banner-list.html',
  137. childList: [{
  138. id: 'tb-banner-add',
  139. name: '轮播图添加',
  140. isShow: true
  141. },
  142. {
  143. id: 'tb-banner-edit',
  144. name: '轮播图更新',
  145. isShow: true
  146. },
  147. {
  148. id: 'tb-banner-del',
  149. name: '轮播图删除',
  150. isShow: true
  151. },
  152. ]
  153. },
  154. {
  155. id: 'tb-agreement',
  156. name: '隐私政策&协议',
  157. url: 'sa-view/tb-agreement/tb-agreement-list.html',
  158. childList: [{
  159. id: 'tb-agreement-add',
  160. name: '协议表添加',
  161. isShow: true
  162. },
  163. {
  164. id: 'tb-agreement-edit',
  165. name: '协议表更新',
  166. isShow: true
  167. },
  168. {
  169. id: 'tb-agreement-del',
  170. name: '协议表删除',
  171. isShow: true
  172. },
  173. ]
  174. },
  175. ]
  176. }, {
  177. id: 'tb-base-data',
  178. name: '基础数据管理',
  179. parent: true,
  180. icon: 'el-icon-copy-document',
  181. childList: [{
  182. id: 'tb-trade-area',
  183. icon: 'el-icon-s-management',
  184. name: '贸易区域管理',
  185. url: 'sa-view/tb-trade-area/tb-trade-area-list.html',
  186. childList: [{
  187. id: 'tb-trade-area-add',
  188. name: '贸易区域添加',
  189. isShow: false
  190. },
  191. {
  192. id: 'tb-trade-area-edit',
  193. name: '贸易区域更新',
  194. isShow: false
  195. },
  196. {
  197. id: 'tb-trade-area-del',
  198. name: '贸易区域删除',
  199. isShow: false
  200. },
  201. ]
  202. },
  203. {
  204. id: 'tb-group',
  205. icon: 'el-icon-s-data',
  206. name: '互助组管理',
  207. url: 'sa-view/tb-group/tb-group-list.html',
  208. childList: [{
  209. id: 'tb-group-add',
  210. name: '互助组添加',
  211. isShow: false
  212. },
  213. {
  214. id: 'tb-group-edit',
  215. name: '互助组更新',
  216. isShow: false
  217. },
  218. {
  219. id: 'tb-group-del',
  220. name: '互助组删除',
  221. isShow: false
  222. },
  223. {
  224. id: 'tb-member-list',
  225. name: '查寻组内成员',
  226. isShow: false
  227. },
  228. ]
  229. },
  230. {
  231. id: 'tb-cooperative',
  232. name: '合作社管理',
  233. icon: 'el-icon-user',
  234. url: 'sa-view/tb-cooperative/tb-cooperative-list.html',
  235. childList: [{
  236. id: 'tb-cooperative-add',
  237. name: '合作社添加',
  238. isShow: false
  239. },
  240. {
  241. id: 'tb-cooperative-edit',
  242. name: '合作社更新',
  243. isShow: false
  244. },
  245. {
  246. id: 'tb-cooperative-del',
  247. name: '合作社删除',
  248. isShow: false
  249. },
  250. ]
  251. },
  252. {
  253. id: 'tb-people',
  254. icon: 'el-icon-user',
  255. name: '边民管理',
  256. url: 'sa-view/tb-people/tb-people-list.html',
  257. childList: [{
  258. id: 'tb-people-add',
  259. name: '边民添加',
  260. isShow: false
  261. },
  262. {
  263. id: 'tb-people-edit',
  264. name: '边民更新',
  265. isShow: false
  266. },
  267. {
  268. id: 'tb-people-del',
  269. name: '边民删除',
  270. isShow: false
  271. },
  272. ]
  273. },
  274. {
  275. id: 'tb-enterprise-judge',
  276. icon: 'el-icon-s-check',
  277. name: '商户审核',
  278. url: 'sa-view/tb-enterprise/tb-enterprise-judge.html',
  279. childList: [{
  280. id: 'tb-enterprise-judge',
  281. name: '商户审核',
  282. isShow: false
  283. }, ]
  284. },
  285. {
  286. id: 'tb-enterprise',
  287. icon: 'el-icon-film',
  288. name: '商户列表',
  289. url: 'sa-view/tb-enterprise/tb-enterprise-list.html',
  290. childList: [{
  291. id: 'tb-enterprise-add',
  292. name: '商家添加',
  293. isShow: false
  294. },
  295. {
  296. id: 'tb-enterprise-edit',
  297. name: '商家更新',
  298. isShow: false
  299. },
  300. {
  301. id: 'tb-enterprise-del',
  302. name: '商家删除',
  303. isShow: false
  304. },
  305. ]
  306. },
  307. {
  308. id: 'tb-shop',
  309. icon: 'el-icon-receiving',
  310. name: '商铺管理',
  311. url: 'sa-view/tb-shop/tb-shop-list.html',
  312. childList: [{
  313. id: 'tb-shop-add',
  314. name: '商铺添加',
  315. isShow: false
  316. },
  317. {
  318. id: 'tb-shop-edit',
  319. name: '商铺更新',
  320. isShow: false
  321. },
  322. {
  323. id: 'tb-shop-del',
  324. name: '商铺删除',
  325. isShow: false
  326. },
  327. ]
  328. },
  329. {
  330. id: 'tb-purchaser-judge',
  331. icon: 'el-icon-s-check',
  332. name: '收购商审核',
  333. url: 'sa-view/tb-purchaser/tb-purchaser-judge.html',
  334. childList: [{
  335. id: 'tb-purchaser-judge',
  336. name: '收购商审核',
  337. isShow: false
  338. }, ]
  339. },
  340. {
  341. id: 'tb-purchaser',
  342. icon: 'el-icon-film',
  343. name: '收购商列表',
  344. url: 'sa-view/tb-purchaser/tb-purchaser-list.html',
  345. childList: [{
  346. id: 'tb-purchaser-add',
  347. name: '收购商添加',
  348. isShow: false
  349. },
  350. {
  351. id: 'tb-purchaser-edit',
  352. name: '收购商更新',
  353. isShow: false
  354. },
  355. {
  356. id: 'tb-purchaser-del',
  357. name: '收购商删除',
  358. isShow: false
  359. },
  360. ]
  361. },
  362. {
  363. id: 'tb-message',
  364. name: '通知消息',
  365. icon: 'el-icon-receiving',
  366. url: 'sa-view/tb-message/tb-message-list.html',
  367. childList: [{
  368. id: 'tb-message-add',
  369. name: '通知消息添加',
  370. isShow: false
  371. },
  372. {
  373. id: 'tb-message-edit',
  374. name: '通知消息更新',
  375. isShow: false
  376. },
  377. {
  378. id: 'tb-message-del',
  379. name: '通知消息删除',
  380. isShow: false
  381. },
  382. ]
  383. },
  384. {
  385. id: 'app-user-login-log',
  386. name: '移动端登录日志',
  387. icon: 'el-icon-receiving',
  388. url: 'sa-view/app-user-login-log/app-user-login-log-list.html',
  389. childList: [{
  390. id: 'app-user-login-log-del',
  391. name: '删除',
  392. isShow: false
  393. }, ]
  394. },
  395. ]
  396. }, {
  397. id: 'app-setting',
  398. name: '移动端管理',
  399. icon: 'el-icon-mobile-phone',
  400. parent: true,
  401. childList: [{
  402. id: 'app-menu',
  403. icon: 'el-icon-s-operation',
  404. name: '菜单管理',
  405. url: 'sa-view/app-menu/app-menu-list.html',
  406. childList: [{
  407. id: 'app-menu-add',
  408. name: 'app菜单管理添加',
  409. isShow: false
  410. },
  411. {
  412. id: 'app-menu-edit',
  413. name: 'app菜单管理更新',
  414. isShow: false
  415. },
  416. {
  417. id: 'app-menu-del',
  418. name: 'app菜单管理删除',
  419. isShow: false
  420. },
  421. ]
  422. },
  423. {
  424. id: 'app-role',
  425. icon: 'el-icon-user-solid',
  426. name: '角色管理',
  427. url: 'sa-view/app-role/app-role-list.html',
  428. childList: [{
  429. id: 'app-role-add',
  430. name: '添加',
  431. isShow: false
  432. },
  433. {
  434. id: 'app-role-edit',
  435. name: '更新',
  436. isShow: false
  437. },
  438. {
  439. id: 'app-role-del',
  440. name: '删除',
  441. isShow: false
  442. },
  443. ]
  444. },
  445. ]
  446. }, {
  447. id: 'trade-manager',
  448. name: '贸易管理',
  449. parent: true,
  450. icon: 'el-icon-s-unfold',
  451. childList: [
  452. {
  453. id: 'tb-goods-units',
  454. name: '计价单位',
  455. url: 'sa-view/tb-goods-units/tb-goods-units-list.html',
  456. childList: [{
  457. id: 'tb-goods-units-add',
  458. name: '计价单位添加',
  459. isShow: false
  460. },
  461. {
  462. id: 'tb-goods-units-edit',
  463. name: '计价单位更新',
  464. isShow: false
  465. },
  466. {
  467. id: 'tb-goods-units-del',
  468. name: '计价单位删除',
  469. isShow: false
  470. },
  471. ]
  472. },
  473. {
  474. id: 'tb-goods-type',
  475. name: '商品分类',
  476. url: 'sa-view/tb-goods-type/tb-goods-type-list.html',
  477. childList: [{
  478. id: 'tb-goods-type-add',
  479. name: '商品分类添加',
  480. isShow: true
  481. },
  482. {
  483. id: 'tb-goods-type-edit',
  484. name: '商品分类更新',
  485. isShow: true
  486. },
  487. {
  488. id: 'tb-goods-type-del',
  489. name: '商品分类删除',
  490. isShow: true
  491. },
  492. ]
  493. },
  494. {
  495. id: 'tb-goods',
  496. name: '监管商品',
  497. url: 'sa-view/tb-goods/tb-goods-list.html',
  498. childList: [{
  499. id: 'tb-goods-add',
  500. name: '商品添加',
  501. isShow: false
  502. },
  503. {
  504. id: 'tb-goods-edit',
  505. name: '商品更新',
  506. isShow: false
  507. },
  508. {
  509. id: 'tb-goods-del',
  510. name: '商品删除',
  511. isShow: false
  512. },
  513. ]
  514. },
  515. {
  516. id: 'tb-goods-demand',
  517. name: '收购需求',
  518. url: 'sa-view/tb-goods-demand/tb-goods-demand-list.html',
  519. childList: [{
  520. id: 'tb-goods-demand-add',
  521. name: '二级收购商需求发布表添加',
  522. isShow: false
  523. },
  524. {
  525. id: 'tb-goods-demand-edit',
  526. name: '二级收购商需求发布表更新',
  527. isShow: false
  528. },
  529. {
  530. id: 'tb-goods-demand-del',
  531. name: '二级收购商需求发布表删除',
  532. isShow: false
  533. },
  534. ]
  535. },
  536. {
  537. id: 'order-list',
  538. name: '订单管理',
  539. parent: true,
  540. icon: 'el-icon-s-grid',
  541. childList: [{
  542. id: 'tb-order',
  543. name: '一级市场订单',
  544. url: 'sa-view/tb-order/tb-order-list.html'
  545. },
  546. {
  547. id: 'tb-two-market-orders',
  548. name: '二级市场订单',
  549. url: 'sa-view/tb-two-market-orders/tb-two-market-orders-list.html'
  550. }
  551. ]
  552. },
  553. {
  554. id: 'tb-order-after-sale-list',
  555. name: '售后管理',
  556. url: 'sa-view/tb-order-after-sale/tb-order-after-sale-list.html',
  557. },
  558. ]
  559. }, {
  560. id: 'transport-sys',
  561. name: '货运管理',
  562. parent: true,
  563. icon: 'el-icon-s-grid',
  564. childList: [{
  565. id: 'tb-driver',
  566. icon: 'el-icon-s-custom',
  567. name: '司机管理',
  568. url: 'sa-view/tb-driver/tb-driver-list.html',
  569. childList: [{
  570. id: 'tb-driver-add',
  571. name: '司机添加',
  572. isShow: true
  573. },
  574. {
  575. id: 'tb-driver-edit',
  576. name: '司机更新',
  577. isShow: true
  578. },
  579. {
  580. id: 'tb-driver-del',
  581. name: '司机删除',
  582. isShow: true
  583. },
  584. ]
  585. },
  586. {
  587. id: 'tb-vehicle',
  588. icon: 'el-icon-s-check',
  589. name: '车辆管理',
  590. url: 'sa-view/tb-vehicle/tb-vehicle-list.html',
  591. childList: [{
  592. id: 'tb-vehicle-add',
  593. name: '车辆添加',
  594. isShow: true
  595. },
  596. {
  597. id: 'tb-vehicle-edit',
  598. name: '车辆更新',
  599. isShow: true
  600. },
  601. {
  602. id: 'tb-vehicle-del',
  603. name: '车辆删除',
  604. isShow: true
  605. },
  606. ]
  607. },
  608. {
  609. id: 'tb-orders',
  610. name: '物流订单表',
  611. icon: 'el-icon-folder-opened',
  612. parent: true,
  613. info: '物流订单表表数据的维护',
  614. childList: [{
  615. id: 'tb-orders',
  616. name: '物流订单表-列表',
  617. url: 'sa-view/tb-orders/tb-orders-list.html'
  618. }, ]
  619. },
  620. ]
  621. }, );