diff --git a/src/components/setParams.vue b/src/components/setParams.vue index 339aa87..6739272 100644 --- a/src/components/setParams.vue +++ b/src/components/setParams.vue @@ -109,23 +109,23 @@ export default { if (index < 8) { if (store.equipmentName['fertilization' + store.nameList[index]]) { // store.equipmentName['fertilization'+store.nameList[index]] - this.routerList[0].list.push({ - name: '配方' + (index + 1), + this.routerList[0].list[index]={ + name: store.equipmentName['fertilization' + store.nameList[index]], status: -1, index: index + 1, router: 'formula' - }) + } } } - // if (store.equipmentName['solenoid' + store.nameList[index]]) { - // // store.equipmentName['fertilization'+store.nameList[index]] - // this.routerList[1].list.push({ - // name: store.equipmentName['solenoid' + store.nameList[index]], - // status: -1, - // index: index + 1, - // router: 'irrigateSet' - // }) - // } + if (store.equipmentName['solenoid' + store.nameList[index]]) { + // store.equipmentName['fertilization'+store.nameList[index]] + this.routerList[1].list[index]={ + name: store.equipmentName['solenoid' + store.nameList[index]], + status: -1, + index: index + 1, + router: 'irrigateSet' + } + } }) }, //去首页 @@ -205,7 +205,7 @@ export default { cursor: pointer; >div { - width: 220px; + width: 100%; height: 40px; // background: rgba(255, 255, 255, 0.1); // border: 1px solid rgba(255, 255, 255, 0.3); diff --git a/src/views/index.vue b/src/views/index.vue index 46c50c6..9f7fd74 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -114,7 +114,7 @@ export default { { name: '首页', img: require('../assets/image/index-icon.png'), list: [], router: 'realTime', isRouter: true, }, { name: '温室', routerList: ['realTime', 'dataAnalysis', 'historyData', 'exitSettings', 'videoMonitoring','imageData', 'skylight', 'control', 'systemSet-con', 'fan', 'upload-con', 'sensorSet-con', 'synthesis-con', 'alarmSettings', '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/left-img0.png'), list: [] }, // { name: '二号温室', img: require('../assets/image/left-img1.png'), list: [] }, - { name: '施肥机', routerList: ['formula', 'dataAnalysis', 'historyData', 'irrigateSet', 'videoMonitoring','imageData', 'PIDSet', 'systemSet', 'upload', 'sensorSet', 'realTime', 'history', 'dataAnalysis'], img: require('../assets/image/left-img2.png'), list: [] }, + { name: '施肥机', routerList: ['status-soil','formula', 'dataAnalysis', 'historyData', 'irrigateSet', 'videoMonitoring','imageData', 'PIDSet', 'systemSet', 'upload', 'sensorSet', 'realTime', 'history', 'dataAnalysis'], img: require('../assets/image/left-img2.png'), list: [] }, { name: '智能灌溉', routerList: ['realTime', 'dataAnalysis', 'historyData','irrigateSet-soil', 'videoMonitoring','imageData','PIDSet-soil', 'systemSet-soil', 'upload-soil', 'sensorSet-soil', 'realTime', 'history', 'dataAnalysis'], img: require('../assets/image/irrigateSet-icon1-act.png'), list: [] }, { name: '生态气象站', routerList: ['realTime', 'historyData', 'exitSettings', 'skylight', 'control', 'systemSet-con','imageData', 'fan', 'upload-con', 'sensorSet-con', 'synthesis-con', 'alarmSettings', '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/left-img3.png'), list: [] }, ], diff --git a/src/views/page/realTime.vue b/src/views/page/realTime.vue index 389dcc0..e2c4349 100644 --- a/src/views/page/realTime.vue +++ b/src/views/page/realTime.vue @@ -97,6 +97,11 @@