This commit is contained in:
home孙 2025-09-12 15:01:54 +08:00
parent dbfca75f65
commit 360818f18c
2 changed files with 28 additions and 37 deletions

View File

@ -262,7 +262,7 @@ export default {
{ name: this.$t('index.home'), img: require('../assets/image/index-icon.png'), list: [], router: 'realTime', isRouter: true, }, { name: this.$t('index.home'), img: require('../assets/image/index-icon.png'), list: [], router: 'realTime', isRouter: true, },
{ name: this.$t('index.greenhouse'), routerList: ['realTime', 'dataAnalysis', 'historyData','air-conditioning', 'exitSettings','heatFan', '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: this.$t('index.greenhouse'), routerList: ['realTime', 'dataAnalysis', 'historyData','air-conditioning', 'exitSettings','heatFan', '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: '', img: require('../assets/image/left-img1.png'), list: [] },
{ name: this.$t('index.fertigation'), 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: this.$t('index.fertigation'), routerList: ['status-soil','stir','formula', 'dataAnalysis', 'historyData', 'irrigateSet', 'videoMonitoring','imageData', 'PIDSet', 'systemSet', 'upload', 'sensorSet', 'realTime', 'history', 'dataAnalysis'], img: require('../assets/image/left-img2.png'), list: [] },
{ name:this.$t('index.smartIrrigation') , 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:this.$t('index.smartIrrigation') , 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:this.$t('index.dataCollector') , 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: [] }, { name:this.$t('index.dataCollector') , 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: [] },
{ name:this.$t('index.weatherStation') , 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: [] }, { name:this.$t('index.weatherStation') , 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: [] },

View File

@ -6,13 +6,13 @@
<div class="flex-view"> <div class="flex-view">
<div class="input-btn"> <div class="input-btn">
<span>控制模式选择</span> <span>控制模式选择</span>
<div class="btn" @click="change00(1)" :class="topActive == 1 ? 'blue' : 'green'"> <div class="btn" @click="change00(2)" :class="topActive[2] == 1 ? 'blue' : 'green'">
<img src="../../assets/image/irrigateSet1.png" alt="" />{{$t('text.stop')}} <img src="../../assets/image/irrigateSet1.png" alt="" />{{$t('text.stop')}}
</div> </div>
<div class="btn" @click="change00(2)" :class="topActive == 2 ? 'blue' : 'green'"> <div class="btn" @click="change00(1)" :class="topActive[1] == 1 ? 'blue' : 'green'">
<img src="../../assets/image/irrigateSet3.png" alt="" />{{$t('text.manual')}} <img src="../../assets/image/irrigateSet3.png" alt="" />{{$t('text.manual')}}
</div> </div>
<div class="btn" @click="change00(3)" :class="topActive == 3 ? 'blue' : 'green'"> <div class="btn" @click="change00(0)" :class="topActive[0] == 1 ? 'blue' : 'green'">
<img src="../../assets/image/irrigateSet2.png" alt="" />{{$t('text.auto')}} <img src="../../assets/image/irrigateSet2.png" alt="" />{{$t('text.auto')}}
</div> </div>
@ -78,7 +78,7 @@
</div> </div>
<!-- 时间点模式 --> <!-- 时间点模式 -->
<!-- --> <!-- -->
<template v-if="inputData['603']==1"> <template v-show="inputData['603']==1">
<div class="title-tips-bold"> <div class="title-tips-bold">
时间点模式 时间点模式
</div> </div>
@ -145,7 +145,7 @@
<!-- 时间段模式 --> <!-- 时间段模式 -->
<!-- --> <!-- -->
<template v-if="inputData['603']==2"> <template v-show="inputData['603']==2">
<div class="title-tips-bold"> <div class="title-tips-bold">
时间段模式 时间段模式
</div> </div>
@ -199,7 +199,7 @@
<!-- 联动模式 --> <!-- 联动模式 -->
<!-- --> <!-- -->
<template v-if="inputData['603']==3"> <template v-show="inputData['603']==3">
<div class="title-tips-bold"> <div class="title-tips-bold">
联动模式 联动模式
</div> </div>
@ -456,24 +456,12 @@ export default {
this.changeBtn(21400, dataNum); this.changeBtn(21400, dataNum);
}, },
change00(index) { change00(index) {
this.topActive = index var list = ['0','0','0'];
var list = ["0", "0", "0"]; list[index]='1'
if (index == 1) { this.topActive=list
list[0] = "1"; this.$forceUpdate();
} else { var revList = list.slice().reverse()
list[0] = "0"; var num = revList.join("");
}
if (index == 2) {
list[1] = "1";
} else {
list[1] = "0";
}
if (index == 3) {
list[2] = "1";
} else {
list[2] = "0";
}
var num = list.join("");
var dataNum = { var dataNum = {
target: { target: {
value: parseInt(num, 2), value: parseInt(num, 2),
@ -482,18 +470,20 @@ export default {
this.changeBtn('600', dataNum); this.changeBtn('600', dataNum);
}, },
getType00() { getType00() {
var number = this.padString('600', 3) var number = this.padString(this.inputData['600'].toString(2), 3)
console.log(number);
if (Number(number[0])) { var openListNew = []
this.topActive = 1 openListNew = number.split("")
} else if (Number(number[1])) { this.topActive=openListNew.reverse();
this.topActive = 2 // if (Number(number[0])) {
} else if (Number(number[2])) { // this.topActive = 1
this.topActive = 3 // } else if (Number(number[1])) {
} else { // this.topActive = 2
this.topActive = 0 // } else if (Number(number[2])) {
} // this.topActive = 3
console.log(this.topActive, 11); // } else {
// this.topActive = 0
// }
}, },
dataInit() { dataInit() {
this.loading = this.$loading({ this.loading = this.$loading({
@ -548,6 +538,7 @@ export default {
regAddress: code, regAddress: code,
num: el.target.value, num: el.target.value,
}; // }; //
console.log(store.nowInput,el.target.value);
if (store.nowInput != el.target.value) { if (store.nowInput != el.target.value) {
this.changeData(data); this.changeData(data);
} }