feat:首页跳转
This commit is contained in:
parent
5ec9430c5f
commit
cf0c94c7fc
@ -41,7 +41,7 @@
|
||||
:key="index"
|
||||
style="box-shadow: 2px 2px 3px #25252545, -2px -2px 1px #12121225;border-radius: 6px;"
|
||||
>
|
||||
<div @click="goPage(index)" class="top-card-text-wrapper" style="width: 100%;display: flex;justify-content: space-around;align-items: center;">
|
||||
<div @click="goPage(item.path)" class="top-card-text-wrapper" style="width: 100%;display: flex;justify-content: space-around;align-items: center;">
|
||||
<div
|
||||
|
||||
:class="[
|
||||
@ -86,21 +86,27 @@ export default {
|
||||
rightCardList: [
|
||||
{
|
||||
title: "设备管理",
|
||||
path:'/deviceInfo/deviceManage'
|
||||
},
|
||||
{
|
||||
title: "设备维保",
|
||||
path:'/deviceInfo/deviceManage'
|
||||
},
|
||||
{
|
||||
title: "加油记录",
|
||||
path:'/deviceInfo/deviceManage'
|
||||
},
|
||||
{
|
||||
title: "设备硬件管理",
|
||||
path:'/deviceInfo/deviceManage'
|
||||
},
|
||||
{
|
||||
title: "报警信息处理",
|
||||
path:'/deviceInfo/deviceManage'
|
||||
},
|
||||
{
|
||||
title: "设备油耗情况",
|
||||
path:'/deviceInfo/deviceManage'
|
||||
},
|
||||
],
|
||||
personList: [
|
||||
@ -150,28 +156,8 @@ export default {
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
goPage(index){
|
||||
console.log(index);
|
||||
if(index==0){
|
||||
this.$router.push('/deviceInfo/deviceManage')
|
||||
}else if(index==1){
|
||||
this.$router.push('/deviceInfo/deviceMaintenance')
|
||||
|
||||
}else if(index==2){
|
||||
this.$router.push('/refuelLog/refuelLogQuery')
|
||||
|
||||
|
||||
}else if(index==3){
|
||||
this.$router.push('/deviceEqu/hardware')
|
||||
|
||||
|
||||
}else if(index==4){
|
||||
this.$router.push('/warningCenter/gcjxAlarmInformationProcessing/index')
|
||||
|
||||
|
||||
}else{
|
||||
this.$router.push('/deviceData/fuelCondition')
|
||||
}
|
||||
goPage(path){
|
||||
this.$router.push(path)
|
||||
}
|
||||
},
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user