data.ts 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415
  1. import { RouterType, RouterTypeRow } from '@/types'
  2. import React from 'react'
  3. const tabLeftArr: RouterType = [
  4. {
  5. id: 1,
  6. name: '工作台',
  7. son: [
  8. {
  9. id: 110,
  10. name: '数据统计',
  11. path: '/',
  12. Com: React.lazy(() => import('../A_workbench/A1dataSta'))
  13. },
  14. {
  15. id: 120,
  16. name: '业务中心',
  17. path: '/business',
  18. Com: React.lazy(() => import('../A_workbench/A2business'))
  19. },
  20. {
  21. id: 130,
  22. name: '流程管理',
  23. path: '/process',
  24. Com: React.lazy(() => import('../A_workbench/A3flow'))
  25. },
  26. // 待完善
  27. {
  28. id: 9801,
  29. name: '凭证管理',
  30. path: '/voucher',
  31. Com: React.lazy(() => import('../A_workbench/A4voucher'))
  32. }
  33. ]
  34. },
  35. {
  36. id: 8,
  37. name: '藏品查询',
  38. son: [
  39. // 待完善
  40. {
  41. id: 9802,
  42. name: '藏品信息',
  43. path: '/antiqueSearch',
  44. Com: React.lazy(() => import('../A2_query/A22antique'))
  45. },
  46. {
  47. id: 9803,
  48. name: '多媒体信息',
  49. path: '/mediaSearch',
  50. Com: React.lazy(() => import('../A2_query/A23media'))
  51. }
  52. ]
  53. },
  54. // 待完善
  55. {
  56. id: 9,
  57. name: '台账管理',
  58. son: [
  59. {
  60. id: 9801,
  61. name: '藏品总账',
  62. path: '/machineReg',
  63. Com: React.lazy(() => import('../A3_ledger/C1ledger'))
  64. },
  65. {
  66. id: 9802,
  67. name: '藏品分账',
  68. path: '/Routing',
  69. Com: React.lazy(() => import('../A3_ledger/A32Routing'))
  70. }
  71. ]
  72. },
  73. {
  74. id: 3,
  75. name: '藏品管理',
  76. son: [
  77. // 待完善
  78. {
  79. id: 9800,
  80. name: '藏品登记',
  81. path: '/register',
  82. Com: React.lazy(() => import('../C_goodsManage/C1register'))
  83. },
  84. {
  85. id: 320,
  86. name: '藏品附件',
  87. path: '/files',
  88. Com: React.lazy(() => import('../C_goodsManage/C2files'))
  89. },
  90. // 待完善
  91. {
  92. id: 9801,
  93. name: '资源使用',
  94. path: '/wealth',
  95. Com: React.lazy(() => import('../C_goodsManage/C21wealth'))
  96. },
  97. // 待完善
  98. {
  99. id: 9802,
  100. name: '藏品编辑',
  101. path: '/goodEdit',
  102. Com: React.lazy(() => import('../C_goodsManage/C22goodEdit'))
  103. },
  104. {
  105. id: 330,
  106. name: '藏品关注',
  107. path: '/focus',
  108. Com: React.lazy(() => import('../C_goodsManage/C3focus'))
  109. },
  110. // 待完善v1.1.1去掉之前的模块
  111. // {
  112. // id: 350,
  113. // name: '藏品登记',
  114. // path: '/register',
  115. // Com: React.lazy(() => import('../C_goodsManage/C5register'))
  116. // },
  117. // 待完善v1.1.1去掉之前的模块
  118. // {
  119. // id: 360,
  120. // name: '藏品编辑',
  121. // path: '/edit',
  122. // Com: React.lazy(() => import('../C_goodsManage/C6edit'))
  123. // },
  124. {
  125. id: 480,
  126. name: '藏品注销',
  127. path: '/cancel',
  128. Com: React.lazy(() => import('../D_storeManage/D8cancel'))
  129. }
  130. // 待完善v1.1.1去掉之前的模块
  131. // {
  132. // id: 370,
  133. // name: '藏品删除',
  134. // path: '/delete',
  135. // Com: React.lazy(() => import('../C_goodsManage/C7delete'))
  136. // }
  137. ]
  138. },
  139. {
  140. id: 2,
  141. name: '入藏管理',
  142. son: [
  143. {
  144. id: 210,
  145. name: '藏品征集',
  146. path: '/collect',
  147. Com: React.lazy(() => import('../B_enterTibet/B1collect'))
  148. },
  149. {
  150. id: 220,
  151. name: '藏品鉴定',
  152. path: '/identify',
  153. Com: React.lazy(() => import('../B_enterTibet/B2identify'))
  154. },
  155. {
  156. id: 230,
  157. name: '藏品入馆',
  158. path: '/entering',
  159. Com: React.lazy(() => import('../B_enterTibet/B3_4page/B3entering'))
  160. },
  161. {
  162. id: 240,
  163. name: '藏品入藏',
  164. path: '/enterTibet',
  165. Com: React.lazy(() => import('../B_enterTibet/B3_4page/B4enterTibet'))
  166. }
  167. ]
  168. },
  169. {
  170. id: 4,
  171. name: '库房管理',
  172. son: [
  173. {
  174. id: 410,
  175. name: '分库管理',
  176. path: '/storage',
  177. Com: React.lazy(() => import('../D_storeManage/D1storage'))
  178. },
  179. {
  180. id: 420,
  181. name: '库房设置',
  182. path: '/storSet',
  183. Com: React.lazy(() => import('../D_storeManage/D2storSet'))
  184. },
  185. {
  186. id: 430,
  187. name: '人员出入',
  188. path: '/staff',
  189. Com: React.lazy(() => import('../D_storeManage/D3staff'))
  190. },
  191. {
  192. id: 440,
  193. name: '藏品入库',
  194. path: '/impStor',
  195. Com: React.lazy(() => import('../D_storeManage/D4impStor'))
  196. },
  197. {
  198. id: 450,
  199. name: '藏品移库',
  200. path: '/moveStor',
  201. Com: React.lazy(() => import('../D_storeManage/D5moveStor'))
  202. },
  203. {
  204. id: 460,
  205. name: '藏品出库',
  206. path: '/putsStor',
  207. Com: React.lazy(() => import('../D_storeManage/D6putsStor'))
  208. },
  209. {
  210. id: 470,
  211. name: '藏品盘点',
  212. path: '/check',
  213. Com: React.lazy(() => import('../D_storeManage/D7check'))
  214. }
  215. ]
  216. },
  217. {
  218. id: 5,
  219. name: '藏品维护',
  220. son: [
  221. {
  222. id: 510,
  223. name: '事故登记',
  224. path: '/accident',
  225. Com: React.lazy(() => import('../E_goodsStorage/E1accident'))
  226. },
  227. {
  228. id: 520,
  229. name: '残损登记',
  230. path: '/damaged',
  231. Com: React.lazy(() => import('../E_goodsStorage/E2damaged'))
  232. },
  233. {
  234. id: 530,
  235. name: '现状登记',
  236. path: '/actuality',
  237. Com: React.lazy(() => import('../E_goodsStorage/E3actuality'))
  238. },
  239. {
  240. id: 540,
  241. name: '修复登记',
  242. path: '/repair',
  243. Com: React.lazy(() => import('../E_goodsStorage/E4repair'))
  244. }
  245. ]
  246. },
  247. // 待完善-展品管理
  248. {
  249. id: 6,
  250. name: '展品管理',
  251. son: [
  252. {
  253. // 待完善
  254. id: 9800,
  255. name: '展品管理',
  256. path: '/exhibition',
  257. Com: React.lazy(() => import('../F_exhibition/F1exhibition'))
  258. }
  259. ]
  260. },
  261. {
  262. id: 7,
  263. name: '系统管理',
  264. son: [
  265. {
  266. id: 710,
  267. name: '数据字典',
  268. path: '/dict',
  269. Com: React.lazy(() => import('../Z_system/Z1dict'))
  270. },
  271. {
  272. id: 720,
  273. name: '编号规则',
  274. path: '/numRule',
  275. Com: React.lazy(() => import('../Z_system/Z2numRule'))
  276. },
  277. {
  278. id: 730,
  279. name: '流程设置',
  280. path: '/flowSet',
  281. Com: React.lazy(() => import('../Z_system/Z3flowSet'))
  282. },
  283. {
  284. id: 740,
  285. name: '组织管理',
  286. path: '/organization',
  287. Com: React.lazy(() => import('../Z_system/Z4organization'))
  288. },
  289. {
  290. id: 9900,
  291. name: '角色管理',
  292. path: '/role',
  293. Com: React.lazy(() => import('../Z_system/Z5role'))
  294. },
  295. {
  296. id: 760,
  297. name: '用户管理',
  298. path: '/user',
  299. Com: React.lazy(() => import('../Z_system/Z6user'))
  300. },
  301. {
  302. id: 770,
  303. name: '系统日志',
  304. path: '/log',
  305. Com: React.lazy(() => import('../Z_system/Z7log'))
  306. },
  307. // 不需要 高亮的 详情页
  308. {
  309. id: 9901,
  310. name: '藏品详情',
  311. path: '/goodsLook/:id',
  312. pathLast: '/goodsLook',
  313. Com: React.lazy(() => import('../Y_goodsDetails/Y2look'))
  314. }
  315. ]
  316. }
  317. ]
  318. export default tabLeftArr
  319. // 里面的页面,不是左边的tab栏
  320. export const routerSon: RouterTypeRow[] = [
  321. {
  322. id: 1,
  323. name: '库房设置-查看',
  324. path: '/storSet_look/:id',
  325. Com: React.lazy(() => import('../D_storeManage/D2storSet/D2look'))
  326. },
  327. {
  328. id: 2,
  329. name: '库房设置-库位设置',
  330. path: '/storSet_site/:id/:title',
  331. Com: React.lazy(() => import('../D_storeManage/D2storSet/D2site'))
  332. },
  333. // -------------入馆 - 入藏 - 登记 -删除-------------------
  334. {
  335. id: 3,
  336. name: '藏品 入馆 新增/编辑/审批/查看',
  337. path: '/entering_edit/:key/:id/:pageKey',
  338. Com: React.lazy(() => import('../B_enterTibet/B3_4page/B3edit'))
  339. },
  340. {
  341. id: 4,
  342. name: '藏品 入藏 新增-编辑/审批/查看',
  343. path: '/enterTibet_edit/:key/:id/:pageKey',
  344. Com: React.lazy(() => import('../B_enterTibet/B3_4page/B3edit'))
  345. },
  346. // 待完善v1.1.1去掉之前的模块
  347. // {
  348. // id: 5,
  349. // name: '藏品 登记 新增-编辑/审批/查看',
  350. // path: '/register_edit/:key/:id/:pageKey',
  351. // Com: React.lazy(() => import('../B_enterTibet/B3_4page/B3edit'))
  352. // },
  353. // {
  354. // id: 6,
  355. // name: '藏品 删除 新增-编辑/审批/查看',
  356. // path: '/delete_edit/:key/:id/:pageKey',
  357. // Com: React.lazy(() => import('../B_enterTibet/B3_4page/B3edit'))
  358. // },
  359. // -------------入库-----------------
  360. {
  361. id: 7,
  362. name: '入库-新增/编辑/审批/查看',
  363. path: '/impStor_edit/:key/:id',
  364. Com: React.lazy(() => import('../D_storeManage/D4impStor/D4edit'))
  365. },
  366. // -------------出库-----------------
  367. {
  368. id: 8,
  369. name: '出库-新增/编辑/审批/查看',
  370. path: '/putsStor_edit/:key/:id',
  371. Com: React.lazy(() => import('../D_storeManage/D6putsStor/D6edit'))
  372. },
  373. // ------------藏品编辑------------------
  374. // 待完善v1.1.1去掉之前的模块
  375. // {
  376. // id: 9,
  377. // name: '藏品编辑-新增/编辑/审批/查看',
  378. // path: '/edit_add/:key/:id',
  379. // Com: React.lazy(() => import('../C_goodsManage/C6edit/C6add'))
  380. // },
  381. // ------------藏品征集------------------
  382. {
  383. id: 10,
  384. name: '藏品征集-新增/编辑/审批/查看',
  385. path: '/collect_edit/:key/:id',
  386. Com: React.lazy(() => import('../B_enterTibet/B1collect/B1edit'))
  387. },
  388. // ------------残损登记------------------
  389. {
  390. id: 11,
  391. name: '残损登记-新增/编辑/审批/查看',
  392. path: '/damaged_edit/:key/:id',
  393. Com: React.lazy(() => import('../E_goodsStorage/E2damaged/E2edit'))
  394. },
  395. // ------------现状登记------------------
  396. {
  397. id: 12,
  398. name: '现状登记-新增/编辑/审批/查看',
  399. path: '/actuality_edit/:key/:id',
  400. Com: React.lazy(() => import('../E_goodsStorage/E3actuality/E3edit'))
  401. }
  402. ]