diff --git a/src/views/index.vue b/src/views/index.vue index 2511a81..5e7c13f 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -67,7 +67,7 @@ export default { headerList: [ { name: '实时数据', router: 'realTime', routerList: ['realTime'], img: require('../assets/image/header-img1.png') }, // { name: '设定值参数', router: 'status', index: 1, routerList: ['formula', 'irrigateSet', 'PIDSet', 'systemSet', 'upload', 'sensorSet'], img: require('../assets/image/header-img0.png') }, - { name: '设定值参数', router: 'formula', index: 1, routerList: ['formula', 'status', 'exitSettings', 'skylight', 'systemSet-con', 'fan', 'upload-con', 'sensorSet-con', 'alarmSettings', 'synthesis-con', 'waterPump', 'geothermalFan', 'uptake', 'downtake', 'rollByRoll', 'snowRemoval', "targetTemperature", "targetHumidity", "targetCo2", "sunroofControl", "outsizeSunshade", "insizeSunshade", "wetFan", "LED", 'electromagneticControl', "coercionMist", "circulationCan", "internalInsulation", "forceOutput", "intrinsicParameter", "parameterSet",], img: require('../assets/image/header-img0.png') }, + { name: '设定值参数', router: 'status', index: 1, routerList: ['formula', 'status', 'exitSettings', 'skylight', 'systemSet-con', 'fan', 'upload-con', 'sensorSet-con', 'alarmSettings', 'synthesis-con', 'waterPump', 'geothermalFan', 'uptake', 'downtake', 'rollByRoll', 'snowRemoval', "targetTemperature", "targetHumidity", "targetCo2", "sunroofControl", "outsizeSunshade", "insizeSunshade", "wetFan", "LED", 'electromagneticControl', "coercionMist", "circulationCan", "internalInsulation", "forceOutput", "intrinsicParameter", "parameterSet",], img: require('../assets/image/header-img0.png') }, { name: '图库数据', router: '', routerList: [], img: require('../assets/image/header-img1.png') }, { name: '视频监控', router: 'videoMonitoring', routerList: ['videoMonitoring'], img: require('../assets/image/header-img2.png') }, // history history @@ -306,8 +306,13 @@ export default { } else if (item.router == 'dataAnalysis' && this.$route.query.index != item.index) { this.$router.push({ path: `/dataAnalysis` }) - } else if (item.router == 'status' && (this.deviceName == '10' || this.deviceName == '30')) { - this.$router.push({ path: `/control` }) + } else if (item.router == 'status') { + if(this.deviceName == '10' || this.deviceName == '30'){ + this.$router.push({ path: `/control` }) + }else{ + this.$router.push({ path: `/formula` }) + } + } else if (item.router == 'realTime') { this.$router.push({ path: `/realTime` })