menu-list-sp.js 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304
  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: 'tb-driver',
  110. name: '司机',
  111. icon: 'el-icon-folder-opened',
  112. parent:true,
  113. info: '司机表数据的维护',
  114. childList: [
  115. {id: 'tb-driver-list', name: '司机-列表', url: 'sa-view/tb-driver/tb-driver-list.html',
  116. childList:[
  117. {id:'tb-driver-add',name:'司机添加',isShow:true},
  118. {id:'tb-driver-edit',name:'司机更新',isShow:true},
  119. {id:'tb-driver-del',name:'司机删除',isShow:true},
  120. ]
  121. },
  122. ]
  123. },{
  124. id: 'tb-vehicle',
  125. name: '车辆',
  126. icon: 'el-icon-folder-opened',
  127. parent:true,
  128. info: '车辆表数据的维护',
  129. childList: [
  130. {id: 'tb-vehicle-list', name: '车辆-列表', url: 'sa-view/tb-vehicle/tb-vehicle-list.html',
  131. childList:[
  132. {id:'tb-vehicle-add',name:'车辆添加',isShow:true},
  133. {id:'tb-vehicle-edit',name:'车辆更新',isShow:true},
  134. {id:'tb-vehicle-del',name:'车辆删除',isShow:true},
  135. ]
  136. },
  137. ]
  138. },{
  139. id: 'tb-trade-area',
  140. name: '贸易区域',
  141. icon: 'el-icon-folder-opened',
  142. parent:true,
  143. info: '贸易区域表数据的维护',
  144. childList: [
  145. {id: 'tb-trade-area-list', name: '贸易区域-列表', url: 'sa-view/tb-trade-area/tb-trade-area-list.html',
  146. childList:[
  147. {id:'tb-trade-area-add',name:'贸易区域添加',isShow:false},
  148. {id:'tb-trade-area-edit',name:'贸易区域更新',isShow:false},
  149. {id:'tb-trade-area-del',name:'贸易区域删除',isShow:false},
  150. ]
  151. },
  152. ]
  153. },{
  154. id: 'tb-enterprise',
  155. name: '商家',
  156. icon: 'el-icon-folder-opened',
  157. parent:true,
  158. info: '商家表数据的维护',
  159. childList: [
  160. {id: 'tb-enterprise-list', name: '商家-列表', url: 'sa-view/tb-enterprise/tb-enterprise-list.html',
  161. childList:[
  162. {id:'tb-enterprise-add',name:'商家添加',isShow:false},
  163. {id:'tb-enterprise-edit',name:'商家更新',isShow:false},
  164. {id:'tb-enterprise-del',name:'商家删除',isShow:false},
  165. ]
  166. },
  167. ]
  168. },{
  169. id: 'tb-shop',
  170. name: '铺位',
  171. icon: 'el-icon-folder-opened',
  172. parent:true,
  173. info: '铺位表数据的维护',
  174. childList: [
  175. {id: 'tb-shop-list', name: '铺位-列表', url: 'sa-view/tb-shop/tb-shop-list.html',
  176. childList:[
  177. {id:'tb-shop-add',name:'铺位添加',isShow:false},
  178. {id:'tb-shop-edit',name:'铺位更新',isShow:false},
  179. {id:'tb-shop-del',name:'铺位删除',isShow:false},
  180. ]
  181. },
  182. ]
  183. },{
  184. id: 'tb-purchaser',
  185. name: '收购商',
  186. icon: 'el-icon-folder-opened',
  187. parent:true,
  188. info: '收购商表数据的维护',
  189. childList: [
  190. {id: 'tb-purchaser-list', name: '收购商-列表', url: 'sa-view/tb-purchaser/tb-purchaser-list.html',
  191. childList:[
  192. {id:'tb-purchaser-add',name:'收购商添加',isShow:false},
  193. {id:'tb-purchaser-edit',name:'收购商更新',isShow:false},
  194. {id:'tb-purchaser-del',name:'收购商删除',isShow:false},
  195. ]
  196. },
  197. ]
  198. },{
  199. id: 'tb-people',
  200. name: '边民',
  201. icon: 'el-icon-folder-opened',
  202. parent:true,
  203. info: '边民表数据的维护',
  204. childList: [
  205. {id: 'tb-people-list', name: '边民-列表', url: 'sa-view/tb-people/tb-people-list.html',
  206. childList:[
  207. {id:'tb-people-add',name:'边民添加',isShow:false},
  208. {id:'tb-people-edit',name:'边民更新',isShow:false},
  209. {id:'tb-people-del',name:'边民删除',isShow:false},
  210. ]
  211. },
  212. ]
  213. },{
  214. id: 'tb-group',
  215. name: '互助组',
  216. icon: 'el-icon-folder-opened',
  217. parent:true,
  218. info: '互助组表数据的维护',
  219. childList: [
  220. {id: 'tb-group-list', name: '互助组-列表', url: 'sa-view/tb-group/tb-group-list.html',
  221. childList:[
  222. {id:'tb-group-add',name:'互助组添加',isShow:false},
  223. {id:'tb-group-edit',name:'互助组更新',isShow:false},
  224. {id:'tb-group-del',name:'互助组删除',isShow:false},
  225. ]
  226. },
  227. ]
  228. },{
  229. id: 'tb-order',
  230. name: '商品订单表',
  231. icon: 'el-icon-folder-opened',
  232. parent:true,
  233. info: '商品订单表表数据的维护',
  234. childList: [
  235. {id: 'tb-order-list', name: '商品订单表-列表', url: 'sa-view/tb-order/tb-order-list.html',
  236. childList:[
  237. {id:'tb-order-add',name:'商品订单表添加',isShow:true},
  238. {id:'tb-order-edit',name:'商品订单表更新',isShow:true},
  239. {id:'tb-order-del',name:'商品订单表删除',isShow:true},
  240. ]
  241. },
  242. ]
  243. },{
  244. id: 'tb-orders',
  245. name: '物流订单表',
  246. icon: 'el-icon-folder-opened',
  247. parent:true,
  248. info: '物流订单表表数据的维护',
  249. childList: [
  250. {id: 'tb-orders-list', name: '物流订单表-列表', url: 'sa-view/tb-orders/tb-orders-list.html',
  251. childList:[
  252. {id:'tb-orders-add',name:'物流订单表添加',isShow:true},
  253. {id:'tb-orders-edit',name:'物流订单表更新',isShow:true},
  254. {id:'tb-orders-del',name:'物流订单表删除',isShow:true},
  255. ]
  256. },
  257. ]
  258. },{
  259. id: 'tb-goods-type',
  260. name: '商品分类',
  261. icon: 'el-icon-folder-opened',
  262. parent:true,
  263. info: '商品分类表数据的维护',
  264. childList: [
  265. {id: 'tb-goods-type-list', name: '商品分类-列表', url: 'sa-view/tb-goods-type/tb-goods-type-list.html',
  266. childList:[
  267. {id:'tb-goods-type-add',name:'商品分类添加',isShow:true},
  268. {id:'tb-goods-type-edit',name:'商品分类更新',isShow:true},
  269. {id:'tb-goods-type-del',name:'商品分类删除',isShow:true},
  270. ]
  271. },
  272. ]
  273. },{
  274. id: 'tb-goods',
  275. name: '商品',
  276. icon: 'el-icon-folder-opened',
  277. parent:true,
  278. info: '商品表数据的维护',
  279. childList: [
  280. {id: 'tb-goods-list', name: '商品-列表', url: 'sa-view/tb-goods/tb-goods-list.html',
  281. childList:[
  282. {id:'tb-goods-add',name:'商品添加',isShow:false},
  283. {id:'tb-goods-edit',name:'商品更新',isShow:false},
  284. {id:'tb-goods-del',name:'商品删除',isShow:false},
  285. ]
  286. },
  287. ]
  288. },{
  289. id: 'tb-goods-units',
  290. name: '商品单位',
  291. icon: 'el-icon-folder-opened',
  292. parent:true,
  293. info: '商品单位表数据的维护',
  294. childList: [
  295. {id: 'tb-goods-units-list', name: '商品单位-列表', url: 'sa-view/tb-goods-units/tb-goods-units-list.html',
  296. childList:[
  297. {id:'tb-goods-units-add',name:'商品单位添加',isShow:false},
  298. {id:'tb-goods-units-edit',name:'商品单位更新',isShow:false},
  299. {id:'tb-goods-units-del',name:'商品单位删除',isShow:false},
  300. ]
  301. },
  302. ]
  303. }
  304. );