data.ts 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464
  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/index2'))
  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. id: 140,
  28. name: '凭证签章管理',
  29. path: '/voucher',
  30. Com: React.lazy(() => import('../A_workbench/A4voucher'))
  31. }
  32. ]
  33. },
  34. // {
  35. // id: 8,
  36. // name: '藏品查询',
  37. // son: [
  38. // {
  39. // id: 1001,
  40. // name: '藏品信息',
  41. // path: '/antiqueSearch',
  42. // Com: React.lazy(() => import('../A2_query/A22antique'))
  43. // },
  44. // {
  45. // id: 1002,
  46. // name: '多媒体信息',
  47. // path: '/mediaSearch',
  48. // Com: React.lazy(() => import('../A2_query/A23media'))
  49. // }
  50. // ]
  51. // },
  52. {
  53. id: 2,
  54. name: '入藏管理',
  55. son: [
  56. {
  57. id: 210,
  58. name: '藏品征集',
  59. isLog: true,
  60. path: '/collect',
  61. Com: React.lazy(() => import('../B_enterTibet/B1collect'))
  62. },
  63. {
  64. id: 230,
  65. name: '藏品入馆',
  66. isLog: true,
  67. path: '/entering',
  68. Com: React.lazy(() => import('../B_enterTibet/B3entering'))
  69. },
  70. {
  71. id: 220,
  72. name: '藏品鉴定',
  73. isLog: true,
  74. path: '/identify',
  75. Com: React.lazy(() => import('../B_enterTibet/B2identify'))
  76. },
  77. {
  78. id: 240,
  79. name: '藏品入藏',
  80. isLog: true,
  81. path: '/enterTibet',
  82. Com: React.lazy(() => import('../B_enterTibet/B4enterTibet'))
  83. }
  84. ]
  85. },
  86. {
  87. id: 9,
  88. name: '台账管理',
  89. son: [
  90. {
  91. id: 601,
  92. name: '藏品总账',
  93. path: '/machineReg',
  94. Com: React.lazy(() => import('../A3_ledger/C1ledger'))
  95. },
  96. {
  97. id: 602,
  98. name: '藏品分账',
  99. path: '/Routing',
  100. Com: React.lazy(() => import('../A3_ledger/A32Routing'))
  101. }
  102. ]
  103. },
  104. {
  105. id: 3,
  106. name: '藏品管理',
  107. son: [
  108. {
  109. id: 310,
  110. name: '藏品登记',
  111. isLog: true,
  112. path: '/register',
  113. Com: React.lazy(() => import('../C_goodsManage/C1register'))
  114. },
  115. {
  116. id: 320,
  117. name: '藏品注销',
  118. isLog: true,
  119. path: '/cancel',
  120. Com: React.lazy(() => import('../D_storeManage/D8cancel'))
  121. },
  122. {
  123. id: 330,
  124. name: '藏品档案',
  125. path: '/files',
  126. Com: React.lazy(() => import('../C_goodsManage/C2files'))
  127. },
  128. // {
  129. // id: 340,
  130. // name: '资源使用',
  131. // isLog: true,
  132. // path: '/wealth',
  133. // Com: React.lazy(() => import('../C_goodsManage/C21wealth'))
  134. // },
  135. {
  136. id: 350,
  137. name: '藏品编辑',
  138. isLog: true,
  139. path: '/goodEdit',
  140. Com: React.lazy(() => import('../C_goodsManage/C22goodEdit'))
  141. }
  142. // {
  143. // id: 360,
  144. // name: '藏品关注',
  145. // path: '/focus',
  146. // Com: React.lazy(() => import('../C_goodsManage/C3focus'))
  147. // }
  148. ]
  149. },
  150. {
  151. id: 4,
  152. name: '库房管理',
  153. son: [
  154. {
  155. id: 410,
  156. name: '分库管理',
  157. path: '/storage',
  158. Com: React.lazy(() => import('../D_storeManage/D1storage'))
  159. },
  160. {
  161. id: 430,
  162. name: '人员出入',
  163. path: '/staff',
  164. Com: React.lazy(() => import('../D_storeManage/D3staff'))
  165. },
  166. {
  167. id: 440,
  168. name: '藏品入库',
  169. isLog: true,
  170. path: '/impStor',
  171. Com: React.lazy(() => import('../D_storeManage/D4impStor'))
  172. },
  173. {
  174. id: 450,
  175. name: '藏品移库',
  176. isLog: true,
  177. path: '/moveStor',
  178. Com: React.lazy(() => import('../D_storeManage/D5moveStor'))
  179. },
  180. {
  181. id: 460,
  182. name: '藏品出库',
  183. isLog: true,
  184. path: '/putsStor',
  185. Com: React.lazy(() => import('../D_storeManage/D6putsStor'))
  186. },
  187. {
  188. id: 470,
  189. name: '藏品盘点',
  190. isLog: true,
  191. path: '/check',
  192. Com: React.lazy(() => import('../D_storeManage/D7check'))
  193. }
  194. ]
  195. },
  196. {
  197. id: 5,
  198. name: '藏品维护',
  199. son: [
  200. {
  201. id: 510,
  202. name: '事故登记',
  203. isLog: true,
  204. path: '/accident',
  205. Com: React.lazy(() => import('../E_goodsStorage/E1accident'))
  206. },
  207. // 甲方说先隐藏
  208. // {
  209. // id: 520,
  210. // name: '残损登记',
  211. // path: '/damaged',
  212. // Com: React.lazy(() => import('../E_goodsStorage/E2damaged'))
  213. // },
  214. {
  215. id: 530,
  216. name: '现状登记',
  217. isLog: true,
  218. path: '/actuality',
  219. Com: React.lazy(() => import('../E_goodsStorage/E3actuality'))
  220. },
  221. {
  222. id: 540,
  223. name: '文物修复',
  224. isLog: true,
  225. path: '/repair',
  226. Com: React.lazy(() => import('../E_goodsStorage/E4repair'))
  227. }
  228. ]
  229. },
  230. // {
  231. // id: 900,
  232. // name: '展品管理',
  233. // son: [
  234. // {
  235. // id: 910,
  236. // name: '借展管理',
  237. // isLog: true,
  238. // path: '/exhibition',
  239. // Com: React.lazy(() => import('../F_exhibition/F1exhibition'))
  240. // }
  241. // ]
  242. // },
  243. {
  244. id: 7,
  245. name: '系统管理',
  246. son: [
  247. {
  248. id: 420,
  249. name: '库房设置',
  250. path: '/storSet',
  251. Com: React.lazy(() => import('../D_storeManage/D2storSet'))
  252. },
  253. {
  254. id: 710,
  255. name: '数据字典',
  256. path: '/dict',
  257. Com: React.lazy(() => import('../Z_system/Z1dict'))
  258. },
  259. {
  260. id: 720,
  261. name: '表单管理',
  262. path: '/numRule',
  263. Com: React.lazy(() => import('../Z_system/Z2numRule'))
  264. },
  265. {
  266. id: 730,
  267. name: '规则管理',
  268. path: '/flowSet',
  269. Com: React.lazy(() => import('../Z_system/Z3flowSet'))
  270. },
  271. {
  272. id: 150,
  273. name: '可视化视图管理',
  274. path: '/reportManage',
  275. Com: React.lazy(() => import('../A_workbench/A5ReportManage'))
  276. },
  277. {
  278. id: 740,
  279. name: '组织管理',
  280. path: '/organization',
  281. Com: React.lazy(() => import('../Z_system/Z4organization'))
  282. },
  283. {
  284. id: 750,
  285. name: '角色管理',
  286. path: '/role',
  287. Com: React.lazy(() => import('../Z_system/Z5role'))
  288. },
  289. {
  290. id: 760,
  291. name: '用户管理',
  292. path: '/user',
  293. Com: React.lazy(() => import('../Z_system/Z6user'))
  294. },
  295. {
  296. id: 770,
  297. name: '系统日志',
  298. path: '/log',
  299. Com: React.lazy(() => import('../Z_system/Z7log'))
  300. },
  301. // 不需要 高亮的 详情页
  302. {
  303. id: 9901,
  304. name: '藏品详情',
  305. path: '/goodsLook/:id/:menuId',
  306. pathLast: '/goodsLook',
  307. Com: React.lazy(() => import('../Y_goodsDetails/Y2look'))
  308. }
  309. ]
  310. }
  311. ]
  312. export default tabLeftArr
  313. // 里面的页面,不是左边的tab栏
  314. export const routerSon: RouterTypeRow[] = [
  315. // {
  316. // id: 1,
  317. // name: '库房设置-查看',
  318. // path: '/storSet_look/:id',
  319. // Com: React.lazy(() => import('../D_storeManage/D2storSet/D2look'))
  320. // },
  321. {
  322. id: 2,
  323. name: '库房设置-库位设置',
  324. path: '/storSet_site/:id/:title',
  325. Com: React.lazy(() => import('../D_storeManage/D2storSet/D2site'))
  326. },
  327. // -------------入库-----------------
  328. {
  329. id: 7,
  330. name: '入库-详情页',
  331. path: '/impStor_edit/:key/:id',
  332. Com: React.lazy(() => import('../D_storeManage/D4impStor/D4edit'))
  333. },
  334. // -------------出库-----------------
  335. {
  336. id: 8,
  337. name: '出库-详情页',
  338. path: '/putsStor_edit/:key/:id',
  339. Com: React.lazy(() => import('../D_storeManage/D6putsStor/D6edit'))
  340. },
  341. // ------------藏品征集------------------
  342. {
  343. id: 10,
  344. name: '藏品征集-详情页',
  345. path: '/collect_edit/:key/:id',
  346. Com: React.lazy(() => import('../B_enterTibet/B1collect/B1edit'))
  347. },
  348. // ------------事故登记------------------
  349. {
  350. id: 13,
  351. name: '事故登记-详情页',
  352. path: '/accident_edit/:key/:id',
  353. Com: React.lazy(() => import('../E_goodsStorage/E1accident/E1edit'))
  354. },
  355. // ------------残损登记 甲方说先隐藏------------------
  356. // {
  357. // id: 11,
  358. // name: '残损登记-详情页',
  359. // path: '/damaged_edit/:key/:id',
  360. // Com: React.lazy(() => import('../E_goodsStorage/E2damaged/E2edit'))
  361. // },
  362. // ------------现状登记------------------
  363. {
  364. id: 12,
  365. name: '现状登记-详情页',
  366. path: '/actuality_edit/:key/:id',
  367. Com: React.lazy(() => import('../E_goodsStorage/E3actuality/E3edit'))
  368. },
  369. // ------------文物修复------------------
  370. {
  371. id: 14,
  372. name: '文物修复-详情页',
  373. path: '/repair_edit/:key/:id',
  374. Com: React.lazy(() => import('../E_goodsStorage/E4repair/E4edit'))
  375. },
  376. {
  377. id: 15,
  378. name: '借展管理-详情页',
  379. path: '/exhibition_edit/:key/:id',
  380. Com: React.lazy(() => import('../F_exhibition/F1exhibition/F1edit'))
  381. },
  382. {
  383. id: 16,
  384. name: '藏品鉴定-详情页',
  385. path: '/identify_edit/:key/:id',
  386. Com: React.lazy(() => import('../B_enterTibet/B2identify/B2edit'))
  387. },
  388. {
  389. id: 17,
  390. name: '藏品登记-详情页',
  391. path: '/register_edit/:key/:id',
  392. Com: React.lazy(() => import('../C_goodsManage/C1register/C1look'))
  393. },
  394. {
  395. id: 18,
  396. name: '藏品编辑-详情页',
  397. path: '/goodEdit_edit/:key/:id',
  398. Com: React.lazy(() => import('../C_goodsManage/C22goodEdit/C22look'))
  399. },
  400. {
  401. id: 19,
  402. name: '藏品注销-详情页',
  403. path: '/cancel_edit/:key/:id',
  404. Com: React.lazy(() => import('../D_storeManage/D8cancel/D8edit'))
  405. },
  406. {
  407. id: 21,
  408. name: '藏品入馆-详情页',
  409. path: '/entering_edit/:key/:id',
  410. Com: React.lazy(() => import('../B_enterTibet/B3entering/B3edit'))
  411. },
  412. {
  413. id: 22,
  414. name: '藏品入藏-详情页',
  415. path: '/enterTibet_edit/:key/:id',
  416. Com: React.lazy(() => import('../B_enterTibet/B4enterTibet/B4edit'))
  417. },
  418. // -------------资源使用-----------------
  419. {
  420. id: 20,
  421. name: '资源使用-详情页',
  422. path: '/wealth_edit/:key/:id',
  423. Com: React.lazy(() => import('../C_goodsManage/C21wealth/C21edit'))
  424. },
  425. {
  426. id: 23,
  427. name: '人员出入库-详情页',
  428. path: '/staff_edit/:key/:id',
  429. Com: React.lazy(() => import('../D_storeManage/D3staff/D3edit'))
  430. },
  431. {
  432. id: 24,
  433. name: '藏品盘点-详情页',
  434. path: '/check_edit/:key/:id',
  435. Com: React.lazy(() => import('../D_storeManage/D7check/D7edit'))
  436. },
  437. {
  438. id: 25,
  439. name: '藏品移库-详情页',
  440. path: '/moveStor_edit/:key/:id',
  441. Com: React.lazy(() => import('../D_storeManage/D5moveStor/D5edit'))
  442. },
  443. {
  444. id: 26,
  445. name: '异常状态页面',
  446. path: '/abnormal',
  447. Com: React.lazy(() => import('@/components/NoPower'))
  448. }
  449. ]