menu-list-sp.js 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432
  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: [{ id: 'role-add', name: '添加角色', info: '添加角色的权限', isShow: false }]
  70. },
  71. {
  72. id: 'menu-list',
  73. name: '菜单列表',
  74. url: 'sa-view-sp/sp-role/menu-list.html',
  75. info: '所有菜单项预览'
  76. },
  77. {
  78. id: 'admin-list',
  79. name: '管理员列表',
  80. url: 'sa-view-sp/sp-admin/admin-list.html',
  81. info: '所有管理员账号'
  82. },
  83. {
  84. id: 'admin-add',
  85. name: '管理员添加',
  86. url: 'sa-view-sp/sp-admin/admin-add.html',
  87. info: '添加一个管理员'
  88. },
  89. // {id: 'apilog-list', name: '请求日志监控', url: 'sa-view-sp/sp-apilog/api-log-list.html', info: '记录本系统所有的api请求'},
  90. ]
  91. }, {
  92. id: 'sp-cfg',
  93. name: '系统配置',
  94. icon: 'el-icon-setting',
  95. parent: true,
  96. info: '有关系统的一些配置',
  97. childList: [{
  98. id: 'sp-cfg-app',
  99. name: '系统对公配置',
  100. url: 'sa-view-sp/sp-cfg/app-cfg.html'
  101. },
  102. {
  103. id: 'sp-cfg-server',
  104. name: '服务器私有配置',
  105. url: 'sa-view-sp/sp-cfg/server-cfg.html'
  106. },
  107. ]
  108. }, {
  109. id: 'app-menu',
  110. name: 'app菜单管理',
  111. icon: 'el-icon-folder-opened',
  112. parent: true,
  113. info: 'app菜单管理表数据的维护',
  114. childList: [
  115. {
  116. id: 'app-menu-list', name: 'app菜单管理-列表', url: 'sa-view/app-menu/app-menu-list.html',
  117. childList: [
  118. { id: 'app-menu-add', name: 'app菜单管理添加', isShow: false },
  119. { id: 'app-menu-edit', name: 'app菜单管理更新', isShow: false },
  120. { id: 'app-menu-del', name: 'app菜单管理删除', isShow: false },
  121. ]
  122. },
  123. ]
  124. }, {
  125. id: 'app-role',
  126. name: 'app角色管理',
  127. icon: 'el-icon-folder-opened',
  128. parent: true,
  129. info: '角色表数据的维护',
  130. childList: [
  131. {
  132. id: 'app-role-list', name: 'app角色-列表', url: 'sa-view/app-role/app-role-list.html',
  133. childList: [
  134. { id: 'app-role-add', name: '添加', isShow: false },
  135. { id: 'app-role-edit', name: '更新', isShow: false },
  136. { id: 'app-role-del', name: '删除', isShow: false },
  137. ]
  138. },
  139. ]
  140. }, {
  141. id: 'tb-driver',
  142. name: '司机',
  143. icon: 'el-icon-folder-opened',
  144. parent: true,
  145. info: '司机表数据的维护',
  146. childList: [
  147. {
  148. id: 'tb-driver-list', name: '司机-列表', url: 'sa-view/tb-driver/tb-driver-list.html',
  149. childList: [
  150. { id: 'tb-driver-add', name: '司机添加', isShow: true },
  151. { id: 'tb-driver-edit', name: '司机更新', isShow: true },
  152. { id: 'tb-driver-del', name: '司机删除', isShow: true },
  153. ]
  154. },
  155. ]
  156. }, {
  157. id: 'tb-vehicle',
  158. name: '车辆',
  159. icon: 'el-icon-folder-opened',
  160. parent: true,
  161. info: '车辆表数据的维护',
  162. childList: [
  163. {
  164. id: 'tb-vehicle-list', name: '车辆-列表', url: 'sa-view/tb-vehicle/tb-vehicle-list.html',
  165. childList: [
  166. { id: 'tb-vehicle-add', name: '车辆添加', isShow: true },
  167. { id: 'tb-vehicle-edit', name: '车辆更新', isShow: true },
  168. { id: 'tb-vehicle-del', name: '车辆删除', isShow: true },
  169. ]
  170. },
  171. ]
  172. }, {
  173. id: 'tb-trade-area',
  174. name: '贸易区域',
  175. icon: 'el-icon-folder-opened',
  176. parent: true,
  177. info: '贸易区域表数据的维护',
  178. childList: [
  179. {
  180. id: 'tb-trade-area-list', name: '贸易区域-列表', url: 'sa-view/tb-trade-area/tb-trade-area-list.html',
  181. childList: [
  182. { id: 'tb-trade-area-add', name: '贸易区域添加', isShow: false },
  183. { id: 'tb-trade-area-edit', name: '贸易区域更新', isShow: false },
  184. { id: 'tb-trade-area-del', name: '贸易区域删除', isShow: false },
  185. ]
  186. },
  187. ]
  188. }, {
  189. id: 'tb-enterprise',
  190. name: '商家',
  191. icon: 'el-icon-folder-opened',
  192. parent: true,
  193. info: '商家表数据的维护',
  194. childList: [
  195. {
  196. id: 'tb-enterprise-list', name: '商家-列表', url: 'sa-view/tb-enterprise/tb-enterprise-list.html',
  197. childList: [
  198. { id: 'tb-enterprise-add', name: '商家添加', isShow: false },
  199. { id: 'tb-enterprise-edit', name: '商家更新', isShow: false },
  200. { id: 'tb-enterprise-del', name: '商家删除', isShow: false },
  201. ]
  202. },
  203. ]
  204. }, {
  205. id: 'tb-shop',
  206. name: '铺位',
  207. icon: 'el-icon-folder-opened',
  208. parent: true,
  209. info: '铺位表数据的维护',
  210. childList: [
  211. {
  212. id: 'tb-shop-list', name: '铺位-列表', url: 'sa-view/tb-shop/tb-shop-list.html',
  213. childList: [
  214. { id: 'tb-shop-add', name: '铺位添加', isShow: false },
  215. { id: 'tb-shop-edit', name: '铺位更新', isShow: false },
  216. { id: 'tb-shop-del', name: '铺位删除', isShow: false },
  217. ]
  218. },
  219. ]
  220. }, {
  221. id: 'tb-purchaser',
  222. name: '收购商',
  223. icon: 'el-icon-folder-opened',
  224. parent: true,
  225. info: '收购商表数据的维护',
  226. childList: [
  227. {
  228. id: 'tb-purchaser-list', name: '收购商-列表', url: 'sa-view/tb-purchaser/tb-purchaser-list.html',
  229. childList: [
  230. { id: 'tb-purchaser-add', name: '收购商添加', isShow: false },
  231. { id: 'tb-purchaser-edit', name: '收购商更新', isShow: false },
  232. { id: 'tb-purchaser-del', name: '收购商删除', isShow: false },
  233. ]
  234. },
  235. ]
  236. }, {
  237. id: 'tb-people',
  238. name: '边民',
  239. icon: 'el-icon-folder-opened',
  240. parent: true,
  241. info: '边民表数据的维护',
  242. childList: [
  243. {
  244. id: 'tb-people-list', name: '边民-列表', url: 'sa-view/tb-people/tb-people-list.html',
  245. childList: [
  246. { id: 'tb-people-add', name: '边民添加', isShow: false },
  247. { id: 'tb-people-edit', name: '边民更新', isShow: false },
  248. { id: 'tb-people-del', name: '边民删除', isShow: false },
  249. ]
  250. },
  251. ]
  252. }, {
  253. id: 'tb-group',
  254. name: '互助组',
  255. icon: 'el-icon-folder-opened',
  256. parent: true,
  257. info: '互助组表数据的维护',
  258. childList: [
  259. {
  260. id: 'tb-group-list', name: '互助组-列表', url: 'sa-view/tb-group/tb-group-list.html',
  261. childList: [
  262. { id: 'tb-group-add', name: '互助组添加', isShow: false },
  263. { id: 'tb-group-edit', name: '互助组更新', isShow: false },
  264. { id: 'tb-group-del', name: '互助组删除', isShow: false },
  265. { id: 'tb-member-list', name: '查寻组内成员', isShow: false },
  266. ]
  267. },
  268. ]
  269. }, {
  270. id: 'tb-order',
  271. name: '商品订单表',
  272. icon: 'el-icon-folder-opened',
  273. parent: true,
  274. info: '商品订单表表数据的维护',
  275. childList: [
  276. {
  277. id: 'tb-order-list', name: '商品订单表-列表', url: 'sa-view/tb-order/tb-order-list.html',
  278. childList: [
  279. { id: 'tb-order-add', name: '商品订单表添加', isShow: true },
  280. { id: 'tb-order-edit', name: '商品订单表更新', isShow: true },
  281. { id: 'tb-order-del', name: '商品订单表删除', isShow: true },
  282. ]
  283. },
  284. ]
  285. }, {
  286. id: 'tb-orders',
  287. name: '物流订单表',
  288. icon: 'el-icon-folder-opened',
  289. parent: true,
  290. info: '物流订单表表数据的维护',
  291. childList: [
  292. {
  293. id: 'tb-orders-list', name: '物流订单表-列表', url: 'sa-view/tb-orders/tb-orders-list.html',
  294. childList: [
  295. { id: 'tb-orders-add', name: '物流订单表添加', isShow: true },
  296. { id: 'tb-orders-edit', name: '物流订单表更新', isShow: true },
  297. { id: 'tb-orders-del', name: '物流订单表删除', isShow: true },
  298. ]
  299. },
  300. ]
  301. }, {
  302. id: 'tb-goods-type',
  303. name: '商品分类',
  304. icon: 'el-icon-folder-opened',
  305. parent: true,
  306. info: '商品分类表数据的维护',
  307. childList: [
  308. {
  309. id: 'tb-goods-type-list', name: '商品分类-列表', url: 'sa-view/tb-goods-type/tb-goods-type-list.html',
  310. childList: [
  311. { id: 'tb-goods-type-add', name: '商品分类添加', isShow: true },
  312. { id: 'tb-goods-type-edit', name: '商品分类更新', isShow: true },
  313. { id: 'tb-goods-type-del', name: '商品分类删除', isShow: true },
  314. ]
  315. },
  316. ]
  317. }, {
  318. id: 'tb-goods',
  319. name: '商品',
  320. icon: 'el-icon-folder-opened',
  321. parent: true,
  322. info: '商品表数据的维护',
  323. childList: [
  324. {
  325. id: 'tb-goods-list', name: '商品-列表', url: 'sa-view/tb-goods/tb-goods-list.html',
  326. childList: [
  327. { id: 'tb-goods-add', name: '商品添加', isShow: false },
  328. { id: 'tb-goods-edit', name: '商品更新', isShow: false },
  329. { id: 'tb-goods-del', name: '商品删除', isShow: false },
  330. ]
  331. },
  332. ]
  333. }, {
  334. id: 'tb-goods-units',
  335. name: '商品单位',
  336. icon: 'el-icon-folder-opened',
  337. parent: true,
  338. info: '商品单位表数据的维护',
  339. childList: [
  340. {
  341. id: 'tb-goods-units-list', name: '商品单位-列表', url: 'sa-view/tb-goods-units/tb-goods-units-list.html',
  342. childList: [
  343. { id: 'tb-goods-units-add', name: '商品单位添加', isShow: false },
  344. { id: 'tb-goods-units-edit', name: '商品单位更新', isShow: false },
  345. { id: 'tb-goods-units-del', name: '商品单位删除', isShow: false },
  346. ]
  347. },
  348. ]
  349. }, {
  350. id: 'tb-purchaser-address',
  351. name: '收购商个人地址管理表',
  352. icon: 'el-icon-folder-opened',
  353. parent: true,
  354. info: '收购商个人地址管理表表数据的维护',
  355. childList: [
  356. {
  357. id: 'tb-purchaser-address-list', name: '收购商个人地址管理表-列表', url: 'sa-view/tb-purchaser-address/tb-purchaser-address-list.html',
  358. childList: [
  359. { id: 'tb-purchaser-address-add', name: '收购商个人地址管理表添加', isShow: false },
  360. { id: 'tb-purchaser-address-edit', name: '收购商个人地址管理表更新', isShow: false },
  361. { id: 'tb-purchaser-address-del', name: '收购商个人地址管理表删除', isShow: false },
  362. ]
  363. },
  364. ]
  365. }, {
  366. id: 'tb-order-after-sale',
  367. name: '售后申请表,并关联一级市场订单',
  368. icon: 'el-icon-folder-opened',
  369. parent: true,
  370. info: '售后申请表,并关联一级市场订单表数据的维护',
  371. childList: [
  372. {
  373. id: 'tb-order-after-sale-list', name: '售后申请表,并关联一级市场订单-列表', url: 'sa-view/tb-order-after-sale/tb-order-after-sale-list.html',
  374. childList: [
  375. { id: 'tb-order-after-sale-add', name: '售后申请表,并关联一级市场订单添加', isShow: false },
  376. { id: 'tb-order-after-sale-edit', name: '售后申请表,并关联一级市场订单更新', isShow: false },
  377. { id: 'tb-order-after-sale-del', name: '售后申请表,并关联一级市场订单删除', isShow: false },
  378. ]
  379. },
  380. ]
  381. }, {
  382. id: 'tb-port-news',
  383. name: '口岸资讯',
  384. icon: 'el-icon-folder-opened',
  385. parent: true,
  386. info: '口岸资讯表数据的维护',
  387. childList: [
  388. {
  389. id: 'tb-port-news-list', name: '口岸资讯-列表', url: 'sa-view/tb-port-news/tb-port-news-list.html',
  390. childList: [
  391. { id: 'tb-port-news-add', name: '口岸资讯添加', isShow: true },
  392. { id: 'tb-port-news-edit', name: '口岸资讯更新', isShow: true },
  393. { id: 'tb-port-news-del', name: '口岸资讯删除', isShow: true },
  394. ]
  395. },
  396. ]
  397. },
  398. {
  399. id: 'tb-banner',
  400. name: '轮播图',
  401. icon: 'el-icon-folder-opened',
  402. parent: true,
  403. info: '轮播图表数据的维护',
  404. childList: [
  405. {
  406. id: 'tb-banner-list', name: '轮播图-列表', url: 'sa-view/tb-banner/tb-banner-list.html',
  407. childList: [
  408. { id: 'tb-banner-add', name: '轮播图添加', isShow: true },
  409. { id: 'tb-banner-edit', name: '轮播图更新', isShow: true },
  410. { id: 'tb-banner-del', name: '轮播图删除', isShow: true },
  411. ]
  412. },
  413. ]
  414. },
  415. {
  416. id: 'tb-agreement',
  417. name: '协议表',
  418. icon: 'el-icon-folder-opened',
  419. parent: true,
  420. info: '协议表表数据的维护',
  421. childList: [
  422. {
  423. id: 'tb-agreement-list', name: '协议表-列表', url: 'sa-view/tb-agreement/tb-agreement-list.html',
  424. childList: [
  425. { id: 'tb-agreement-add', name: '协议表添加', isShow: true },
  426. { id: 'tb-agreement-edit', name: '协议表更新', isShow: true },
  427. { id: 'tb-agreement-del', name: '协议表删除', isShow: true },
  428. ]
  429. },
  430. ]
  431. },
  432. );