From 3074eca0f2b6fb08335c8608c5aea49342ec4178 Mon Sep 17 00:00:00 2001 From: gaoguangchao <443960933@qq.com> Date: Wed, 6 Nov 2024 15:34:05 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=B3=E8=BD=AC=E8=83=BD=E6=BA=90=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/common/menuData.js | 9 ++++++++- .../components/HeaderMenu/CustomMenu.vue | 14 ++++++++++---- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/ruoyi-ui/src/common/menuData.js b/ruoyi-ui/src/common/menuData.js index 439df902..56080d0f 100644 --- a/ruoyi-ui/src/common/menuData.js +++ b/ruoyi-ui/src/common/menuData.js @@ -307,7 +307,7 @@ export default [ }, ], }, - { + /*{ title: "安全生产", name: "safe", position: "right", @@ -320,6 +320,13 @@ export default [ component: "safe/files/index.vue", }, ] + },*/ + { + title: "零碳能源", + name: "carbon", + position: "right", + path: "/carbon", + component: "developing.vue", }, { title: "系统管理", diff --git a/ruoyi-ui/src/views/JiHeExpressway/components/HeaderMenu/CustomMenu.vue b/ruoyi-ui/src/views/JiHeExpressway/components/HeaderMenu/CustomMenu.vue index 01278079..c962379f 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/components/HeaderMenu/CustomMenu.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/components/HeaderMenu/CustomMenu.vue @@ -92,23 +92,29 @@ export default { } else if(node.title==='桥梁监测'){ this.activeIndex = key window.open('http://iot.sdhscloud.com/home?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6MTc1MSwidWlkIjoiM2M2NTZjOGUtMzgwZC0xMWVmLWFhNmItYmVhNGE2MDZhMzE2IiwidXNlcm5hbWUiOiJKSFpIR1MiLCJuaWNrbmFtZSI6Ilx1NmQ0ZVx1ODNjZlx1NjY3YVx1NjE2N1x1OWFkOFx1OTAxZiIsImVtYWlsIjoiMjU4NTQwMjg0MEBxcS5jb20iLCJ0ZWwiOiIiLCJpc19zdXBlcnVzZXIiOmZhbHNlLCJpc19tYXN0ZXIiOmZhbHNlLCJpc19hY3RpdmUiOnRydWUsInRlbmFudF9pZCI6NDUsImF0dHJzIjp7Imdyb3VwIjoiIn0sImhhc3VyYSI6eyJ4LWhhc3VyYS11c2VyLWlkIjoiM2M2NTZjOGUtMzgwZC0xMWVmLWFhNmItYmVhNGE2MDZhMzE2IiwieC1oYXN1cmEtdGVuYW50Ijo0NSwieC1oYXN1cmEtYWN0aXZlIjp0cnVlLCJ4LWhhc3VyYS1tYXN0ZXIiOmZhbHNlLCJ4LWhhc3VyYS1yb2xlX2lkIjo1MjcsIngtaGFzdXJhLWFwcF9pZCI6NTIsIngtaGFzdXJhLXNlcnZpY2VfaWQiOjQsIngtaGFzdXJhLXN1cGVydXNlciI6ZmFsc2V9LCJhcHBfaWQiOjUyLCJyb2xlX2lkIjo1MjcsInNlcnZpY2VfaWQiOjQsImNsaWVudF9pZCI6IjA1ZTI1NzU4LTBhYTQtMTFlYS1iYTM0LTAyNDJhYzEwMDExZiIsImV4cCI6NDg3MzUxMzk1M30.JR5dwFCmNfaDFkSISOF5ZhRyPBulzDwG1bg4BA-Jqog') - } + } // else if(node.title==='数字收费站'){ // this.activeIndex = key // getConfigKey("digitalTollStation").then((response) => { // window.open(response.msg===''?'https://10.0.86.63:9000/s?loadType=auto&group=15ai1k13748d&runType=box':response.msg); // }) - // } + // } else if(node.title==='GIS+BIM可视化'){ this.activeIndex = key getConfigKey("dc.gisAndBim").then((response) => { window.open(response.msg===''?'https://10.0.86.63:9000/s?loadType=auto&group=15ai1k13748d&runType=box':response.msg); }) - } + } + else if(node.title==='零碳能源'){ + this.activeIndex = key + getConfigKey("carbon").then((response) => { + window.open(response.msg===''?'https://10.0.111.11:100/single?key=jhszyy&route=home':response.msg); + }) + } else if (this.$route.path != node.path){ this.$router.push(node.path); } - + } } };