data.ts 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345
  1. import React from 'react'
  2. export type LookDomType = {
  3. src: string
  4. type: 'video' | 'audio' | 'model' | ''
  5. flag?: boolean
  6. }
  7. export type RouterTypeRow = {
  8. id: number
  9. name: string
  10. path: string
  11. pathLast?: string
  12. Com: React.LazyExoticComponent<React.MemoExoticComponent<() => JSX.Element>>
  13. pageType?: string
  14. authority?: boolean
  15. }
  16. export type RouterType = {
  17. id: number
  18. name: string
  19. show: boolean
  20. son: RouterTypeRow[]
  21. }[]
  22. const tabLeftArr: RouterType = [
  23. {
  24. id: 1,
  25. name: '工作台',
  26. show: true,
  27. son: [
  28. {
  29. id: 110,
  30. name: '数据统计',
  31. path: '/',
  32. Com: React.lazy(() => import('../Abench/A1statistics'))
  33. },
  34. {
  35. id: 120,
  36. name: '工作台',
  37. path: '/bench',
  38. Com: React.lazy(() => import('../Abench/A2bench'))
  39. },
  40. {
  41. id: 130,
  42. name: '流程中心',
  43. path: '/flow',
  44. Com: React.lazy(() => import('../Abench/A3flow'))
  45. },
  46. {
  47. id: 140,
  48. name: '凭证中心',
  49. path: '/proof',
  50. Com: React.lazy(() => import('../Abench/A4proof'))
  51. }
  52. ]
  53. },
  54. {
  55. id: 2,
  56. name: '入藏管理',
  57. show: true,
  58. son: [
  59. {
  60. id: 210,
  61. name: '藏品征集',
  62. path: '/collect',
  63. Com: React.lazy(() => import('../Benter/B1collect'))
  64. },
  65. {
  66. id: 220,
  67. name: '藏品入馆',
  68. path: '/enterGuan',
  69. Com: React.lazy(() => import('../Benter/B2enterGuan'))
  70. },
  71. {
  72. id: 230,
  73. name: '藏品鉴定',
  74. path: '/auth',
  75. Com: React.lazy(() => import('../Benter/B3auth'))
  76. },
  77. {
  78. id: 240,
  79. name: '藏品入藏',
  80. path: '/enterCang',
  81. Com: React.lazy(() => import('../Benter/B4enterCang'))
  82. }
  83. ]
  84. },
  85. {
  86. id: 3,
  87. name: '藏品台账',
  88. show: true,
  89. son: [
  90. {
  91. id: 310,
  92. name: '藏品总账',
  93. path: '/ledger',
  94. Com: React.lazy(() => import('../Cledger/C1ledger'))
  95. },
  96. {
  97. id: 320,
  98. name: '藏品分账',
  99. path: '/routing',
  100. Com: React.lazy(() => import('../Cledger/C2routing'))
  101. },
  102. {
  103. id: 330,
  104. name: '藏品信息',
  105. path: '/goodsInfo',
  106. Com: React.lazy(() => import('../Cledger/C3goodsInfo'))
  107. },
  108. {
  109. id: 340,
  110. name: '藏品附件',
  111. path: '/C4file',
  112. Com: React.lazy(() => import('../Cledger/C4file'))
  113. }
  114. ]
  115. },
  116. {
  117. id: 4,
  118. name: '藏品管理',
  119. show: true,
  120. son: [
  121. {
  122. id: 410,
  123. name: '藏品登记',
  124. path: '/register',
  125. Com: React.lazy(() => import('../Dmanage/D1register'))
  126. },
  127. {
  128. id: 420,
  129. name: '藏品修改',
  130. path: '/edit',
  131. Com: React.lazy(() => import('../Dmanage/D2edit'))
  132. },
  133. {
  134. id: 430,
  135. name: '藏品注销',
  136. path: '/writeOff',
  137. Com: React.lazy(() => import('../Dmanage/D3writeOff'))
  138. },
  139. {
  140. id: 440,
  141. name: '资源使用',
  142. path: '/resource',
  143. Com: React.lazy(() => import('../Dmanage/D4resource'))
  144. }
  145. ]
  146. },
  147. {
  148. id: 5,
  149. name: '文创管理',
  150. show: true,
  151. son: [
  152. {
  153. id: 601,
  154. name: '标签管理',
  155. path: '/tag',
  156. Com: React.lazy(() => import('../Eculture/E1tag'))
  157. },
  158. {
  159. id: 602,
  160. name: '故事管理',
  161. path: '/story',
  162. Com: React.lazy(() => import('../Eculture/E2story'))
  163. }
  164. ]
  165. },
  166. {
  167. id: 6,
  168. name: '库房管理',
  169. show: true,
  170. son: [
  171. {
  172. id: 1010,
  173. name: '藏品入库',
  174. path: '/inStorage',
  175. Com: React.lazy(() => import('../Fstorehouse/F1inStorage'))
  176. },
  177. {
  178. id: 1020,
  179. name: '藏品移库',
  180. path: '/moveStorage',
  181. Com: React.lazy(() => import('../Fstorehouse/F2moveStorage'))
  182. },
  183. {
  184. id: 1030,
  185. name: '藏品出库',
  186. path: '/outStorage',
  187. Com: React.lazy(() => import('../Fstorehouse/F3outStorage'))
  188. },
  189. {
  190. id: 1040,
  191. name: '藏品盘点',
  192. path: '/check',
  193. Com: React.lazy(() => import('../Fstorehouse/F4check'))
  194. },
  195. {
  196. id: 1050,
  197. name: '人员出入库',
  198. path: '/staff',
  199. Com: React.lazy(() => import('../Fstorehouse/F5staff'))
  200. }
  201. ]
  202. },
  203. {
  204. id: 7,
  205. name: '藏品维护',
  206. show: true,
  207. son: [
  208. {
  209. id: 510,
  210. name: '事故登记',
  211. path: '/accident',
  212. Com: React.lazy(() => import('../Gmaintain/G1accident'))
  213. },
  214. {
  215. id: 540,
  216. name: '现状登记',
  217. path: '/actuality',
  218. Com: React.lazy(() => import('../Gmaintain/G2actuality'))
  219. },
  220. {
  221. id: 550,
  222. name: '修复登记',
  223. path: '/repair',
  224. Com: React.lazy(() => import('../Gmaintain/G3repair'))
  225. }
  226. ]
  227. },
  228. {
  229. id: 8,
  230. name: '展品管理',
  231. show: true,
  232. son: [
  233. {
  234. id: 910,
  235. name: '借展管理',
  236. path: '/loan',
  237. Com: React.lazy(() => import('../Hexhibits/H1loan'))
  238. }
  239. ]
  240. },
  241. {
  242. id: 9,
  243. name: '系统管理',
  244. show: true,
  245. son: [
  246. {
  247. id: 709,
  248. name: '库房设置',
  249. path: '/storageSet',
  250. Com: React.lazy(() => import('../Isystem/I1storageSet'))
  251. },
  252. {
  253. id: 710,
  254. name: '数据字典',
  255. path: '/dict',
  256. Com: React.lazy(() => import('../Isystem/I2dict'))
  257. },
  258. {
  259. id: 720,
  260. name: '编号设置',
  261. path: '/numSet',
  262. Com: React.lazy(() => import('../Isystem/I3numSet'))
  263. },
  264. {
  265. id: 730,
  266. name: '流程设置',
  267. path: '/processSet',
  268. Com: React.lazy(() => import('../Isystem/I4processSet'))
  269. },
  270. {
  271. id: 740,
  272. name: '组织管理',
  273. path: '/organization',
  274. Com: React.lazy(() => import('../Isystem/I5organization'))
  275. },
  276. {
  277. id: 750,
  278. name: '角色管理',
  279. path: '/role',
  280. Com: React.lazy(() => import('../Isystem/I6role'))
  281. },
  282. {
  283. id: 760,
  284. name: '用户管理',
  285. path: '/user',
  286. Com: React.lazy(() => import('../Isystem/I7user'))
  287. },
  288. {
  289. id: 770,
  290. name: '系统日志',
  291. path: '/log',
  292. Com: React.lazy(() => import('../Isystem/I8log'))
  293. },
  294. // 不需要 高亮的 详情页
  295. {
  296. id: 9901,
  297. name: '藏品详情',
  298. path: '/goodsLook/:id',
  299. pathLast: '/goodsLook',
  300. Com: React.lazy(() => import('../ZgoodsInfo'))
  301. }
  302. ]
  303. }
  304. ]
  305. export default tabLeftArr
  306. // 里面的页面,不是左边的tab栏
  307. // 这里的id要和tab栏的id相同,不然没有权限进入页面
  308. export const routerSon: RouterTypeRow[] = [
  309. {
  310. id: 210,
  311. name: '藏品征集-详情页',
  312. path: '/collect_edit/:key/:id',
  313. Com: React.lazy(() => import('../Benter/B1collect/B1edit'))
  314. },
  315. {
  316. id: 220,
  317. name: '藏品入馆-详情页',
  318. path: '/enterGuan_edit/:key/:id',
  319. Com: React.lazy(() => import('../Benter/B2enterGuan/B2edit'))
  320. },
  321. {
  322. id: 410,
  323. name: '藏品登记-详情页',
  324. path: '/register_edit/:key/:id',
  325. Com: React.lazy(() => import('../Dmanage/D1register/D1edit'))
  326. },
  327. {
  328. id: 602,
  329. name: '故事管理-详情页',
  330. path: '/story_edit/:key/:id',
  331. Com: React.lazy(() => import('../Eculture/E2story/E2edit'))
  332. }
  333. ]