menu-config.json 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365
  1. {
  2. "menus": [
  3. {
  4. "id": 1,
  5. "parentId": 0,
  6. "name": "驾驶舱",
  7. "path": "/cockpit",
  8. "component": null,
  9. "componentName": null,
  10. "icon": "ep:monitor",
  11. "visible": true,
  12. "keepAlive": false,
  13. "alwaysShow": true,
  14. "order": 1,
  15. "children": null,
  16. "description": "驾驶舱/仪表板 - 组件文件: src/components/CockpitDashboard.tsx"
  17. },
  18. {
  19. "id": 2,
  20. "parentId": 0,
  21. "name": "系统配置",
  22. "path": "/system",
  23. "component": null,
  24. "componentName": null,
  25. "icon": "ep:tools",
  26. "visible": true,
  27. "keepAlive": false,
  28. "alwaysShow": true,
  29. "order": 2,
  30. "children": [
  31. {
  32. "id": 21,
  33. "parentId": 2,
  34. "name": "菜单管理",
  35. "path": "/system/menu",
  36. "component": null,
  37. "componentName": null,
  38. "icon": "ep:menu",
  39. "visible": true,
  40. "keepAlive": false,
  41. "alwaysShow": false,
  42. "order": 1,
  43. "children": null,
  44. "description": "组件文件: src/components/SystemConfig.tsx, subMenu: 菜单管理"
  45. },
  46. {
  47. "id": 22,
  48. "parentId": 2,
  49. "name": "部门管理",
  50. "path": "/system/dept",
  51. "component": null,
  52. "componentName": null,
  53. "icon": "fa:address-card",
  54. "visible": true,
  55. "keepAlive": false,
  56. "alwaysShow": false,
  57. "order": 2,
  58. "children": null,
  59. "description": "组件文件: src/components/DepartmentManagement.tsx, subMenu: 部门管理"
  60. },
  61. {
  62. "id": 23,
  63. "parentId": 2,
  64. "name": "岗位管理",
  65. "path": "/system/post",
  66. "component": null,
  67. "componentName": null,
  68. "icon": "ep:collection",
  69. "visible": true,
  70. "keepAlive": false,
  71. "alwaysShow": false,
  72. "order": 3,
  73. "children": null,
  74. "description": "组件文件: src/components/PositionManagement.tsx, subMenu: 岗位管理"
  75. },
  76. {
  77. "id": 24,
  78. "parentId": 2,
  79. "name": "角色管理",
  80. "path": "/system/role",
  81. "component": null,
  82. "componentName": null,
  83. "icon": "ep:user",
  84. "visible": true,
  85. "keepAlive": false,
  86. "alwaysShow": false,
  87. "order": 4,
  88. "children": null,
  89. "description": "组件文件: src/components/SystemConfig.tsx, subMenu: 角色管理"
  90. },
  91. {
  92. "id": 25,
  93. "parentId": 2,
  94. "name": "字典管理",
  95. "path": "/system/dict",
  96. "component": null,
  97. "componentName": null,
  98. "icon": "ep:book-open",
  99. "visible": true,
  100. "keepAlive": false,
  101. "alwaysShow": false,
  102. "order": 5,
  103. "children": null,
  104. "description": "组件文件: src/components/SystemConfig.tsx, subMenu: 字典管理"
  105. },
  106. {
  107. "id": 26,
  108. "parentId": 2,
  109. "name": "机柜管理",
  110. "path": "/system/cabinet",
  111. "component": null,
  112. "componentName": null,
  113. "icon": "ep:server",
  114. "visible": true,
  115. "keepAlive": false,
  116. "alwaysShow": false,
  117. "order": 6,
  118. "children": null,
  119. "description": "组件文件: src/components/SystemConfig.tsx, subMenu: 机柜管理"
  120. }
  121. ],
  122. "description": "系统配置 - 组件文件: src/components/SystemConfig.tsx"
  123. },
  124. {
  125. "id": 3,
  126. "parentId": 0,
  127. "name": "用户管理",
  128. "path": "/users",
  129. "component": null,
  130. "componentName": null,
  131. "icon": "ep:avatar",
  132. "visible": true,
  133. "keepAlive": false,
  134. "alwaysShow": true,
  135. "order": 3,
  136. "children": [
  137. {
  138. "id": 31,
  139. "parentId": 3,
  140. "name": "用户列表",
  141. "path": "/users/list",
  142. "component": null,
  143. "componentName": null,
  144. "icon": "ep:user",
  145. "visible": true,
  146. "keepAlive": false,
  147. "alwaysShow": false,
  148. "order": 1,
  149. "children": null,
  150. "description": "组件文件: src/components/UserManagement.tsx, subMenu: 用户列表"
  151. },
  152. {
  153. "id": 32,
  154. "parentId": 3,
  155. "name": "通知管理",
  156. "path": "/users/notification",
  157. "component": null,
  158. "componentName": null,
  159. "icon": "ep:bell",
  160. "visible": true,
  161. "keepAlive": false,
  162. "alwaysShow": false,
  163. "order": 2,
  164. "children": null,
  165. "description": "组件文件: src/components/UserManagement.tsx, subMenu: 通知管理"
  166. }
  167. ],
  168. "description": "用户管理 - 组件文件: src/components/UserManagement.tsx"
  169. },
  170. {
  171. "id": 4,
  172. "parentId": 0,
  173. "name": "硬件管理",
  174. "path": "/hw",
  175. "component": null,
  176. "componentName": null,
  177. "icon": "ep:briefcase",
  178. "visible": true,
  179. "keepAlive": false,
  180. "alwaysShow": true,
  181. "order": 4,
  182. "children": [
  183. {
  184. "id": 41,
  185. "parentId": 4,
  186. "name": "机柜",
  187. "path": "/hw/cabinet",
  188. "component": null,
  189. "componentName": null,
  190. "icon": "ep:server",
  191. "visible": true,
  192. "keepAlive": false,
  193. "alwaysShow": false,
  194. "order": 1,
  195. "children": null,
  196. "description": "组件文件: src/components/HardwareManagement.tsx, subMenu: 机柜"
  197. },
  198. {
  199. "id": 42,
  200. "parentId": 4,
  201. "name": "钥匙",
  202. "path": "/hw/key",
  203. "component": null,
  204. "componentName": null,
  205. "icon": "ep:lock",
  206. "visible": true,
  207. "keepAlive": false,
  208. "alwaysShow": false,
  209. "order": 2,
  210. "children": null,
  211. "description": "组件文件: src/components/HardwareManagement.tsx, subMenu: 钥匙"
  212. },
  213. {
  214. "id": 43,
  215. "parentId": 4,
  216. "name": "挂锁",
  217. "path": "/hw/lock",
  218. "component": null,
  219. "componentName": null,
  220. "icon": "ep:lock",
  221. "visible": true,
  222. "keepAlive": false,
  223. "alwaysShow": false,
  224. "order": 3,
  225. "children": null,
  226. "description": "组件文件: src/components/HardwareManagement.tsx, subMenu: 挂锁"
  227. },
  228. {
  229. "id": 44,
  230. "parentId": 4,
  231. "name": "便携式",
  232. "path": "/hw/portable",
  233. "component": null,
  234. "componentName": null,
  235. "icon": "ep:radio",
  236. "visible": true,
  237. "keepAlive": false,
  238. "alwaysShow": false,
  239. "order": 4,
  240. "children": null,
  241. "description": "组件文件: src/components/HardwareManagement.tsx, subMenu: 便携式"
  242. }
  243. ],
  244. "description": "硬件管理 - 组件文件: src/components/HardwareManagement.tsx"
  245. },
  246. {
  247. "id": 5,
  248. "parentId": 0,
  249. "name": "点位管理",
  250. "path": "/points",
  251. "component": null,
  252. "componentName": null,
  253. "icon": "ep:delete-location",
  254. "visible": true,
  255. "keepAlive": false,
  256. "alwaysShow": true,
  257. "order": 5,
  258. "children": null,
  259. "description": "点位管理 - 组件文件: src/components/LocationManagement.tsx"
  260. },
  261. {
  262. "id": 6,
  263. "parentId": 0,
  264. "name": "隔离作业",
  265. "path": "/jobTicket",
  266. "component": null,
  267. "componentName": null,
  268. "icon": "ep:comment",
  269. "visible": true,
  270. "keepAlive": false,
  271. "alwaysShow": true,
  272. "order": 6,
  273. "children": [
  274. {
  275. "id": 61,
  276. "parentId": 6,
  277. "name": "流程模板",
  278. "path": "/jobTicket/step",
  279. "component": null,
  280. "componentName": null,
  281. "icon": "ep:document-copy",
  282. "visible": true,
  283. "keepAlive": false,
  284. "alwaysShow": false,
  285. "order": 1,
  286. "children": null,
  287. "description": "组件文件: src/components/IsolationWork.tsx, subMenu: 流程模板"
  288. },
  289. {
  290. "id": 62,
  291. "parentId": 6,
  292. "name": "SOP管理",
  293. "path": "/jobTicket/sop",
  294. "component": null,
  295. "componentName": null,
  296. "icon": "ep:book-open",
  297. "visible": true,
  298. "keepAlive": false,
  299. "alwaysShow": false,
  300. "order": 2,
  301. "children": null,
  302. "description": "组件文件: src/components/IsolationWork.tsx, subMenu: SOP管理"
  303. },
  304. {
  305. "id": 63,
  306. "parentId": 6,
  307. "name": "作业管理",
  308. "path": "/jobTicket/job",
  309. "component": null,
  310. "componentName": null,
  311. "icon": "ep:activity",
  312. "visible": true,
  313. "keepAlive": false,
  314. "alwaysShow": false,
  315. "order": 3,
  316. "children": null,
  317. "description": "组件文件: src/components/IsolationWork.tsx, subMenu: 作业管理"
  318. },
  319. {
  320. "id": 64,
  321. "parentId": 6,
  322. "name": "流程设计",
  323. "path": "/jobTicket/design",
  324. "component": null,
  325. "componentName": null,
  326. "icon": "ep:workflow",
  327. "visible": true,
  328. "keepAlive": false,
  329. "alwaysShow": false,
  330. "order": 4,
  331. "children": null,
  332. "description": "组件文件: src/components/IsolationWork.tsx, subMenu: 流程设计"
  333. },
  334. {
  335. "id": 65,
  336. "parentId": 6,
  337. "name": "表单管理",
  338. "path": "/jobTicket/form",
  339. "component": null,
  340. "componentName": null,
  341. "icon": "ep:document",
  342. "visible": true,
  343. "keepAlive": false,
  344. "alwaysShow": false,
  345. "order": 5,
  346. "children": null,
  347. "description": "组件文件: src/components/FormManagement.tsx"
  348. }
  349. ],
  350. "description": "隔离作业 - 组件文件: src/components/IsolationWork.tsx"
  351. }
  352. ],
  353. "description": "React系统菜单配置 - 用于后台菜单系统导入",
  354. "version": "1.0",
  355. "lastUpdate": "2025-01-XX",
  356. "notes": [
  357. "此配置可直接导入到后台菜单系统",
  358. "path字段必须与配置中的值完全一致",
  359. "前端会自动识别多种路径格式(如 /hw 和 /hardware)",
  360. "description字段包含组件文件路径和subMenu参数值,仅供参考",
  361. "visible字段控制菜单是否显示,true表示显示,false表示隐藏",
  362. "order字段控制菜单显示顺序,数字越小越靠前"
  363. ]
  364. }