import { createRouter, createWebHistory } from 'vue-router' const NewsDetail = { path: '/intelligence/:id', meta: { title: '情报详情' }, name: 'IntelligenceDetail', component: () => import('@/views/home/intelligence/Detail.vue') } const router = createRouter({ history: createWebHistory(import.meta.env.BASE_URL), routes: [ { path: '/:pathMatch(.*)', component: () => import('@/components/404') }, // { path: '/', redirect: '/' }, { path: '/', name: 'Entry', component: () => import('@/views/layout/Entry.vue') }, { path: '/modify', name: 'modify', meta: { title: '修改密码' }, component: () => import('@/views/company/modify.vue') }, { path: '/modifys', name: 'modifys', meta: { title: '修改密码' }, component: () => import('@/views/company/modifys.vue') }, { path: '/login', name: 'Login', component: () => import('@/views/layout/Login.vue') }, { path: '/externallogin', name: 'ExternalLogin', component: () => import('@/views/layout/ExternalLogin.vue') }, // 外部首页 { path: '/external', component: () => import('@/views/extermal/ExternalHome.vue'), meta: { title: '首页' }, // redirect: { name: "entry" }, children: [ { path: '', name: 'external', component: () => import('@/views/extermal/ExternalHome.vue') }, { path: '/external/info', name: 'DetailInfo', component: () => import('@/views/extermal/Article/Detail.vue') } ] }, { path: '/external/info/:id', name: 'DetailInfo', component: () => import('@/views/extermal/Article/Detail.vue') }, { path: '/external/infoList', name: 'DetailInfoList', component: () => import('@/views/extermal/news/index.vue') }, { path: '/external/infoa/:id?/:type?', name: 'DetailInfoa', component: () => import('@/views/extermal/Article/Detaila.vue') }, { path: '/external/infos/:id', name: 'DetailInfos', component: () => import('@/views/extermal/Article/Details.vue') }, // { // path: '/external/Board', // name: 'BoardlInfo', // component: () => import('@/views/extermal/Board/index.vue') // }, // { // path: '/external/Process', // name: 'Process1', // component: () => import('@/views/extermal/Process/index.vue') // }, // 内部首页 { path: '/Home', component: () => import('@/views/index.vue'), meta: { title: '首页' }, redirect: { name: 'entry' }, children: [ { path: '', name: 'Home', component: () => import('@/views/home/Home.vue') }, { path: '/Home/User', name: 'User', meta: { title: '调达本部18个月活动' }, component: () => import('@/views/home/user/index.vue') }, { path: '/Home/footprint', name: 'footprint', meta: { title: '足迹看板' }, component: () => import('@/views/home/footprint/index.vue') }, { path: '/Home/dataPlatform', name: 'dataPlatform', component: () => import('@/views/dataPlatform/index.vue') }, { path: '/Home/News', name: 'News', meta: { title: 'News列表' }, component: () => import('@/views/home/news/index.vue') }, { path: '/Home/latest', name: 'Latest', meta: { title: '最进更新列表' }, component: () => import('@/views/home/news/news.vue') }, // 搜索 { path: 'Search', meta: { title: '搜索列表' }, children: [ { path: '', name: 'Search', component: () => import('@/views/home/search/index.vue') }, { path: '/Home/Search/:id', name: 'SearchInfo', meta: { title: '详情' }, component: () => import('@/views/home/intelligence/Detail.vue') } ] }, // 外部情报 { path: 'intelligence', meta: { title: '外部情报' }, children: [ { path: '', name: 'Intelligence', component: () => import('@/views/home/intelligence/Overview.vue') }, { path: 'list', name: 'IntelligenceList', component: () => import('@/views/home/intelligence/ListPage.vue') }, { path: 'messageSelect', meta: { title: '外部留言列表' }, children: [ { path: '', name: 'messageSelect', component: () => import('@/views/home/intelligence/components/messageSelect.vue') }, { path: 'InfosEdit', name: 'InfosEdit', meta: { title: '详情编辑' }, component: () => import('@/views/home/intelligence/components/InfosEdit.vue') } ] }, { path: 'outside', meta: { title: '社外' }, children: [ { path: '', name: 'IntelligenceOutside', component: () => import('@/views/home/intelligence/ListPage.vue') }, { path: '/intelligence/outside/:id', meta: { title: '情报详情' }, name: 'IntelligenceOutsideDetail', component: () => import('@/views/home/intelligence/Detail.vue') } ] }, { path: 'within', meta: { title: '社内' }, children: [ { path: '', name: 'IntelligenceWithin', component: () => import('@/views/home/intelligence/ListPage.vue') }, { path: '/intelligence/within/:id', meta: { title: '情报详情' }, name: 'IntelligenceWithinDetail', component: () => import('@/views/home/intelligence/Detail.vue') } ] } ] }, // BCP系统 { path: 'bcp', meta: { title: 'BCP:SCM系统(智能供应链)数据联动+BI化呈现' }, children: [ { path: '', name: 'BCP', component: () => import('@/views/home/bcp/BCP.vue') }, { path: 'modifyBPC', meta: { title: 'BCP内容管理' }, name: 'modifyBPC', component: () => // import("@/views/home/bcp/modify.vue"), import('@/views/home/bcp/modify_new.vue') }, { path: 'bpcDetail', meta: { title: 'BCP详情' }, name: 'bcpDetail', component: () => // import("@/views/home/bcp/modify.vue"), import('@/views/home/bcp/detail.vue') } ] }, // 市况 { path: 'market', meta: { title: '市况、汇率' }, children: [ { path: '', name: 'Market', component: () => import('@/views/home/market/Market_new.vue') // component: () => import('@/views/home/market/Market.vue') }, { path: 'MarketDataModify', name: 'MarketDataModify', meta: { title: '市况数据管理' }, component: () => import('@/views/home/market/dataModify.vue') }, { path: 'MarketModify', name: 'MarketModify', meta: { title: '市况、汇率管理' }, component: () => import('@/views/home/market/modify.vue') }, { path: 'MarketModifys', name: 'MarketModifys', meta: { title: '市况、汇率管理' }, component: () => import('@/views/home/market/modifys.vue') } ] }, // 战略企画 { path: 'strategic', meta: { title: '战略企划' }, name: 'StrategicPlanning', component: () => import('@/views/home/StrategicPlanning.vue') }, // 大金中国调达CSR { path: 'csr', meta: { title: '碳中和挑战' }, children: [ { path: '', name: 'CSR', component: () => import('@/views/home/csr/CSR.vue') }, { path: 'modifyCsr2', meta: { title: '内容管理' }, name: 'modifyCsr2', component: () => import('@/views/home/csr/modifyCSR2.vue') }, { path: 'modifyCsrCarbon', meta: { title: '购入原材料脱碳素活动内容管理' }, name: 'modifyCsrCarbon', component: () => import('@/views/home/csr/modifyCsrCarbon.vue') }, { path: 'modifyCsrList', meta: { title: '列表内容' }, name: 'modifyCsrList', component: () => import('@/views/home/csr/index.vue') }, { path: 'CSRList', name: 'CSRList', meta: { title: '足迹报告列表' }, component: () => import('@/views/home/csr/CSRlist.vue') } ] }, // 品质 { path: 'quality', meta: { title: '品质' }, children: [ { path: '', name: 'Quality', component: () => import('@/views/home/quality/Quality.vue') }, { path: '/Home/quality/modify', name: 'QualityModify', meta: { title: '品质内容管理' }, component: () => import('@/views/home/quality/modify.vue') } ] }, // 待审核情报 { path: 'Process', meta: { title: '情报新增待审批' }, children: [ { path: '', name: 'Process', component: () => import('@/views/home/intelligence/process/Process.vue') }, { path: '/external/Board', name: 'BoardlInfo', component: () => import('@/views/extermal/Board/index.vue') }, { path: '/external/Process', name: 'Process1', component: () => import('@/views/extermal/Process/index.vue') }, { path: '/Home/Process/ProcessInfo/:id', meta: { title: '情报审批详情' }, name: '', component: () => import('@/views/home/intelligence/process/ProcessInfo.vue') }, { path: '/Home/Process/Detail/:id/:flag', name: '', meta: { title: '情报审批详情' }, component: () => import('@/views/home/intelligence/Detail.vue') } ] }, // C/D数据 { path: 'cd', meta: { title: 'C/D数据' }, name: 'CD', component: () => import('@/views/home/cd/CD.vue') }, // C/D数据 { path: 'developing', meta: { title: '开发中' }, name: 'Developing', component: () => import('@/views/home/develop.vue') }, // 差别化云空间 { path: 'diffspace', meta: { title: '差别化研究' }, children: [ { path: '', name: 'Diffspace', component: () => import('@/views/home/diffspace/Overview.vue') }, { path: 'report', meta: { title: '基础研究方向' }, name: 'DiffspaceResearchReport', component: () => import('@/views/home/diffspace/ResearchReport.vue') }, // { // path: "modifys", // name: "DiffspaceModify", // meta: { title: "差别化云空间管理" }, // component: () => import("@/views/home/diffspace/modify.vue"), // }, { path: 'modifys', name: 'DiffspaceModify', meta: { title: '差别化研究管理' }, component: () => import('@/views/home/diffspace/fack.vue') }, { path: 'modifyDiffspace', name: 'ModifyDiffspace', meta: { title: '研究方向内容管理' }, component: () => import('@/views/home/diffspace/modifys.vue') }, { path: '/Home/diffspace/diffspaceList/:id', meta: { title: '差别化研究分类' }, children: [ { path: '', name: 'DiffspaceTab', component: () => import('@/views/home/diffspace/allList.vue') }, // { // path:'', // name: "DiffspaceTab", // component: () => import("@/views/home/diffspace/component/tabsList.vue"), // }, { path: '/home/diffspace/DiffspaceTabModify', name: 'DiffspaceTabModify', meta: { title: '差别化课题管理' }, component: () => import('@/views/home/diffspace/component/modify.vue') } ] } ] }, // 集团方针 { path: 'group', meta: { title: '集团部门方针' }, children: [ { path: '', meta: { title: '集团方针' }, name: 'Group', component: () => import('@/views/company/index.vue') }, { path: '', meta: { title: '集团方针管理' }, name: 'policyManage', component: () => import('@/views/company/manage.vue') }, { path: 'company', meta: { title: '公司方针' }, name: 'Company', component: () => import('@/views/company/Company.vue') }, { path: 'headquarters', meta: { title: '调达本部方针' }, name: 'HeadQuarters', component: () => import('@/views/company/HeadQuarters.vue') } ] }, // 紧急联络 { path: 'phone', meta: { title: '紧急联络' }, children: [ { path: '', name: 'phone', component: () => import('@/views/home/phone/index.vue') }, { path: 'manage', name: 'phoneManage', component: () => import('@/views/home/phone/manage.vue') }, { path: 'visit', meta: { title: '拜访' }, name: 'visit', component: () => import('@/views/home/phone/visit.vue') }, { path: 'inv', meta: { title: '邀请' }, name: 'inv', component: () => import('@/views/home/phone/inv.vue') } ] } ] }, // database { path: '/DataBase', component: () => import('@/views/home/database/index.vue'), children: [ { path: '', name: 'DataBase', component: () => import('@/views/home/database/guize/index.vue') }, { path: '/DataBase/review', name: 'DataBaseReview', component: () => import('@/views/home/database/Process.vue') }, { path: '/DataBase/Modify', name: 'DataBaseModify', component: () => import('@/views/home/database/modify.vue') } ] }, { path: '/bpcTreeDetail', name: 'bpcTreeDetail', component: () => // import("@/views/home/bcp/modify.vue"), import('@/views/home/bcp/bpcTreeDetail.vue') }, { path: '/bpclist', name: 'bpclist', component: () => // import("@/views/home/bcp/modify.vue"), import('@/views/home/bcp/bpclist.vue') }, { path: '/contentList', name: 'contentList', component: () => // import("@/views/home/bcp/modify.vue"), import('@/views/home/bcp/contentList.vue') } ] }) export default router