|
@ -1,5 +1,5 @@ |
|
|
<template> |
|
|
<template> |
|
|
<el-menu :default-active="activeIndex" mode="horizontal" @select="handleSelect" class="menuBox"> |
|
|
<el-menu ref="elMenu" :default-active="activeIndex" mode="horizontal" @select="handleSelect" class="menuBox"> |
|
|
<template v-for="(item, index) in menuData"> |
|
|
<template v-for="(item, index) in menuData"> |
|
|
<component :index="prefix + '_' + index" v-if="item.children" is="el-submenu" class="menuItem" :class="{ 'menuActive': activeIndex && activeIndex.includes(prefix + '_' + index) }"> |
|
|
<component :index="prefix + '_' + index" v-if="item.children" is="el-submenu" class="menuItem" :class="{ 'menuActive': activeIndex && activeIndex.includes(prefix + '_' + index) }"> |
|
|
<template slot="title">{{ item.title }}</template> |
|
|
<template slot="title">{{ item.title }}</template> |
|
@ -85,28 +85,28 @@ export default { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
if(node.title === '系统管理'){ |
|
|
if(node.title === '系统管理'){ |
|
|
this.activeIndex = key |
|
|
this.$refs.elMenu.activeIndex = null |
|
|
getConfigKey("backgroundUrl").then((res) => { |
|
|
getConfigKey("backgroundUrl").then((res) => { |
|
|
window.open(res.msg) |
|
|
window.open(res.msg) |
|
|
}); |
|
|
}); |
|
|
} else if(node.title==='桥梁监测'){ |
|
|
} else if(node.title==='桥梁监测'){ |
|
|
this.activeIndex = key |
|
|
this.$refs.elMenu.activeIndex = null |
|
|
window.open('http://iot.sdhscloud.com/home?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6MTc1MSwidWlkIjoiM2M2NTZjOGUtMzgwZC0xMWVmLWFhNmItYmVhNGE2MDZhMzE2IiwidXNlcm5hbWUiOiJKSFpIR1MiLCJuaWNrbmFtZSI6Ilx1NmQ0ZVx1ODNjZlx1NjY3YVx1NjE2N1x1OWFkOFx1OTAxZiIsImVtYWlsIjoiMjU4NTQwMjg0MEBxcS5jb20iLCJ0ZWwiOiIiLCJpc19zdXBlcnVzZXIiOmZhbHNl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TZjOGUtMzgwZC0xMWVmLWFhNmItYmVhNGE2MDZhMzE2IiwieC1oYXN1cmEtdGVuYW50Ijo0NSwieC1oYXN1cmEtYWN0aXZlIjp0cnVlLCJ4LWhhc3VyYS1tYXN0ZXIiOmZhbHNlLCJ4LWhhc3VyYS1yb2xlX2lkIjo1MjcsIngtaGFzdXJhLWFwcF9pZCI6NTIsIngtaGFzdXJhLXNlcnZpY2VfaWQiOjQsIngtaGFzdXJhLXN1cGVydXNlciI6ZmFsc2V9LCJhcHBfaWQiOjUyLCJyb2xlX2lkIjo1MjcsInNlcnZpY2VfaWQiOjQsImNsaWVudF9pZCI6IjA1ZTI1NzU4LTBhYTQtMTFlYS1iYTM0LTAyNDJhYzEwMDExZiIsImV4cCI6NDg3MzUxMzk1M30.JR5dwFCmNfaDFkSISOF5ZhRyPBulzDwG1bg4BA-Jqog') |
|
|
} |
|
|
} |
|
|
else if(node.title==='数字收费站'){ |
|
|
else if(node.title==='数字收费站'){ |
|
|
this.activeIndex = key |
|
|
this.$refs.elMenu.activeIndex = null |
|
|
getConfigKey("digitalTollStation").then((response) => { |
|
|
getConfigKey("digitalTollStation").then((response) => { |
|
|
window.open(response.msg===''?'https://10.0.86.63:9000/s?loadType=auto&group=15ai1k13748d&runType=box':response.msg); |
|
|
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可视化'){ |
|
|
else if(node.title==='GIS+BIM可视化'){ |
|
|
this.activeIndex = key |
|
|
this.$refs.elMenu.activeIndex = null |
|
|
getConfigKey("dc.gisAndBim").then((response) => { |
|
|
getConfigKey("dc.gisAndBim").then((response) => { |
|
|
window.open(response.msg===''?'https://10.0.86.63:9000/s?loadType=auto&group=15ai1k13748d&runType=box':response.msg); |
|
|
window.open(response.msg===''?'https://10.0.86.63:9000/s?loadType=auto&group=15ai1k13748d&runType=box':response.msg); |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
else if(node.title==='零碳能源'){ |
|
|
else if(node.title==='零碳能源'){ |
|
|
this.activeIndex = key |
|
|
this.$refs.elMenu.activeIndex = null |
|
|
getConfigKey("carbon").then((response) => { |
|
|
getConfigKey("carbon").then((response) => { |
|
|
window.open(response.msg===''?'https://10.0.111.11:100/single?key=jhszyy&route=home':response.msg); |
|
|
window.open(response.msg===''?'https://10.0.111.11:100/single?key=jhszyy&route=home':response.msg); |
|
|
}) |
|
|
}) |
|
|