From 031b7e89d0877d4b65cea95b0b5c67d7859d30aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=96=87=E9=BE=99?= Date: Tue, 28 Nov 2023 19:53:33 +0800 Subject: [PATCH] update --- 11.txt | 12 +- src/router/index.ts | 1024 +++++++++-------- src/views/home/csr/CSR.vue | 16 +- src/views/home/csr/CSRContent.vue | 4 +- src/views/home/csr/CSRContent2.vue | 72 +- src/views/home/csr/CSRContent22.vue | 35 +- src/views/home/csr/CSRContent23.vue | 6 +- src/views/home/csr/CSRDatas.ts | 910 ++++++++++----- src/views/home/csr/modifyCSR2.vue | 4 +- src/views/home/database/modify.vue | 4 +- .../intelligence/components/messageSelect.vue | 9 +- src/views/home/quality/Quality.vue | 24 +- src/views/home/quality/modify.vue | 8 +- 13 files changed, 1241 insertions(+), 887 deletions(-) diff --git a/11.txt b/11.txt index 2d76a35..13815c3 100644 --- a/11.txt +++ b/11.txt @@ -1,3 +1,9 @@ -1. 图片展示,没有权限 -2. 权限设置,没有返回信息 -3. 多张图片bug \ No newline at end of file +1.excel 大文件的预览; +2.edge的大文件下载弹窗问题; +3.碳中和查看更多的文件逻辑; --✔️ +3.碳中和页面整体模块滚动;-- +4.原材料用量饼图; +5.品质和碳中和 字体放大; -- +6.外部情报 留言板 列表 已回复; --- +7.碳中和内容管理的 查看范围; +8.碳中和相关活动报告-- 显示其他的活动 后面排.; \ No newline at end of file diff --git a/src/router/index.ts b/src/router/index.ts index ef2ba84..8b7e187 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -7,532 +7,534 @@ const NewsDetail = { 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: '/' }, + 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", + { + 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"), + 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: '/external/info/:id', - name: 'DetailInfo', - component: () => import("@/views/extermal/Article/Detail.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: '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: '/external/infoList', - name: 'DetailInfoList', - component: () => import("@/views/extermal/news/index.vue"), + { + path: 'messageSelect', - }, - { - path: '/external/infoa/:id/:type', - name: 'DetailInfoa', - component: () => import("@/views/extermal/Article/Detaila.vue"), + meta: { title: '外部留言列表' }, - }, - { - path: '/external/infos/:id', - name: 'DetailInfos', - component: () => import("@/views/extermal/Article/Details.vue"), + 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: '/external/Board', - name: 'BoardlInfo', - component: () => import("@/views/extermal/Board/index.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') + } + ] + } + ] + }, - }, - { - path: '/external/Process', - name: 'Process1', - component: () => import("@/views/extermal/Process/index.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.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: "/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: '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"), - }, - ], - }, - ], - }, + // 战略企画 + { + path: 'strategic', + meta: { title: '战略企划' }, + name: 'StrategicPlanning', + component: () => import('@/views/home/StrategicPlanning.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"), - }, + // 大金中国调达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: "market", - meta: { title: "市况、汇率" }, - children: [ - { - path: '', - name: "Market", - component: () => import("@/views/home/market/Market.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: '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: '/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') + } + ] + }, - // 战略企画 - { - path: "strategic", - meta: { title: "战略企划" }, - name: "StrategicPlanning", - component: () => import("@/views/home/StrategicPlanning.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') + }, - // 大金中国调达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: "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: '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: "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: "/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") - } - ] - }, + // }, + { + 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: '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: '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', - // 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: "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: "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/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"), - } - ], -}); + component: () => import('@/views/home/database/index.vue'), + children: [ + { + path: '', + name: 'DataBase', + component: () => import('@/views/home/database/guize/index.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; diff --git a/src/views/home/csr/CSR.vue b/src/views/home/csr/CSR.vue index 66da471..b7d8461 100644 --- a/src/views/home/csr/CSR.vue +++ b/src/views/home/csr/CSR.vue @@ -10,7 +10,13 @@ import CSRContent2 from './CSRContent2.vue' import CSRContent22 from './CSRContent22.vue' import CSRContent23 from './CSRContent23.vue' import { Content2, Content3 } from './CSRData' +import { useUserStore } from '@/stores/modules/user' +const store = useUserStore() +const { push } = useRouter() +const userCode = ['admin', 'csr_dandang', 'tech_service'].includes( + store.user.roleCode +) const Navs = [{ name: '集团*部门方针' }, { name: '年度活动日程表' }, { name: '其他链接' }, { name: '紧急联络' }, { name: 'CN/JP' }] const Content = [ { key: '1-1', component: () => }, @@ -27,6 +33,11 @@ const activeContent = computed(() => { console.log(curContent,1111) return curContent?.component || null }) + +const shomks = () => { + // push('csr/modifyCsr2') + push({ name: 'modifyCsrCarbon' }) +}