remaining.ts 41 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600
  1. import { Layout } from '@/utils/routerHelper'
  2. const { t } = useI18n()
  3. /**
  4. * redirect: noredirect 当设置 noredirect 的时候该路由在面包屑导航中不可被点击
  5. * name:'router-name' 设定路由的名字,一定要填写不然使用<keep-alive>时会出现各种问题
  6. * meta : {
  7. hidden: true 当设置 true 的时候该路由不会再侧边栏出现 如404,login等页面(默认 false)
  8. alwaysShow: true 当你一个路由下面的 children 声明的路由大于1个时,自动会变成嵌套的模式,
  9. 只有一个时,会将那个子路由当做根路由显示在侧边栏,
  10. 若你想不管路由下面的 children 声明的个数都显示你的根路由,
  11. 你可以设置 alwaysShow: true,这样它就会忽略之前定义的规则,
  12. 一直显示根路由(默认 false)
  13. title: 'title' 设置该路由在侧边栏和面包屑中展示的名字
  14. icon: 'svg-name' 设置该路由的图标
  15. noCache: true 如果设置为true,则不会被 <keep-alive> 缓存(默认 false)
  16. breadcrumb: false 如果设置为false,则不会在breadcrumb面包屑中显示(默认 true)
  17. affix: true 如果设置为true,则会一直固定在tag项中(默认 false)
  18. noTagsView: true 如果设置为true,则不会出现在tag中(默认 false)
  19. activeMenu: '/dashboard' 显示高亮的路由路径
  20. followAuth: '/dashboard' 跟随哪个路由进行权限过滤
  21. canTo: true 设置为true即使hidden为true,也依然可以进行路由跳转(默认 false)
  22. }
  23. **/
  24. const remainingRouter: AppRouteRecordRaw[] = [
  25. {
  26. path: '/redirect',
  27. component: Layout,
  28. name: 'Redirect',
  29. children: [
  30. {
  31. path: '/redirect/:path(.*)',
  32. name: 'Redirect',
  33. component: () => import('@/views/Redirect/Redirect.vue'),
  34. meta: {}
  35. }
  36. ],
  37. meta: {
  38. hidden: true,
  39. noTagsView: true
  40. }
  41. },
  42. {
  43. path: '/',
  44. component: Layout,
  45. redirect: '/index',
  46. name: 'Home',
  47. meta: {},
  48. children: [
  49. {
  50. path: 'index',
  51. component: () => import('@/views/Home/Index.vue'),
  52. name: 'Index',
  53. meta: {
  54. title: t('router.home'),
  55. icon: 'ep:home-filled',
  56. noCache: false,
  57. affix: true
  58. }
  59. }
  60. ]
  61. },
  62. {
  63. path: '/dingding',
  64. component: () => import('@/views/pms/dingding.vue'),
  65. meta:{
  66. hidden: true,
  67. }
  68. },
  69. {
  70. path: '/deviceattrstemplate',
  71. component: Layout,
  72. name: 'DeviceAttrsCenter',
  73. meta: {
  74. hidden: true
  75. },
  76. children: [
  77. {
  78. path: 'template/detail/:id',
  79. component: () => import('@/views/pms/devicetemplate/detail/attrsModel/index.vue'),
  80. name: 'DeviceAttrTemplateModel',
  81. meta: {
  82. title: '设备属性模板详情',
  83. noCache: false,
  84. hidden: true,
  85. canTo: true,
  86. activeMenu: '/template/info'
  87. }
  88. }
  89. ]
  90. },
  91. {
  92. path: '/modelattrstemplate',
  93. component: Layout,
  94. name: 'ModelAttrsCenter',
  95. meta: {
  96. hidden: true
  97. },
  98. children: [
  99. {
  100. path: 'template/detail/:id',
  101. component: () => import('@/views/pms/modeltemplate/detail/attrsModel/index.vue'),
  102. name: 'ModelAttrTemplate',
  103. meta: {
  104. title: '属性信息详情',
  105. noCache: false,
  106. hidden: true,
  107. canTo: true,
  108. activeMenu: '/template/info'
  109. }
  110. }
  111. ]
  112. },
  113. {
  114. path: '/iotProjectInfo',
  115. component: Layout,
  116. name: 'IotProjectInfo',
  117. meta: {
  118. hidden: true
  119. },
  120. children: [
  121. {
  122. path: 'project/info/:type/:id?(\\d+)',
  123. component: () => import('@/views/pms/iotprojectinfo/IotProjectInfoForm.vue'),
  124. name: 'IotProjectInfo',
  125. meta: {
  126. title: '添加项目信息',
  127. noCache: false,
  128. hidden: true,
  129. canTo: true,
  130. activeMenu: '/project/info'
  131. }
  132. }
  133. ]
  134. },
  135. {
  136. path: '/fillOrderInfo',
  137. component: Layout,
  138. name: 'FillOrderInfo',
  139. meta: {
  140. hidden: true
  141. },
  142. children: [
  143. {
  144. path: 'template/detail/:id',
  145. component: () => import('@/views/pms/iotopeationfill/index1.vue'),
  146. name: 'FillOrderInfo',
  147. meta: {
  148. title: '填写信息详情',
  149. noCache: false,
  150. hidden: true,
  151. canTo: true,
  152. activeMenu: '/template/info'
  153. }
  154. },
  155. {
  156. path: 'template/detail/:id/:deviceid/:status/:deptid/:createtime',
  157. component: () => import('@/views/pms/device/record/RecordInfo.vue'),
  158. name: 'FillOrderInfoDevice',
  159. meta: {
  160. title: '详情',
  161. noCache: false,
  162. hidden: true,
  163. canTo: true,
  164. activeMenu: '/template/info'
  165. }
  166. }
  167. ]
  168. },
  169. {
  170. path: '/iotpms/iotdevicepms', // 商品中心
  171. component: Layout,
  172. name: 'PmsDeviceCenter',
  173. meta: {
  174. hidden: true
  175. },
  176. children: [
  177. {
  178. path: 'device/detail/add/:type/:deptId',
  179. component: () => import('@/views/pms/device/IotDeviceForm.vue'),
  180. name: 'DeviceDetailAdd',
  181. meta: {
  182. noCache: false,
  183. hidden: true,
  184. canTo: true,
  185. icon: 'ep:add',
  186. title: '设备台账添加',
  187. activeMenu: '/device/base'
  188. }
  189. },
  190. {
  191. path: 'device/detail/add',
  192. component: () => import('@/views/pms/device/IotDeviceFormAdd.vue'),
  193. name: 'DeviceDetailAddd',
  194. meta: {
  195. noCache: false,
  196. hidden: true,
  197. canTo: true,
  198. icon: 'ep:add',
  199. title: '设备台账添加',
  200. activeMenu: '/device/base'
  201. }
  202. },
  203. {
  204. path: 'device/detail/edit/:type/:id(\\d+)',
  205. component: () => import('@/views/pms/device/IotDeviceForm.vue'),
  206. name: 'DeviceDetailEdit',
  207. meta: {
  208. noCache: true,
  209. hidden: true,
  210. canTo: true,
  211. icon: 'ep:edit',
  212. title: '设备台账编辑',
  213. activeMenu: '/device/base'
  214. }
  215. },{
  216. path: 'device/detail/:id',
  217. component: () => import('@/views/pms/device/DeviceInfo.vue'),
  218. name: 'DeviceDetailInfo',
  219. meta: {
  220. noCache: false,
  221. hidden: true,
  222. canTo: true,
  223. icon: 'ep:info',
  224. title: '设备台账详情',
  225. activeMenu: '/device/info'
  226. }
  227. },{
  228. path: 'tddevice/detail/:id/:ifInline/:time/:name/:code/:dept',
  229. component: () => import('@/views/pms/device/monitor/TdDeviceInfo.vue'),
  230. name: 'TdDeviceDetail',
  231. meta: {
  232. noCache: false,
  233. hidden: true,
  234. canTo: true,
  235. icon: 'ep:info',
  236. title: '监控详情',
  237. activeMenu: '/device/info'
  238. }
  239. },{
  240. path: 'device/upload/:id',
  241. component: () => import('@/views/pms/device/DeviceUpload.vue'),
  242. name: 'DeviceUpload',
  243. meta: {
  244. noCache: false,
  245. hidden: true,
  246. canTo: true,
  247. icon: 'ep:info',
  248. title: '设备台账资料上传',
  249. activeMenu: '/device/upload'
  250. }
  251. },{
  252. path: 'device/bom/:id',
  253. component: () => import('@/views/pms/device/bom/BomInfo.vue'),
  254. name: 'DeviceBom',
  255. meta: {
  256. noCache: false,
  257. hidden: true,
  258. canTo: true,
  259. icon: 'ep:info',
  260. title: '设备BOM',
  261. activeMenu: '/device/bom'
  262. }
  263. },
  264. {
  265. path: 'device/person',
  266. component: () => import('@/views/pms/device/personlog/ConfigDevicePerson.vue'),
  267. name: 'ConfigDevicePerson',
  268. meta: {
  269. noCache: false,
  270. hidden: true,
  271. canTo: true,
  272. icon: 'ep:add',
  273. title: '设备责任人',
  274. activeMenu: '/device/person'
  275. }
  276. },
  277. {
  278. path: 'device/status',
  279. component: () => import('@/views/pms/device/statuslog/ConfigDeviceStatus.vue'),
  280. name: 'ConfigDeviceStatus',
  281. meta: {
  282. noCache: false,
  283. hidden: true,
  284. canTo: true,
  285. icon: 'ep:add',
  286. title: '调整设备状态',
  287. activeMenu: '/device/status'
  288. }
  289. },
  290. {
  291. path: 'device/allot',
  292. component: () => import('@/views/pms/device/allotlog/ConfigDeviceAllot.vue'),
  293. name: 'ConfigDeviceAllot',
  294. meta: {
  295. noCache: false,
  296. hidden: true,
  297. canTo: true,
  298. icon: 'ep:add',
  299. title: '设备调拨',
  300. activeMenu: '/device/allot'
  301. }
  302. }
  303. ]
  304. },
  305. {
  306. path: '/iotpms/iotlockstock',
  307. component: Layout,
  308. name: 'PmsLockStockCenter',
  309. meta: {
  310. hidden: true
  311. },
  312. children: [
  313. {
  314. path: 'lockstock',
  315. component: () => import('@/views/pms/iotlockstock/index.vue'),
  316. name: 'IotLockStock',
  317. meta: {
  318. noCache: false,
  319. hidden: true,
  320. canTo: true,
  321. icon: 'ep:menu',
  322. title: '本地库存',
  323. activeMenu: '/lockstock/index'
  324. }
  325. },
  326. {
  327. path: 'lockstock/add',
  328. component: () => import('@/views/pms/iotlockstock/IotAddToStock.vue'),
  329. name: 'LockStockAdd',
  330. meta: {
  331. noCache: false,
  332. hidden: true,
  333. canTo: true,
  334. icon: 'ep:add',
  335. title: '手工入库',
  336. activeMenu: '/lockstock/add'
  337. }
  338. },
  339. {
  340. path: 'lockstock/edit/:id(\\d+)',
  341. component: () => import('@/views/pms/iotlockstock/IotAddToStock.vue'),
  342. name: 'LockStockEdit',
  343. meta: {
  344. noCache: true,
  345. hidden: true,
  346. canTo: true,
  347. icon: 'ep:edit',
  348. title: '修改入库',
  349. activeMenu: '/lockstock/edit'
  350. }
  351. }
  352. ]
  353. },
  354. {
  355. path: '/iotpms/iotsapstock',
  356. component: Layout,
  357. name: 'PmsSapStockCenter',
  358. meta: {
  359. hidden: true
  360. },
  361. children: [
  362. {
  363. path: 'sapstock',
  364. component: () => import('@/views/pms/iotsapstock/index.vue'),
  365. name: 'IotSapStock',
  366. meta: {
  367. noCache: false,
  368. hidden: true,
  369. canTo: true,
  370. icon: 'ep:menu',
  371. title: 'SAP库存',
  372. activeMenu: '/sapstock/index'
  373. }
  374. },
  375. {
  376. path: 'sapstock/config',
  377. component: () => import('@/views/pms/iotsapstock/IotSapStockConfig.vue'),
  378. name: 'IotSapStockConfig',
  379. meta: {
  380. noCache: false,
  381. hidden: true,
  382. canTo: true,
  383. icon: 'ep:add',
  384. title: 'SAP安全库存',
  385. activeMenu: '/sapstock/config'
  386. }
  387. },
  388. {
  389. path: 'sapstock/safe',
  390. component: () => import('@/views/pms/iotsapstock/IotConfigSafeStock.vue'),
  391. name: 'IotConfigSafeStock',
  392. meta: {
  393. noCache: false,
  394. hidden: true,
  395. canTo: true,
  396. icon: 'ep:add',
  397. title: '配置安全库存',
  398. activeMenu: '/sapstock/safe'
  399. }
  400. },
  401. ]
  402. },
  403. {
  404. path: '/iotpms/iotmaintenanceplan',
  405. component: Layout,
  406. name: 'PmsMaintenanceCenter',
  407. meta: {
  408. hidden: true
  409. },
  410. children: [
  411. {
  412. path: 'maintenanceplan',
  413. component: () => import('@/views/pms/maintenance/index.vue'),
  414. name: 'IotMaintenancePlan',
  415. meta: {
  416. noCache: false,
  417. hidden: true,
  418. canTo: true,
  419. icon: 'ep:menu',
  420. title: '保养计划',
  421. activeMenu: '/maintenanceplan/index'
  422. }
  423. },
  424. {
  425. path: 'maintenanceplan/add',
  426. component: () => import('@/views/pms/maintenance/IotMaintenancePlan.vue'),
  427. name: 'IotAddMainPlan',
  428. meta: {
  429. noCache: false,
  430. hidden: true,
  431. canTo: true,
  432. icon: 'ep:add',
  433. title: '新增保养计划',
  434. activeMenu: '/maintenanceplan/add'
  435. }
  436. },
  437. {
  438. path: 'maintenanceplan/edit/:id(\\d+)',
  439. component: () => import('@/views/pms/maintenance/IotMaintenancePlan.vue'),
  440. name: 'IotEditMainPlan',
  441. meta: {
  442. noCache: true,
  443. hidden: true,
  444. canTo: true,
  445. icon: 'ep:edit',
  446. title: '修改保养计划',
  447. activeMenu: '/maintenanceplan/edit'
  448. }
  449. },
  450. {
  451. path: 'maintenanceplan/detail/:id(\\d+)',
  452. component: () => import('@/views/pms/maintenance/IotMaintenancePlanDetail.vue'),
  453. name: 'IotMaintenancePlanDetail',
  454. meta: {
  455. noCache: true,
  456. hidden: true,
  457. canTo: true,
  458. icon: 'ep:edit',
  459. title: '保养计划详情',
  460. activeMenu: '/maintenanceplan/detail'
  461. }
  462. }
  463. ]
  464. },
  465. {
  466. path: '/iotpms/iotmainworkorder',
  467. component: Layout,
  468. name: 'PmsMainWorkOrderCenter',
  469. meta: {
  470. hidden: true
  471. },
  472. children: [
  473. {
  474. path: 'mainworkorder',
  475. component: () => import('@/views/pms/iotmainworkorder/index.vue'),
  476. name: 'IotMainWorkOrder',
  477. meta: {
  478. noCache: false,
  479. hidden: true,
  480. canTo: true,
  481. icon: 'ep:menu',
  482. title: '保养工单',
  483. activeMenu: '/mainworkorder/index'
  484. }
  485. },
  486. {
  487. path: 'mainworkorder/bom/:id(\\d+)',
  488. component: () => import('@/views/pms/iotmainworkorder/IotMainWorkOrder.vue'),
  489. name: 'IotMainWorkOrderBom',
  490. meta: {
  491. noCache: false,
  492. hidden: true,
  493. canTo: true,
  494. icon: 'ep:add',
  495. title: '填报保养工单',
  496. activeMenu: '/mainworkorder/bom'
  497. }
  498. },
  499. {
  500. path: 'mainworkorder/add',
  501. component: () => import('@/views/pms/iotmainworkorder/IotMainWorkOrderAdd.vue'),
  502. name: 'IotMainWorkOrderAdd',
  503. meta: {
  504. noCache: false,
  505. hidden: true,
  506. canTo: true,
  507. icon: 'ep:add',
  508. title: '新增保养工单',
  509. activeMenu: '/mainworkorder/add'
  510. }
  511. },
  512. {
  513. path: 'mainworkorder/detail/:id(\\d+)',
  514. component: () => import('@/views/pms/iotmainworkorder/IotMainWorkOrderDetail.vue'),
  515. name: 'IotMainWorkOrderDetail',
  516. meta: {
  517. noCache: false,
  518. hidden: true,
  519. canTo: true,
  520. icon: 'ep:add',
  521. title: '保养工单详情',
  522. activeMenu: '/mainworkorder/detail'
  523. }
  524. },
  525. {
  526. path: 'mainworkorder/device/detail/:orderId/:deviceId(\\d+)',
  527. component: () => import('@/views/pms/device/maintenance/MaintenanceDetail.vue'),
  528. name: 'IotDeviceMainWorkOrderDetail',
  529. meta: {
  530. noCache: false,
  531. hidden: true,
  532. canTo: true,
  533. icon: 'ep:add',
  534. title: '保养工单详情',
  535. activeMenu: '/mainworkorder/detail'
  536. }
  537. }
  538. ]
  539. },
  540. {
  541. path: '/iotpms/iotmaterialreq',
  542. component: Layout,
  543. name: 'PmsMaterialReqCenter',
  544. meta: {
  545. hidden: true
  546. },
  547. children: [
  548. {
  549. path: 'materialreq',
  550. component: () => import('@/views/pms/iotmaterialrequisition/index.vue'),
  551. name: 'IotMaterialRequisition',
  552. meta: {
  553. noCache: false,
  554. hidden: true,
  555. canTo: true,
  556. icon: 'ep:menu',
  557. title: '物料领用',
  558. activeMenu: '/materialreq/index'
  559. }
  560. },
  561. {
  562. path: 'materialreq/add',
  563. component: () => import('@/views/pms/iotmaterialrequisition/IotMaterialRequisitionAdd.vue'),
  564. name: 'IotMaterialRequisitionAdd',
  565. meta: {
  566. noCache: false,
  567. hidden: true,
  568. canTo: true,
  569. icon: 'ep:add',
  570. title: '新增物料领用',
  571. activeMenu: '/materialreq/add'
  572. }
  573. },
  574. {
  575. path: 'materialreq/detail/:id(\\d+)',
  576. component: () => import('@/views/pms/iotmaterialrequisition/IotMaterialReqDetail.vue'),
  577. name: 'IotMaterialReqDetail',
  578. meta: {
  579. noCache: false,
  580. hidden: true,
  581. canTo: true,
  582. icon: 'ep:view',
  583. title: '领用单详情',
  584. activeMenu: '/materialreq/detail'
  585. }
  586. },
  587. ]
  588. },
  589. {
  590. path: '/iotpms/maincalendar',
  591. component: Layout,
  592. name: 'PmsMainCalendarCenter',
  593. meta: {
  594. hidden: true
  595. },
  596. children: [
  597. {
  598. path: 'maintenancecalendar',
  599. component: () => import('@/views/pms/iotmaincalendar/index.vue'),
  600. name: 'MaintenanceCalendar',
  601. meta: {
  602. noCache: false,
  603. hidden: true,
  604. canTo: true,
  605. icon: 'ep:menu',
  606. title: '保养台历',
  607. activeMenu: '/maintenancecalendar/index'
  608. }
  609. }
  610. ]
  611. },
  612. {
  613. path: '/iotpms/iotmaintain',
  614. component: Layout,
  615. name: 'PmsMaintainCenter',
  616. meta: {
  617. hidden: true
  618. },
  619. children: [
  620. {
  621. path: 'maintain/add',
  622. component: () => import('@/views/pms/maintain/IotMaintain.vue'),
  623. name: 'MaintainAdd',
  624. meta: {
  625. noCache: false,
  626. hidden: true,
  627. canTo: true,
  628. icon: 'ep:add',
  629. title: '维修工单添加',
  630. activeMenu: '/maintain/add'
  631. }
  632. },
  633. {
  634. path: 'maintain/edit/:id(\\d+)',
  635. component: () => import('@/views/pms/maintain/IotMaintain.vue'),
  636. name: 'MaintainEdit',
  637. meta: {
  638. noCache: true,
  639. hidden: true,
  640. canTo: true,
  641. icon: 'ep:edit',
  642. title: '维修工单编辑',
  643. activeMenu: '/maintain/edit'
  644. }
  645. },{
  646. path: 'maintain/detail/:id(\\d+)',
  647. component: () => import('@/views/pms/maintain/IotMaintainDetail.vue'),
  648. name: 'MaintainDetail',
  649. meta: {
  650. noCache: false,
  651. hidden: true,
  652. canTo: true,
  653. icon: 'ep:add',
  654. title: '维修工单详情',
  655. activeMenu: '/maintain/detail'
  656. }
  657. },
  658. ]
  659. },
  660. {
  661. path: '/iotpms/iotinspectroute',
  662. component: Layout,
  663. name: 'PmsInspectRouteCenter',
  664. meta: {
  665. hidden: true
  666. },
  667. children: [
  668. {
  669. path: 'route/add',
  670. component: () => import('@/views/pms/inspect/route/IotInspectRoute.vue'),
  671. name: 'RouteAdd',
  672. meta: {
  673. noCache: false,
  674. hidden: true,
  675. canTo: true,
  676. icon: 'ep:add',
  677. title: '巡检路线添加',
  678. activeMenu: '/route/add'
  679. }
  680. },
  681. {
  682. path: 'route/edit/:id(\\d+)',
  683. component: () => import('@/views/pms/inspect/route/IotInspectRoute.vue'),
  684. name: 'RouteEdit',
  685. meta: {
  686. noCache: true,
  687. hidden: true,
  688. canTo: true,
  689. icon: 'ep:edit',
  690. title: '巡检路线编辑',
  691. activeMenu: '/route/edit'
  692. }
  693. // }
  694. // ,{
  695. // path: 'route/detail/:id(\\d+)',
  696. // component: () => import('@/views/pms/maintain/IotMaintainDetail.vue'),
  697. // name: 'InspectRouteDetail',
  698. // meta: {
  699. // noCache: false,
  700. // hidden: true,
  701. // canTo: true,
  702. // icon: 'ep:add',
  703. // title: '巡检路线详情',
  704. // activeMenu: '/route/detail'
  705. // }
  706. },
  707. ]
  708. },
  709. {
  710. path: '/iotpms/iotinspectplan',
  711. component: Layout,
  712. name: 'PmsInspectPlanCenter',
  713. meta: {
  714. hidden: true
  715. },
  716. children: [
  717. {
  718. path: 'inspect/plan/add',
  719. component: () => import('@/views/pms/inspect/plan/IotInspectPlan.vue'),
  720. name: 'InspectPlanAdd',
  721. meta: {
  722. noCache: false,
  723. hidden: true,
  724. canTo: true,
  725. icon: 'ep:add',
  726. title: '巡检计划添加',
  727. activeMenu: '/inspect/plan/add'
  728. }
  729. },
  730. {
  731. path: 'inspect/plan/edit/:id(\\d+)',
  732. component: () => import('@/views/pms/inspect/plan/IotInspectPlan.vue'),
  733. name: 'InspectPlanEdit',
  734. meta: {
  735. noCache: true,
  736. hidden: true,
  737. canTo: true,
  738. icon: 'ep:edit',
  739. title: '巡检计划编辑',
  740. activeMenu: '/inspect/plan/edit'
  741. }
  742. // }
  743. // ,{
  744. // path: 'route/detail/:id(\\d+)',
  745. // component: () => import('@/views/pms/maintain/IotMaintainDetail.vue'),
  746. // name: 'InspectRouteDetail',
  747. // meta: {
  748. // noCache: false,
  749. // hidden: true,
  750. // canTo: true,
  751. // icon: 'ep:add',
  752. // title: '巡检路线详情',
  753. // activeMenu: '/route/detail'
  754. // }
  755. },
  756. ]
  757. },
  758. {
  759. path: '/iotpms/iotinspectorder',
  760. component: Layout,
  761. name: 'PmsInspectOrderCenter',
  762. meta: {
  763. hidden: true
  764. },
  765. children: [
  766. {
  767. path: 'inspect/order/add',
  768. component: () => import('@/views/pms/inspect/order/InspectOrderDetail.vue'),
  769. name: 'InspectOrderAdd',
  770. meta: {
  771. noCache: false,
  772. hidden: true,
  773. canTo: true,
  774. icon: 'ep:add',
  775. title: '巡检工单填写',
  776. activeMenu: '/inspect/order/add'
  777. }
  778. },
  779. {
  780. path: 'inspect/order/edit/:id(\\d+)',
  781. component: () => import('@/views/pms/inspect/order/InspectOrderDetail.vue'),
  782. name: 'InspectOrderEdit',
  783. meta: {
  784. noCache: true,
  785. hidden: true,
  786. canTo: true,
  787. icon: 'ep:edit',
  788. title: '巡检计划编辑',
  789. activeMenu: '/inspect/order/edit'
  790. }
  791. }
  792. ,{
  793. path: '/inspect/order/detail/:id(\\d+)',
  794. component: () => import('@/views/pms/inspect/order/InspectOrderDetail.vue'),
  795. name: 'InspectOrderDetail',
  796. meta: {
  797. noCache: false,
  798. hidden: true,
  799. canTo: true,
  800. icon: 'ep:add',
  801. title: '巡检工单详情',
  802. activeMenu: '/inspect/order/detail'
  803. }
  804. },{
  805. path: '/inspect/order/write/:id(\\d+)',
  806. component: () => import('@/views/pms/inspect/order/WriteOrder.vue'),
  807. name: 'InspectOrderWrite',
  808. meta: {
  809. noCache: false,
  810. hidden: true,
  811. canTo: true,
  812. icon: 'ep:add',
  813. title: '巡检工单填写',
  814. activeMenu: '/inspect/order/write'
  815. }
  816. }
  817. ]
  818. },
  819. {
  820. path: '/failure',
  821. component: Layout,
  822. name: 'failure',
  823. meta: {
  824. hidden: true
  825. },
  826. children: [
  827. {
  828. path: 'failure/detail/:id',
  829. component: () => import('@/views/pms/failure/FailureInfo.vue'),
  830. name: 'FailureDetail',
  831. meta: {
  832. noCache: true,
  833. hidden: true,
  834. canTo: true,
  835. title: '查看故障详情',
  836. activeMenu: '/failure/detail'
  837. }
  838. }
  839. ]
  840. },
  841. {
  842. path: '/user',
  843. component: Layout,
  844. name: 'UserInfo',
  845. meta: {
  846. hidden: true
  847. },
  848. children: [
  849. {
  850. path: 'profile',
  851. component: () => import('@/views/Profile/Index.vue'),
  852. name: 'Profile',
  853. meta: {
  854. canTo: true,
  855. hidden: true,
  856. noTagsView: false,
  857. icon: 'ep:user',
  858. title: t('common.profile')
  859. }
  860. },
  861. {
  862. path: 'notify-message',
  863. component: () => import('@/views/system/notify/my/index.vue'),
  864. name: 'MyNotifyMessage',
  865. meta: {
  866. canTo: true,
  867. hidden: true,
  868. noTagsView: false,
  869. icon: 'ep:message',
  870. title: '我的站内信'
  871. }
  872. }
  873. ]
  874. },
  875. {
  876. path: '/dict',
  877. component: Layout,
  878. name: 'dict',
  879. meta: {
  880. hidden: true
  881. },
  882. children: [
  883. {
  884. path: 'type/data/:dictType',
  885. component: () => import('@/views/system/dict/data/index.vue'),
  886. name: 'SystemDictData',
  887. meta: {
  888. title: '字典数据',
  889. noCache: true,
  890. hidden: true,
  891. canTo: true,
  892. icon: '',
  893. activeMenu: '/system/dict'
  894. }
  895. }
  896. ]
  897. },
  898. {
  899. path: '/codegen',
  900. component: Layout,
  901. name: 'CodegenEdit',
  902. meta: {
  903. hidden: true
  904. },
  905. children: [
  906. {
  907. path: 'edit',
  908. component: () => import('@/views/infra/codegen/EditTable.vue'),
  909. name: 'InfraCodegenEditTable',
  910. meta: {
  911. noCache: true,
  912. hidden: true,
  913. canTo: true,
  914. icon: 'ep:edit',
  915. title: '修改生成配置',
  916. activeMenu: 'infra/codegen/index'
  917. }
  918. }
  919. ]
  920. },
  921. {
  922. path: '/job',
  923. component: Layout,
  924. name: 'JobL',
  925. meta: {
  926. hidden: true
  927. },
  928. children: [
  929. {
  930. path: 'job-log',
  931. component: () => import('@/views/infra/job/logger/index.vue'),
  932. name: 'InfraJobLog',
  933. meta: {
  934. noCache: true,
  935. hidden: true,
  936. canTo: true,
  937. icon: 'ep:edit',
  938. title: '调度日志',
  939. activeMenu: 'infra/job/index'
  940. }
  941. }
  942. ]
  943. },
  944. {
  945. path: '/login',
  946. component: () => import('@/views/Login/Login.vue'),
  947. name: 'Login',
  948. meta: {
  949. hidden: true,
  950. title: t('router.login'),
  951. noTagsView: true
  952. }
  953. },
  954. {
  955. path: '/sso',
  956. component: () => import('@/views/Login/Login.vue'),
  957. name: 'SSOLogin',
  958. meta: {
  959. hidden: true,
  960. title: t('router.login'),
  961. noTagsView: true
  962. }
  963. },
  964. {
  965. path: '/social-login',
  966. component: () => import('@/views/Login/SocialLogin.vue'),
  967. name: 'SocialLogin',
  968. meta: {
  969. hidden: true,
  970. title: t('router.socialLogin'),
  971. noTagsView: true
  972. }
  973. },
  974. {
  975. path: '/403',
  976. component: () => import('@/views/Error/403.vue'),
  977. name: 'NoAccess',
  978. meta: {
  979. hidden: true,
  980. title: '403',
  981. noTagsView: true
  982. }
  983. },
  984. {
  985. path: '/404',
  986. component: () => import('@/views/Error/404.vue'),
  987. name: 'NoFound',
  988. meta: {
  989. hidden: true,
  990. title: '404',
  991. noTagsView: true
  992. }
  993. },
  994. {
  995. path: '/500',
  996. component: () => import('@/views/Error/500.vue'),
  997. name: 'Error',
  998. meta: {
  999. hidden: true,
  1000. title: '500',
  1001. noTagsView: true
  1002. }
  1003. },
  1004. {
  1005. path: '/supplier/product', // 商品中心
  1006. component: Layout,
  1007. name: 'SupplierCenter',
  1008. meta: {
  1009. hidden: true
  1010. },
  1011. children: [
  1012. {
  1013. path: 'supplier/detail/add',
  1014. component: () => import('@/views/supplier/base/form/index.vue'),
  1015. name: 'SupplierDetailAdd',
  1016. meta: {
  1017. noCache: false,
  1018. hidden: true,
  1019. canTo: true,
  1020. icon: 'ep:edit',
  1021. title: '供应商添加',
  1022. activeMenu: '/supplier/base'
  1023. }
  1024. },
  1025. {
  1026. path: 'supplier/detail/edit/:id(\\d+)',
  1027. component: () => import('@/views/supplier/base/form/index.vue'),
  1028. name: 'SupplierDetailEdit',
  1029. meta: {
  1030. noCache: true,
  1031. hidden: true,
  1032. canTo: true,
  1033. icon: 'ep:edit',
  1034. title: '供应商编辑',
  1035. activeMenu: '/supplier/base'
  1036. }
  1037. },
  1038. {
  1039. path: '/supplier/detail/info/:id(\\d+)',
  1040. component: () => import('@/views/supplier/base/form/index.vue'),
  1041. name: 'SupplierDetailInfo',
  1042. meta: {
  1043. noCache: true,
  1044. hidden: true,
  1045. canTo: true,
  1046. icon: 'ep:view',
  1047. title: '供应商详情',
  1048. activeMenu: '/supplier/base'
  1049. }
  1050. },
  1051. {
  1052. path: 'supplier/approvalDetail/:id',
  1053. name: 'SupplierApprovalInfo',
  1054. meta: {
  1055. title: '供应商审核详情',
  1056. noCache: true,
  1057. hidden: true,
  1058. activeMenu: '/supplier/base'
  1059. },
  1060. component: () => import('@/views/supplier/approvaldetail/ApprovalDetail.vue')
  1061. }
  1062. ]
  1063. },
  1064. {
  1065. path: '/bpm',
  1066. component: Layout,
  1067. name: 'bpm',
  1068. meta: {
  1069. hidden: true
  1070. },
  1071. children: [
  1072. {
  1073. path: 'manager/form/edit',
  1074. component: () => import('@/views/bpm/form/editor/index.vue'),
  1075. name: 'BpmFormEditor',
  1076. meta: {
  1077. noCache: true,
  1078. hidden: true,
  1079. canTo: true,
  1080. title: '设计流程表单',
  1081. activeMenu: '/bpm/manager/form'
  1082. }
  1083. },
  1084. {
  1085. path: 'manager/definition',
  1086. component: () => import('@/views/bpm/model/definition/index.vue'),
  1087. name: 'BpmProcessDefinition',
  1088. meta: {
  1089. noCache: true,
  1090. hidden: true,
  1091. canTo: true,
  1092. title: '流程定义',
  1093. activeMenu: '/bpm/manager/model'
  1094. }
  1095. },
  1096. {
  1097. path: 'process-instance/detail',
  1098. component: () => import('@/views/bpm/processInstance/detail/index.vue'),
  1099. name: 'BpmProcessInstanceDetail',
  1100. meta: {
  1101. noCache: true,
  1102. hidden: true,
  1103. canTo: true,
  1104. title: '流程详情',
  1105. activeMenu: '/bpm/task/my'
  1106. },
  1107. props: (route) => ({
  1108. id: route.query.id,
  1109. taskId: route.query.taskId,
  1110. activityId: route.query.activityId
  1111. })
  1112. },
  1113. {
  1114. path: 'process-instance/report',
  1115. component: () => import('@/views/bpm/processInstance/report/index.vue'),
  1116. name: 'BpmProcessInstanceReport',
  1117. meta: {
  1118. noCache: true,
  1119. hidden: true,
  1120. canTo: true,
  1121. title: '数据报表',
  1122. activeMenu: '/bpm/manager/model'
  1123. }
  1124. },
  1125. {
  1126. path: 'oa/leave/create',
  1127. component: () => import('@/views/bpm/oa/leave/create.vue'),
  1128. name: 'OALeaveCreate',
  1129. meta: {
  1130. noCache: true,
  1131. hidden: true,
  1132. canTo: true,
  1133. title: '发起 OA 请假',
  1134. activeMenu: '/bpm/oa/leave'
  1135. }
  1136. },
  1137. {
  1138. path: 'oa/leave/detail',
  1139. component: () => import('@/views/bpm/oa/leave/detail.vue'),
  1140. name: 'OALeaveDetail',
  1141. meta: {
  1142. noCache: true,
  1143. hidden: true,
  1144. canTo: true,
  1145. title: '查看 OA 请假',
  1146. activeMenu: '/bpm/oa/leave'
  1147. }
  1148. },
  1149. {
  1150. path: 'manager/model/create',
  1151. component: () => import('@/views/bpm/model/form/index.vue'),
  1152. name: 'BpmModelCreate',
  1153. meta: {
  1154. noCache: true,
  1155. hidden: true,
  1156. canTo: true,
  1157. title: '创建流程',
  1158. activeMenu: '/bpm/manager/model'
  1159. }
  1160. },
  1161. {
  1162. path: 'manager/model/:type/:id',
  1163. component: () => import('@/views/bpm/model/form/index.vue'),
  1164. name: 'BpmModelUpdate',
  1165. meta: {
  1166. noCache: true,
  1167. hidden: true,
  1168. canTo: true,
  1169. title: '修改流程',
  1170. activeMenu: '/bpm/manager/model'
  1171. }
  1172. }
  1173. ]
  1174. },
  1175. {
  1176. path: '/mall/product', // 商品中心
  1177. component: Layout,
  1178. name: 'ProductCenter',
  1179. meta: {
  1180. hidden: true
  1181. },
  1182. children: [
  1183. {
  1184. path: 'spu/add',
  1185. component: () => import('@/views/mall/product/spu/form/index.vue'),
  1186. name: 'ProductSpuAdd',
  1187. meta: {
  1188. noCache: false, // 需要缓存
  1189. hidden: true,
  1190. canTo: true,
  1191. icon: 'ep:edit',
  1192. title: '商品添加',
  1193. activeMenu: '/mall/product/spu'
  1194. }
  1195. },
  1196. {
  1197. path: 'spu/edit/:id(\\d+)',
  1198. component: () => import('@/views/mall/product/spu/form/index.vue'),
  1199. name: 'ProductSpuEdit',
  1200. meta: {
  1201. noCache: true,
  1202. hidden: true,
  1203. canTo: true,
  1204. icon: 'ep:edit',
  1205. title: '商品编辑',
  1206. activeMenu: '/mall/product/spu'
  1207. }
  1208. },
  1209. {
  1210. path: 'spu/detail/:id(\\d+)',
  1211. component: () => import('@/views/mall/product/spu/form/index.vue'),
  1212. name: 'ProductSpuDetail',
  1213. meta: {
  1214. noCache: true,
  1215. hidden: true,
  1216. canTo: true,
  1217. icon: 'ep:view',
  1218. title: '商品详情',
  1219. activeMenu: '/mall/product/spu'
  1220. }
  1221. },
  1222. {
  1223. path: 'property/value/:propertyId(\\d+)',
  1224. component: () => import('@/views/mall/product/property/value/index.vue'),
  1225. name: 'ProductPropertyValue',
  1226. meta: {
  1227. noCache: true,
  1228. hidden: true,
  1229. canTo: true,
  1230. icon: 'ep:view',
  1231. title: '商品属性值',
  1232. activeMenu: '/product/property'
  1233. }
  1234. }
  1235. ]
  1236. },
  1237. {
  1238. path: '/mall/trade', // 交易中心
  1239. component: Layout,
  1240. name: 'TradeCenter',
  1241. meta: {
  1242. hidden: true
  1243. },
  1244. children: [
  1245. {
  1246. path: 'order/detail/:id(\\d+)',
  1247. component: () => import('@/views/mall/trade/order/detail/index.vue'),
  1248. name: 'TradeOrderDetail',
  1249. meta: { title: '订单详情', icon: 'ep:view', activeMenu: '/mall/trade/order' }
  1250. },
  1251. {
  1252. path: 'after-sale/detail/:id(\\d+)',
  1253. component: () => import('@/views/mall/trade/afterSale/detail/index.vue'),
  1254. name: 'TradeAfterSaleDetail',
  1255. meta: { title: '退款详情', icon: 'ep:view', activeMenu: '/mall/trade/after-sale' }
  1256. }
  1257. ]
  1258. },
  1259. {
  1260. path: '/member',
  1261. component: Layout,
  1262. name: 'MemberCenter',
  1263. meta: { hidden: true },
  1264. children: [
  1265. {
  1266. path: 'user/detail/:id',
  1267. name: 'MemberUserDetail',
  1268. meta: {
  1269. title: '会员详情',
  1270. noCache: true,
  1271. hidden: true
  1272. },
  1273. component: () => import('@/views/member/user/detail/index.vue')
  1274. }
  1275. ]
  1276. },
  1277. {
  1278. path: '/pay',
  1279. component: Layout,
  1280. name: 'pay',
  1281. meta: { hidden: true },
  1282. children: [
  1283. {
  1284. path: 'cashier',
  1285. name: 'PayCashier',
  1286. meta: {
  1287. title: '收银台',
  1288. noCache: true,
  1289. hidden: true
  1290. },
  1291. component: () => import('@/views/pay/cashier/index.vue')
  1292. }
  1293. ]
  1294. },
  1295. {
  1296. path: '/diy',
  1297. name: 'DiyCenter',
  1298. meta: { hidden: true },
  1299. component: Layout,
  1300. children: [
  1301. {
  1302. path: 'template/decorate/:id',
  1303. name: 'DiyTemplateDecorate',
  1304. meta: {
  1305. title: '模板装修',
  1306. noCache: true,
  1307. hidden: true,
  1308. activeMenu: '/mall/promotion/diy/template'
  1309. },
  1310. component: () => import('@/views/mall/promotion/diy/template/decorate.vue')
  1311. },
  1312. {
  1313. path: 'page/decorate/:id',
  1314. name: 'DiyPageDecorate',
  1315. meta: {
  1316. title: '页面装修',
  1317. noCache: true,
  1318. hidden: true,
  1319. activeMenu: '/mall/promotion/diy/page'
  1320. },
  1321. component: () => import('@/views/mall/promotion/diy/page/decorate.vue')
  1322. }
  1323. ]
  1324. },
  1325. {
  1326. path: '/crm',
  1327. component: Layout,
  1328. name: 'CrmCenter',
  1329. meta: { hidden: true },
  1330. children: [
  1331. {
  1332. path: 'clue/detail/:id',
  1333. name: 'CrmClueDetail',
  1334. meta: {
  1335. title: '线索详情',
  1336. noCache: true,
  1337. hidden: true,
  1338. activeMenu: '/crm/clue'
  1339. },
  1340. component: () => import('@/views/crm/clue/detail/index.vue')
  1341. },
  1342. {
  1343. path: 'customer/detail/:id',
  1344. name: 'CrmCustomerDetail',
  1345. meta: {
  1346. title: '客户详情',
  1347. noCache: true,
  1348. hidden: true,
  1349. activeMenu: '/crm/customer'
  1350. },
  1351. component: () => import('@/views/crm/customer/detail/index.vue')
  1352. },
  1353. {
  1354. path: 'business/detail/:id',
  1355. name: 'CrmBusinessDetail',
  1356. meta: {
  1357. title: '商机详情',
  1358. noCache: true,
  1359. hidden: true,
  1360. activeMenu: '/crm/business'
  1361. },
  1362. component: () => import('@/views/crm/business/detail/index.vue')
  1363. },
  1364. {
  1365. path: 'contract/detail/:id',
  1366. name: 'CrmContractDetail',
  1367. meta: {
  1368. title: '合同详情',
  1369. noCache: true,
  1370. hidden: true,
  1371. activeMenu: '/crm/contract'
  1372. },
  1373. component: () => import('@/views/crm/contract/detail/index.vue')
  1374. },
  1375. {
  1376. path: 'receivable-plan/detail/:id',
  1377. name: 'CrmReceivablePlanDetail',
  1378. meta: {
  1379. title: '回款计划详情',
  1380. noCache: true,
  1381. hidden: true,
  1382. activeMenu: '/crm/receivable-plan'
  1383. },
  1384. component: () => import('@/views/crm/receivable/plan/detail/index.vue')
  1385. },
  1386. {
  1387. path: 'receivable/detail/:id',
  1388. name: 'CrmReceivableDetail',
  1389. meta: {
  1390. title: '回款详情',
  1391. noCache: true,
  1392. hidden: true,
  1393. activeMenu: '/crm/receivable'
  1394. },
  1395. component: () => import('@/views/crm/receivable/detail/index.vue')
  1396. },
  1397. {
  1398. path: 'contact/detail/:id',
  1399. name: 'CrmContactDetail',
  1400. meta: {
  1401. title: '联系人详情',
  1402. noCache: true,
  1403. hidden: true,
  1404. activeMenu: '/crm/contact'
  1405. },
  1406. component: () => import('@/views/crm/contact/detail/index.vue')
  1407. },
  1408. {
  1409. path: 'product/detail/:id',
  1410. name: 'CrmProductDetail',
  1411. meta: {
  1412. title: '产品详情',
  1413. noCache: true,
  1414. hidden: true,
  1415. activeMenu: '/crm/product'
  1416. },
  1417. component: () => import('@/views/crm/product/detail/index.vue')
  1418. }
  1419. ]
  1420. },
  1421. {
  1422. path: '/ai',
  1423. component: Layout,
  1424. name: 'Ai',
  1425. meta: {
  1426. hidden: true
  1427. },
  1428. children: [
  1429. {
  1430. path: 'image/square',
  1431. component: () => import('@/views/ai/image/square/index.vue'),
  1432. name: 'AiImageSquare',
  1433. meta: {
  1434. title: '绘图作品',
  1435. icon: 'ep:home-filled',
  1436. noCache: false
  1437. }
  1438. },
  1439. {
  1440. path: 'knowledge/document',
  1441. component: () => import('@/views/ai/knowledge/document/index.vue'),
  1442. name: 'AiKnowledgeDocument',
  1443. meta: {
  1444. title: '知识库文档',
  1445. icon: 'ep:document',
  1446. noCache: false,
  1447. activeMenu: '/ai/knowledge'
  1448. }
  1449. },
  1450. {
  1451. path: 'knowledge/document/create',
  1452. component: () => import('@/views/ai/knowledge/document/form/index.vue'),
  1453. name: 'AiKnowledgeDocumentCreate',
  1454. meta: {
  1455. title: '创建文档',
  1456. icon: 'ep:plus',
  1457. noCache: true,
  1458. hidden: true,
  1459. activeMenu: '/ai/knowledge'
  1460. }
  1461. },
  1462. {
  1463. path: 'knowledge/document/update',
  1464. component: () => import('@/views/ai/knowledge/document/form/index.vue'),
  1465. name: 'AiKnowledgeDocumentUpdate',
  1466. meta: {
  1467. title: '修改文档',
  1468. icon: 'ep:edit',
  1469. noCache: true,
  1470. hidden: true,
  1471. activeMenu: '/ai/knowledge'
  1472. }
  1473. },
  1474. {
  1475. path: 'knowledge/retrieval',
  1476. component: () => import('@/views/ai/knowledge/knowledge/retrieval/index.vue'),
  1477. name: 'AiKnowledgeRetrieval',
  1478. meta: {
  1479. title: '文档召回测试',
  1480. icon: 'ep:search',
  1481. noCache: true,
  1482. hidden: true,
  1483. activeMenu: '/ai/knowledge'
  1484. }
  1485. },
  1486. {
  1487. path: 'knowledge/segment',
  1488. component: () => import('@/views/ai/knowledge/segment/index.vue'),
  1489. name: 'AiKnowledgeSegment',
  1490. meta: {
  1491. title: '知识库分段',
  1492. icon: 'ep:tickets',
  1493. noCache: true,
  1494. hidden: true,
  1495. activeMenu: '/ai/knowledge'
  1496. }
  1497. },
  1498. {
  1499. path: 'console/workflow/create',
  1500. component: () => import('@/views/ai/workflow/form/index.vue'),
  1501. name: 'AiWorkflowCreate',
  1502. meta: {
  1503. noCache: true,
  1504. hidden: true,
  1505. canTo: true,
  1506. title: '设计 AI 工作流',
  1507. activeMenu: '/ai/console/workflow'
  1508. }
  1509. },
  1510. {
  1511. path: 'console/workflow/:type/:id',
  1512. component: () => import('@/views/ai/workflow/form/index.vue'),
  1513. name: 'AiWorkflowUpdate',
  1514. meta: {
  1515. noCache: true,
  1516. hidden: true,
  1517. canTo: true,
  1518. title: '设计 AI 工作流',
  1519. activeMenu: '/ai/console/workflow'
  1520. }
  1521. }
  1522. ]
  1523. },
  1524. {
  1525. path: '/:pathMatch(.*)*',
  1526. component: () => import('@/views/Error/404.vue'),
  1527. name: '',
  1528. meta: {
  1529. title: '404',
  1530. hidden: true,
  1531. breadcrumb: false
  1532. }
  1533. },
  1534. {
  1535. path: '/iot',
  1536. component: Layout,
  1537. name: 'IOT',
  1538. meta: {
  1539. hidden: true
  1540. },
  1541. children: [
  1542. {
  1543. path: 'product/product/detail/:id',
  1544. name: 'IoTProductDetail',
  1545. meta: {
  1546. title: '产品详情',
  1547. noCache: true,
  1548. hidden: true,
  1549. activeMenu: '/iot/device/product'
  1550. },
  1551. component: () => import('@/views/iot/product/product/detail/index.vue')
  1552. },
  1553. {
  1554. path: 'device/detail/:id',
  1555. name: 'IoTDeviceDetail',
  1556. meta: {
  1557. title: '设备详情',
  1558. noCache: true,
  1559. hidden: true,
  1560. activeMenu: '/iot/device/device'
  1561. },
  1562. component: () => import('@/views/iot/device/device/detail/index.vue')
  1563. },
  1564. {
  1565. path: 'plugin/detail/:id',
  1566. name: 'IoTPluginDetail',
  1567. meta: {
  1568. title: '插件详情',
  1569. noCache: true,
  1570. hidden: true,
  1571. activeMenu: '/iot/plugin'
  1572. },
  1573. component: () => import('@/views/iot/plugin/detail/index.vue')
  1574. }
  1575. ]
  1576. },
  1577. ]
  1578. export default remainingRouter