From 66fce549e192000db040fc37b04c494bbdb98742 Mon Sep 17 00:00:00 2001 From: zwq Date: Thu, 23 Dec 2021 15:46:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=8F=9C=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 666 +------------------------------------------- 1 file changed, 15 insertions(+), 651 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index dd1589b..7576d1a 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -57,19 +57,19 @@ export const constantRoutes = [ component: () => import('@/views/login/index'), hidden: true }, - { - path: '/', - component: Layout, - redirect: '/dashboard', - children: [ - { - path: 'dashboard', - component: () => import('@/views/dashboard/index'), - name: 'Dashboard', - meta: { title: routerTitle.dashboard?.[language] || routerTitle.dashboard.en, icon: 'form', iconPart: 'dashboard', affix: true, required: true, requireToken: true } - } - ] - }, + // { + // path: '/', + // component: Layout, + // redirect: '/dashboard', + // children: [ + // { + // path: 'dashboard', + // component: () => import('@/views/dashboard/index'), + // name: 'Dashboard', + // meta: { title: routerTitle.dashboard?.[language] || routerTitle.dashboard.en, icon: 'form', iconPart: 'dashboard', affix: true, required: true, requireToken: true } + // } + // ] + // }, // { // path: '/', // component: () => import('@/views/ChoicePart'), @@ -92,117 +92,12 @@ export const constantRoutes = [ hidden: true }, { - path: '/basicData', + path: '/', component: Layout, - redirect: '/basicData/factoryManage', + redirect: '/Ports/ports', name: 'basicData', meta: { title: routerTitle.basicData?.[language] || routerTitle.basicData.en, icon: 'form', iconPart: 'basicData', affix: true, required: true, requireToken: true }, children: [ - { - path: '/factoryManage', - component: () => import('@/views/basicData/index'), - name: 'factoryManager', - meta: { title: routerTitle.basicData.factoryManage?.[language] || routerTitle.basicData.factoryManage.en, icon: 'form', affix: true, required: true, requireToken: true }, - children: [ - { - path: 'factory', - component: () => - import('@/views/basicData/FactoryManagement/Factory'), - name: 'factory', - meta: { title: routerTitle.basicData.factoryManage.factory?.[language] || routerTitle.basicData.factoryManage.factory.en, icon: 'form', affix: true, required: true, requireToken: true } - }, - { - path: 'productLine', - component: () => - import('@/views/basicData/FactoryManagement/product-line'), - name: 'productLine', - meta: { title: routerTitle.basicData.factoryManage.productLine?.[language] || routerTitle.basicData.factoryManage.productLine.en, icon: 'form', affix: true, required: true, requireToken: true } - }, - { - path: 'workSection', - component: () => - import('@/views/basicData/FactoryManagement/work-section'), - name: 'workSection', - meta: { title: routerTitle.basicData.factoryManage.workSection?.[language] || routerTitle.basicData.factoryManage.workSection.en, icon: 'form', affix: true, required: true, requireToken: true } - } - ] - }, - { - path: '/GroupModule', - component: () => import('@/views/basicData/index'), - name: 'GroupModule', - meta: { title: routerTitle.basicData.teamManage?.[language] || routerTitle.basicData.teamManage.en, icon: 'form', affix: true, required: true, requireToken: true }, - children: [ - { - path: 'group', - component: () => import('@/views/basicData/GroupModule/group'), - name: 'group', - meta: { title: routerTitle.basicData.teamManage.team?.[language] || routerTitle.basicData.teamManage.team.en, icon: 'form', affix: true, required: true, requireToken: true } - }, - { - path: 'major', - component: () => import('@/views/basicData/GroupModule/major'), - name: 'major', - meta: { title: routerTitle.basicData.teamManage.major?.[language] || routerTitle.basicData.teamManage.major.en, icon: 'form', affix: true, required: true, requireToken: true } - }, - { - path: 'staff', - component: () => import('@/views/basicData/GroupModule/staff'), - name: 'staff', - meta: { title: routerTitle.basicData.teamManage.staff?.[language] || routerTitle.basicData.teamManage.staff.en, icon: 'form', affix: true, required: true, requireToken: true } - } - ] - }, - // { - // path: '/CustomerSupplier', - // component: () => import('@/views/basicData/index'), - // name: 'CustomerSupplier', - // meta: { title: routerTitle.basicData.CustomerSupplier?.[language] || routerTitle.basicData.CustomerSupplier.en, icon: 'form', affix: true, required: true, requireToken: true }, - // children: [ - // { - // path: 'Customer', - // component: () => - // import('@/views/basicData/CustomerSupplier/customer'), - // name: 'Customer', - // meta: { title: routerTitle.basicData.CustomerSupplier.customer?.[language] || routerTitle.basicData.CustomerSupplier.customer.en, icon: 'form', affix: true, required: true, requireToken: true } - // }, - // { - // path: 'Supplier', - // component: () => - // import('@/views/basicData/CustomerSupplier/supplier'), - // name: 'Supplier', - // meta: { title: routerTitle.basicData.CustomerSupplier.supplier?.[language] || routerTitle.basicData.CustomerSupplier.supplier.en, icon: 'form', affix: true, required: true, requireToken: true } - // } - // ] - // }, - { - path: '/Materials', - component: () => import('@/views/basicData/index'), - name: 'Materials', - meta: { title: routerTitle.basicData.materials?.[language] || routerTitle.basicData.materials.en, icon: 'form', affix: true, required: true, requireToken: true }, - children: [ - { - path: 'Material', - component: () => import('@/views/basicData/Materials/material'), - name: 'Material', - meta: { title: routerTitle.basicData.materials.material?.[language] || routerTitle.basicData.materials.material.en, icon: 'form', affix: true, required: true, requireToken: true } - }, - { - path: 'MaterialAdd', - component: () => import('@/views/basicData/Materials/components/material-add'), - name: 'MaterialAdd', - hidden: true, - meta: { title: routerTitle.basicData.materials.MaterialAdd?.[language] || routerTitle.basicData.materials.MaterialAdd.en, icon: 'form', affix: true, required: true, requireToken: true } - }, - { - path: 'MaterialsType', - component: () => - import('@/views/basicData/Materials/materialsType'), - name: 'MaterialsType', - meta: { title: routerTitle.basicData.materials.materialType?.[language] || routerTitle.basicData.materials.materialType.en, icon: 'form', affix: true, required: true, requireToken: true } - } - ] - }, { path: '/Ports', component: () => import('@/views/basicData/index'), @@ -380,284 +275,9 @@ export const constantRoutes = [ // meta: { title: routerTitle.basicData.equipment.equipmentLinkAdd?.[language] || routerTitle.basicData.equipment.equipmentInfoAdd.en, icon: 'form', affix: true, required: true, requireToken: true } // } ] - }, - { - path: '/Scrap', - component: () => import('@/views/basicData/index'), - name: 'Scrap', - meta: { title: routerTitle.basicData.scrap?.[language] || routerTitle.basicData.scrap.en, icon: 'form', affix: true, required: true, requireToken: true }, - children: [ - { - path: 'ScrapInfo', - component: () => import('@/views/basicData/Scrap/ScrapInfo'), - name: 'ScrapInfo', - meta: { title: routerTitle.basicData.scrap.scrapInfo?.[language] || routerTitle.basicData.scrap.scrapInfo.en, icon: 'form', affix: true, required: true, requireToken: true } - }, - { - path: 'ScrapType', - component: () => import('@/views/basicData/Scrap/ScrapType'), - name: 'ScrapType', - meta: { title: routerTitle.basicData.scrap.scrapType?.[language] || routerTitle.basicData.scrap.scrapType.en, icon: 'form', affix: true, required: true, requireToken: true } - } - ] - }, - // { - // path: '/product', - // component: () => import('@/views/basicData/index'), - // name: 'product', - // meta: { title: routerTitle.basicData.product?.[language] || routerTitle.basicData.product.en, icon: 'form', affix: true, required: true, requireToken: true }, - // children: [ - // { - // path: 'productPool', - // component: () => import('@/views/basicData/ProductPool'), - // name: 'productPool', - // meta: { title: routerTitle.basicData.product.productPool?.[language] || routerTitle.basicData.product.productPool.en, icon: 'form', affix: true, required: true, requireToken: true } - // } - // ] - // }, - { - path: '/state', - component: () => import('@/views/basicData/index'), - name: 'state', - meta: { title: routerTitle.basicData.state?.[language] || routerTitle.basicData.state.en, icon: 'form', affix: true, required: true, requireToken: true }, - children: [{ - path: 'StateConfig', - component: () => import('@/views/basicData/StateConfig'), - name: 'StateConfig', - meta: { title: routerTitle.basicData.state.stateConfig?.[language] || routerTitle.basicData.state.stateConfig.en, icon: 'form', affix: true, required: true, requireToken: true } - }] - }, - { - path: 'EquipmentScrapGrade', - component: () => import('@/views/basicData/EquipmentScrapGrade'), - name: 'EquipmentScrapGrade', - meta: { title: routerTitle.basicData.EquipmentScrapGrade?.[language] || routerTitle.basicData.EquipmentScrapGrade.en, icon: 'form', affix: true, required: true, requireToken: true } - }, - { - path: '/dataDictionary', - component: () => import('@/views/basicData/index'), - name: 'dataDictionary', - meta: { title: routerTitle.basicData.dataDictionaryType.dataDictionary?.[language] || routerTitle.basicData.dataDictionaryType.dataDictionary.en, icon: 'form', affix: true, required: true, requireToken: true }, - children: [{ - path: 'dataDictionary', - component: () => import('@/views/basicData/dataDictionary'), - name: 'dataDictionary', - meta: { title: routerTitle.basicData.dataDictionaryType?.[language] || routerTitle.basicData.dataDictionaryType.en, icon: 'form', affix: true, required: true, requireToken: true } - }, { - path: 'dataDictionaryData', - component: () => import('@/views/basicData/components/dataDictionaryData'), - hidden: true, - name: 'dataDictionaryData', - meta: { title: routerTitle.basicData.dataDictionaryType.dataDictionary?.[language] || routerTitle.basicData.dataDictionaryType.dataDictionary.en, icon: 'form', affix: true, required: true, requireToken: true } - }] - }, - { - path: '/cRules', - component: () => import('@/views/basicData/index'), - hidden: true, - name: 'cRules', - meta: { title: routerTitle.basicData.rule?.[language] || routerTitle.basicData.rule.en, icon: 'form', affix: true, required: true, requireToken: true }, - children: [{ - path: 'CodeRules', - component: () => import('@/views/basicData/CodeRules'), - name: 'CodeRules', - meta: { title: routerTitle.basicData.rule.codeRules?.[language] || routerTitle.basicData.rule.codeRules.en, icon: 'form', affix: true, required: true, requireToken: true } - }, { - path: 'codeAttr', - component: () => import('@/views/basicData/components/CodeRulesAttr'), - name: 'codeAttr', - hidden: true, - meta: { title: routerTitle.basicData.rule.codeRulesAttr?.[language] || routerTitle.basicData.rule.codeRulesAttr.en, icon: 'form', affix: true, required: true, requireToken: true } - }] - }, - { - path: '/Visualization', - component: () => import('@/views/basicData/index'), - name: 'Visualization', - // hidden: true, - meta: { title: routerTitle.basicData.visualization?.[language] || routerTitle.basicData.visualization.en, icon: 'form', affix: true, required: true, requireToken: true }, - children: [ - { - path: 'VisualLayout', - component: () => import('@/views/basicData/VisualLayout'), - name: 'VisualLayout', - meta: { title: routerTitle.basicData.visualization.visualLayout?.[language] || routerTitle.basicData.visualization.visualLayout.en, icon: 'form', affix: true, required: true, requireToken: true } - } - ] } ] }, - { - path: '/equipment', - component: Layout, - // redirect: '/equipment/manager', - name: 'EquipmentManager', - meta: { title: routerTitle.equipment?.[language] || routerTitle.equipment.en, icon: 'form', iconPart: 'EquipmentManager', affix: true, required: true, requireToken: true }, - children: [{ - path: 'bom', - component: () => import('@/views/EquipmentManager/BOMManager'), - name: 'BOMManage', - meta: { title: routerTitle.equipment.bom?.[language] || routerTitle.equipment.bom.en, icon: 'form', affix: true, required: true, requireToken: true } - }, { - path: 'recipe', - component: () => import('@/views/EquipmentManager/RecipeManager'), - name: 'RecipeManage', - meta: { title: routerTitle.equipment.recipe?.[language] || routerTitle.equipment.recipe.en, icon: 'form', affix: true } - }, { - path: 'sparepart', - component: () => import('@/views/EquipmentManager/sqarepart'), - name: 'SparePartManage', - hidden: true, - meta: { title: routerTitle.equipment.sparepart?.[language] || routerTitle.equipment.sparepart.en, icon: 'form', affix: true, required: true, requireToken: true } - }, { - path: 'bomform', - component: () => import('@/views/EquipmentManager/BOMManager/subpage/detail'), - name: 'DeviceBOMManage', - hidden: true, - meta: { title: routerTitle.equipment.bomform?.[language] || routerTitle.equipment.bomform.en, icon: 'form', affix: true, required: true, requireToken: true } - }, { - path: 'devicerecipe', - component: () => import('@/views/EquipmentManager/RecipeManager/subpage/detail'), - name: 'RecipeParamManage', - hidden: true, - meta: { title: routerTitle.equipment.recipeform?.[language] || routerTitle.equipment.recipeform.en, icon: 'form', affix: true } - }, { - path: 'statussetting', - component: () => import('@/views/EquipmentManager/StatusSetting'), - name: 'EquipmentStatusSetting', - meta: { title: routerTitle.equipment.statussetting?.[language] || routerTitle.equipment.statussetting.en, icon: 'form', affix: true, required: true, requireToken: true } - }, { - path: 'repairmanager', - component: () => import('@/views/EquipmentManager/RepairManager'), - name: 'RepairManager', - meta: { title: routerTitle.equipment.repairmanage?.[language] || routerTitle.equipment.repairmanage.en, icon: 'form', affix: true, required: true, requireToken: true } - }, { - path: 'addrepair', - component: () => import('@/views/EquipmentManager/RepairManager/AddRepair'), - name: 'AddRepair', - hidden: true, - meta: { title: routerTitle.equipment.addrepair?.[language] || routerTitle.equipment.addrepair.en, icon: 'form', affix: true, required: true, requireToken: true } - }, { - path: 'editrepair', - component: () => import('@/views/EquipmentManager/RepairManager/EditRepair'), - name: 'EditRepair', - hidden: true, - meta: { title: routerTitle.equipment.editrepair?.[language] || routerTitle.equipment.editrepair.en, icon: 'form', affix: true, required: true, requireToken: true } - }, { - path: 'maintainplan', - component: () => import('@/views/EquipmentManager/MaintainPlan'), - name: 'MaintainPlan', - meta: { title: routerTitle.equipment.maintainplan?.[language] || routerTitle.equipment.maintainplan.en, icon: 'form', affix: true, required: true, requireToken: true } - }, { - path: 'maintainlog-single', - component: () => import('@/views/EquipmentManager/MaintainLog'), - name: 'MaintainLogSingle', - // hidden: true, - meta: { title: routerTitle.equipment.maintainlog?.[language] || routerTitle.equipment.maintainlog.en, icon: 'form', affix: true, required: true, requireToken: true } - }, { - path: 'maintainlog', - component: () => import('@/views/EquipmentManager/MaintainLog'), - name: 'MaintainLog', - hidden: true, - meta: { title: routerTitle.equipment.maintainlog?.[language] || routerTitle.equipment.maintainlog.en, icon: 'form', affix: true, required: true, requireToken: true } - }, { - path: 'maintainlog-add', - component: () => import('@/views/EquipmentManager/MaintainLog/AddLog'), - name: 'MaintainAddLog', - hidden: true, - meta: { title: routerTitle.equipment.maintainlog?.[language] || routerTitle.equipment.maintainlog.en, icon: 'form', affix: true, required: true, requireToken: true } - }, { - path: 'maintainlog-edit', - component: () => import('@/views/EquipmentManager/MaintainLog/EditLog'), - name: 'MaintainEditLog', - hidden: true, - meta: { title: routerTitle.equipment.maintainlog?.[language] || routerTitle.equipment.maintainlog.en, icon: 'form', affix: true, required: true, requireToken: true } - }, { - path: 'typeparam', - component: () => import('@/views/EquipmentManager/TypeParamSetting'), - name: 'TypeParam', - meta: { title: routerTitle.equipment.typeparam?.[language] || routerTitle.equipment.typeparam.en, icon: 'form', affix: true, required: true, requireToken: true } - }, { - path: 'typeparam-detail', - component: () => import('@/views/EquipmentManager/TypeParamSetting/detail'), - name: 'TypeParamDetail', - hidden: true, - meta: { title: routerTitle.equipment.typeparamdetail?.[language] || routerTitle.equipment.typeparamdetail.en, icon: 'form', affix: true, required: true, requireToken: true } - }, { - path: 'monitoring', - component: () => import('@/views/EquipmentManager/DeviceMonitoring'), - name: 'MonitoringManage', - hidden: true, - meta: { title: routerTitle.equipment.monitoring?.[language] || routerTitle.equipment.monitoring.en, icon: 'form', affix: true, required: true, requireToken: true } - }, { - path: 'Processequipment', - component: () => import('@/views/EquipmentManager/ProcessData/Processequipment'), - name: 'Processequipment', - meta: { title: routerTitle.equipment.Processequipment?.[language] || routerTitle.equipment.Processequipment.en, icon: 'form', affix: true, required: true, requireToken: true } - }, { - path: 'Three', - component: () => import('@/views/EquipmentManager/ProcessData/Three'), - name: 'Three', - hidden: true, - meta: { title: routerTitle.equipment.Parameters?.[language] || routerTitle.equipment.Parameters.en, icon: 'form', affix: true, required: true, requireToken: true } - }, { - path: 'ProcessData', - component: () => import('@/views/EquipmentManager/ProcessData/ProcessData'), - name: 'ProcessData', - hidden: true, - meta: { - title: routerTitle.equipment.ProcessData?.[language] || routerTitle.equipment.ProcessData.en, icon: 'form', affix: true, required: true, requireToken: true - } - }, { - path: 'Details', - component: () => import('@/views/EquipmentManager/ProcessData/Details'), - name: 'Details', - hidden: true, - meta: { title: routerTitle.equipment.Details?.[language] || routerTitle.equipment.Details.en, icon: 'form', affix: true, required: true, requireToken: true } - }, { - path: 'analysis', - component: () => import('@/views/EquipmentManager/Analysis'), - name: 'AnalysisManage', - hidden: true, - meta: { title: routerTitle.equipment.analysis?.[language] || routerTitle.equipment.analysis.en, icon: 'form', affix: true, required: true, requireToken: true } - }, { - path: 'equipmentManagerManage', - component: () => import('@/views/EquipmentManager/equipmentManagerManage'), - name: 'EquipmentManagerManage', - meta: { title: routerTitle.equipment.equipmentManagerManage?.[language] || routerTitle.equipment.equipmentManagerManage.en, icon: 'form', affix: true, required: true, requireToken: true } - }, { - path: 'equipmentParams', - component: () => import('@/views/EquipmentManager/equipmentParams'), - name: 'equipmentParams', - meta: { title: routerTitle.equipment.equipmentParams?.[language] || routerTitle.equipment.equipmentParams.en, icon: 'form', affix: true, required: true, requireToken: true } - }, { - path: '/equipmentVisualization', - component: () => import('@/views/basicData/index'), - name: 'equipmentVisualization', - // hidden: true, - meta: { title: routerTitle.equipment.EquipmentVisualization?.[language] || routerTitle.equipment.EquipmentVisualization.en, icon: 'form', affix: true, required: true, requireToken: true }, - children: [ - { - path: 'EquipmentProcessingQuantity', - component: () => import('@/views/EquipmentManager/equipmentVisualization/EquipmentProcessingQuantity'), - name: 'EquipmentProcessingQuantity', - meta: { title: routerTitle.equipment.EquipmentVisualization.EquipmentProcessingQuantity?.[language] || routerTitle.equipment.EquipmentVisualization.EquipmentProcessingQuantity.en, icon: 'form', affix: true, required: true, requireToken: true } - }, - { - path: 'EquipmentEnergyMonitor', - component: () => import('@/views/EquipmentManager/equipmentVisualization/EquipmentEnergyMonitor'), - name: 'EquipmentEnergyMonitor', - meta: { title: routerTitle.equipment.EquipmentVisualization.EquipmentEnergyMonitor?.[language] || routerTitle.equipment.EquipmentVisualization.EquipmentEnergyMonitor.en, icon: 'form', affix: true, required: true, requireToken: true } - }, - { - path: 'Visualized', - component: () => import('@/views/EquipmentManager/equipmentVisualization/Visualized'), - name: 'Visualized', - meta: { title: routerTitle.equipment.EquipmentVisualization.Visualized?.[language] || routerTitle.equipment.EquipmentVisualization.Visualized.en, icon: 'form', affix: true, required: true, requireToken: true } - } - ] - }] - }, { path: '/art', component: Layout, @@ -686,72 +306,6 @@ export const constantRoutes = [ } ] }, - { - path: '/material-manage', - component: Layout, - redirect: '/material-manage/refueling', - name: 'MaterialsManage', - meta: { title: routerTitle.material?.[language] || routerTitle.material.en, icon: 'form', iconPart: 'MaterialsManage', affix: true, required: true, requireToken: true }, - children: [ - { - path: 'bom', - component: () => import('@/views/material-manage/bom/index'), - name: 'bom', - meta: { title: routerTitle.material.bom?.[language] || routerTitle.material.bom.en, icon: 'form', affix: true, required: true, requireToken: true } - }, - { - path: 'bom/add', - component: () => import('@/views/material-manage/bom/components/add-panel'), - name: 'bomAdd', - meta: { title: routerTitle.material.bomadd?.[language] || routerTitle.material.bomadd.en, icon: 'form', affix: true, required: true, requireToken: true }, - hidden: true - }, - { - path: 'batch', - component: () => import('@/views/material-manage/batch/index'), - name: 'batch', - meta: { title: routerTitle.material.batch?.[language] || routerTitle.material.batch.en, icon: 'form', affix: true, required: true, requireToken: true } - }, - { - path: 'batch/add', - component: () => import('@/views/material-manage/batch/components/add-panel'), - name: 'batchAdd', - meta: { title: routerTitle.material.batchadd?.[language] || routerTitle.material.batchadd.en, icon: 'form', affix: true, required: true, requireToken: true }, - hidden: true - }, - { - path: 'refueling', - component: () => import('@/views/material-manage/refueling/index'), - name: 'refueling', - meta: { title: routerTitle.material.refueling?.[language] || routerTitle.material.refueling.en, icon: 'form', affix: true, required: true, requireToken: true } - }, - { - path: 'refueling/add', - component: () => import('@/views/material-manage/refueling/components/add-panel'), - name: 'refuelingAdd', - meta: { title: routerTitle.material.refuelingadd?.[language] || routerTitle.material.refuelingadd.en, icon: 'form', affix: true, required: true, requireToken: true }, - hidden: true - }, - { - path: 'report', - component: () => import('@/views/material-manage/report/index'), - name: 'report', - meta: { title: routerTitle.material.report?.[language] || routerTitle.material.report.en, icon: 'form', affix: true, required: true, requireToken: true } - }, - { - path: 'historyConsume', - component: () => import('@/views/material-manage/historyConsume/index'), - name: 'historyConsume', - meta: { title: routerTitle.material.historyConsume?.[language] || routerTitle.material.historyConsume.en, icon: 'form', affix: true, required: true, requireToken: true } - }, - { - path: 'currentConsume', - component: () => import('@/views/material-manage/currentConsume/index'), - name: 'currentConsume', - meta: { title: routerTitle.material.currentConsume?.[language] || routerTitle.material.currentConsume.en, icon: 'form', affix: true, required: true, requireToken: true } - } - ] - }, { path: '/order', component: Layout, @@ -947,196 +501,6 @@ export const constantRoutes = [ } ] }, - { - path: '/factory', - component: Layout, - redirect: '/factory', - name: 'factoryManage', - meta: { title: routerTitle.factory?.[language] || routerTitle.factory.en, icon: 'form', iconPart: 'factoryManage', affix: true, required: true, requireToken: true }, - children: [ - { - path: '/team-manage', - redirect: '/team-manage/list', - component: () => import('@/views/basicData/index'), - name: 'TeamManage', - meta: { title: routerTitle.team?.[language] || routerTitle.team.en, icon: 'form', iconPart: 'formwhite', affix: true, required: true, requireToken: true }, - children: [ - { - path: 'plan', - component: () => import('@/views/team-manage/plan'), - name: 'TeamManagePlan', - meta: { title: routerTitle.team.teamplan?.[language] || routerTitle.team.teamplan.en, icon: 'form', affix: true, required: true, requireToken: true } - }, - { - path: 'plan/add', - component: () => import('@/views/team-manage/components/plan/add-plan'), - name: 'TeamManagePlanAdd', - meta: { title: routerTitle.team.teamplanoperation?.[language] || routerTitle.team.teamplanoperation.en, icon: 'form', affix: true, required: true, requireToken: true }, - hidden: true - }, - { - path: 'list', - component: () => import('@/views/team-manage/list'), - name: 'TeamManageList', - meta: { title: routerTitle.team.teamlist?.[language] || routerTitle.team.teamlist.en, icon: 'form', affix: true, required: true, requireToken: true } - }, - { - path: 'team/add', - component: () => import('@/views/team-manage/components/change/add-plan'), - name: 'TeamManageAdd', - meta: { title: routerTitle.team.teamhandover?.[language] || routerTitle.team.teamhandover.en, icon: 'form', affix: true, required: true, requireToken: true }, - hidden: true - }, - { - path: 'showlog', - component: () => import('@/views/team-manage/showlog'), - name: 'logadd', - meta: { title: routerTitle.team.showlog?.[language] || routerTitle.team.showlog.en, icon: 'form', affix: true, required: true, requireToken: true }, - hidden: true - } - ] - }, - { - path: '/abnormal-alarm', - redirect: '/abnormal-alarm/list', - component: () => import('@/views/basicData/index'), - name: 'AlarmManager', - meta: { title: routerTitle.factory.AlarmManager?.[language] || routerTitle.factory.AlarmManager.en, icon: 'form', iconPart: 'formwhite', affix: true, required: true, requireToken: true }, - children: [ - { - path: 'list', - component: () => import('@/views/FactoryManage/AbnormalAlarm'), - name: 'AbnormalAlarm', - meta: { title: routerTitle.factory.AlarmManager.AbnormalAlarm?.[language] || routerTitle.factory.AlarmManager.AbnormalAlarm.en, icon: 'form', affix: true, required: true, requireToken: true } - }, - { - path: 'EquipmentAlarm', - component: () => import('@/views/FactoryManage/EquipmentAlarm'), - name: 'EquipmentAlarm', - meta: { title: routerTitle.factory.AlarmManager.EquipmentAlarm?.[language] || routerTitle.factory.AlarmManager.EquipmentAlarm.en, icon: 'form', affix: true, required: true, requireToken: true } - }, - { - path: '/AlarmManagement', - component: () => import('@/views/basicData/index'), - name: 'AlarmManagement', - meta: { title: routerTitle.basicData.alarmSetting?.[language] || routerTitle.basicData.alarmSetting.en, icon: 'form', affix: true, required: true, requireToken: true }, - children: [ - { - path: 'AlarmInfo', - component: () => - import('@/views/basicData/AlarmManagement/alarmInfo'), - name: 'AlarmInfo', - meta: { title: routerTitle.basicData.alarmSetting.alarmInfo?.[language] || routerTitle.basicData.alarmSetting.alarmInfo.en, icon: 'form', affix: true, required: true, requireToken: true } - }, - { - path: 'AlarmType', - component: () => - import('@/views/basicData/AlarmManagement/alarmType'), - name: 'AlarmType', - meta: { title: routerTitle.basicData.alarmSetting.alarmType?.[language] || routerTitle.basicData.alarmSetting.alarmType.en, icon: 'form', affix: true, required: true, requireToken: true } - }, - { - path: 'AlarmLevel', - component: () => - import('@/views/basicData/AlarmManagement/alarmLevel'), - name: 'AlarmLevel', - meta: { title: routerTitle.basicData.alarmSetting.alarmLevel?.[language] || routerTitle.basicData.alarmSetting.alarmLevel.en, icon: 'form', affix: true, required: true, requireToken: true } - } - ] - } - ] - }, - { - path: '/Visual', - component: () => import('@/views/basicData/index'), - name: 'Visual', - // hidden: true, - meta: { title: routerTitle.factory.visual?.[language] || routerTitle.factory.visual.en, icon: 'form', affix: true, required: true, requireToken: true }, - children: [ - { - path: 'Visual', - component: () => import('@/views/FactoryManage/visual'), - name: 'Visual', - meta: { title: routerTitle.factory.visual.visual?.[language] || routerTitle.factory.visual.visual.en, icon: 'form', affix: true, required: true, requireToken: true } - }, - { - path: 'VisualLocation', - component: () => import('@/views/FactoryManage/visualLocation'), - name: 'VisualLocation', - meta: { title: routerTitle.factory.visual.visualLocation?.[language] || routerTitle.factory.visual.visualLocation.en, icon: 'form', affix: true, required: true, requireToken: true }, - hidden: true - } - ] - } - ] - }, - { - path: '/form', - component: Layout, - redirect: '/form', - name: 'formManage', - meta: { title: routerTitle.form?.[language] || routerTitle.form.en, icon: 'form', iconPart: 'formManage', affix: true, required: true, requireToken: true, unuse: false }, - children: [{ - path: 'report', - component: () => import('@/views/report-manage/ReportSortChoise'), - name: 'Report', - meta: { title: routerTitle.form.report?.[language] || routerTitle.form.report.en, icon: 'form', affix: true, required: true, requireToken: true } - }, - { - path: 'report-sort-list', - component: () => import('@/views/report-manage/Report'), - name: 'ReportSortList', - hidden: true, - meta: { title: routerTitle.form.reportSortList?.[language] || routerTitle.form.reportSortList.en, icon: 'form', affix: true, required: true, requireToken: true } - }, - { - path: 'report-view', - component: () => import('@/views/report-manage/ReportView'), - name: 'ReportDesign', - meta: { title: routerTitle.form.reportView?.[language] || routerTitle.form.reportView.en, icon: 'form', affix: true, required: true, requireToken: true }, - hidden: true - }, - { - path: 'report-design', - component: () => import('@/views/report-manage/ReportDesign'), - name: 'ReportDesign', - meta: { title: routerTitle.form.reportDesign?.[language] || routerTitle.form.reportDesign.en, icon: 'form', affix: true, required: true, requireToken: true } - }, - { - path: 'report-sort', - component: () => import('@/views/report-manage/ReportSort/index'), - name: 'ReportSort', - meta: { title: routerTitle.form.reportSort?.[language] || routerTitle.form.reportSort.en, icon: 'form', affix: true, required: true, requireToken: true } - }] - }, - { - path: '/packing', - component: Layout, - redirect: '/packing', - name: 'packingManage', - meta: { title: routerTitle.packing?.[language] || routerTitle.packing.en, icon: 'form', iconPart: 'packingManage', affix: true, required: true, requireToken: true, unuse: false }, - children: [{ - path: 'label-template', - component: () => - import('@/views/packing-manage/LabelTemplate'), - name: 'LableDesign', - meta: { title: routerTitle.packing.labelTemplate?.[language] || routerTitle.packing.labelTemplate.en, icon: 'form', affix: true, required: true, requireToken: true } - }, { - path: 'PackingList', - component: () => - import('@/views/packing-manage/PackingList'), - name: 'PackingList', - meta: { title: routerTitle.packing.PackingList?.[language] || routerTitle.packing.PackingList.en, icon: 'form', affix: true, required: true, requireToken: true } - }, - { - path: 'label-design-add', - component: () => - import('@/views/packing-manage/components/AddLablePanel'), - name: 'AddLablePanel', - hidden: true, - meta: { title: routerTitle.packing.labelDesign?.[language] || routerTitle.packing.labelDesign.en, icon: 'form', affix: true, required: true, requireToken: true } - }] - }, { path: '/interface', component: Layout,