Compare commits

...

2 Commits

2 changed files with 12 additions and 6 deletions

View File

@ -37,6 +37,7 @@ const user = {
localStorage.setItem("userName",response.userInfo.account); localStorage.setItem("userName",response.userInfo.account);
localStorage.setItem("areaName",response.userInfo.areaENName); localStorage.setItem("areaName",response.userInfo.areaENName);
localStorage.setItem("areaCNName",response.userInfo.areaCNName); localStorage.setItem("areaCNName",response.userInfo.areaCNName);
localStorage.setItem("unitName",response.userInfo.unitName);
commit('SET_TOKEN', data.token) commit('SET_TOKEN', data.token)
resolve() resolve()
}).catch(error => { }).catch(error => {

View File

@ -3,7 +3,7 @@
<div class="body"> <div class="body">
<p class="tip">控制台</p> <p class="tip">控制台</p>
<div class="navigation-center"> <div class="navigation-center">
<div class="navigation-item" v-for="(item,index) in routerlist" :key="index" :style="{'background':item.bgColor}" @click="goDetail(item)"> <div class="navigation-item" v-for="(item,index) in routerlist" :key="index" :style="{'background':item.bgColor}" @click="goDetail(item)" v-show="item.show">
<div class="item-icon"> <div class="item-icon">
<img class="top-img" :src="'/img/navigation/top-'+(index+1)+'.png'" alt=""> <img class="top-img" :src="'/img/navigation/top-'+(index+1)+'.png'" alt="">
<img class="bottom-img" :src="'/img/navigation/bottom-'+(index+1)+'.png'" alt=""> <img class="bottom-img" :src="'/img/navigation/bottom-'+(index+1)+'.png'" alt="">
@ -64,27 +64,32 @@
lable:"防灭火沙盘", lable:"防灭火沙盘",
icon:"", icon:"",
url:"/home", url:"/home",
bgColor:"linear-gradient(180deg, #4CF6EA 0%, #3C31F5 100%)" bgColor:"linear-gradient(180deg, #4CF6EA 0%, #3C31F5 100%)",
show:true
},{ },{
lable:"网格化管理", lable:"网格化管理",
icon:"", icon:"",
url:"/gridman", url:"/gridman",
bgColor:"linear-gradient(180deg, #DBA2FD 0%, #3C31F5 100%)" bgColor:"linear-gradient(180deg, #DBA2FD 0%, #3C31F5 100%)",
show:true
},{ },{
lable:"监测中心", lable:"监测中心",
icon:"", icon:"",
url:"http://60.213.14.14:6088/forestry/", url:"http://60.213.14.14:6088/forestry/",
bgColor:"linear-gradient(180deg, #FEA887 0%, #EF3E70 100%)" bgColor:"linear-gradient(180deg, #FEA887 0%, #EF3E70 100%)",
show:true
},{ },{
lable:"数据中心", lable:"数据中心",
icon:"", icon:"",
url:"http://223.99.16.253:9003/#/dashboard?id="+ localStorage.getItem("X-Token"), url:"http://223.99.16.253:9003/#/dashboard?id="+ localStorage.getItem("X-Token"),
bgColor:"linear-gradient(180deg, #E0FF13 0%, #086D3C 100%)" bgColor:"linear-gradient(180deg, #E0FF13 0%, #086D3C 100%)",
show:localStorage.getItem("unitName") ? false : true,
},{ },{
lable:"管理中心", lable:"管理中心",
icon:"", icon:"",
url:"/dashboard", url:"/dashboard",
bgColor:"linear-gradient(180deg, #FFDF2F 0%, #FB5757 100%)" bgColor:"linear-gradient(180deg, #FFDF2F 0%, #FB5757 100%)",
show:true
} }
] ]
} }