menu-list-sp.js 9.7 KB

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