+
+
风机湿帘工作调整时间
@@ -389,6 +401,15 @@ export default {
indexs: 1,
loading:null,
pageName:'湿帘风机',
+ typeList1: [
+ { label: "0", value: 0 },
+ { label: "1档", value: 1 },
+ { label: "2档", value: 2 },
+ { label: "3档", value: 3 },
+ { label: "4档", value: 4 },
+ { label: "5档", value: 5 },
+ ],
+ inputDataNew: [],
}
},
watch: {
@@ -654,6 +675,7 @@ export default {
this.loading.close()
if (res.data.code == 200) {
this.inputData = res.data.data;
+ this.inputDataNew = JSON.parse(JSON.stringify(res.data.data));
this.inputData[21958]=this.countData(this.inputData[21958])
this.inputData[21960]=this.countData10(this.inputData[21960])
this.inputData[21964]=this.countData10(this.inputData[21964])
@@ -673,9 +695,34 @@ export default {
this.getActive3()
this.getActive4()
this.getActive5()
+
+ this.inputDataNew[21959] = this.getData1(this.inputData[21959]);
}
})
},
+ getData1(data) {
+ var name = "";
+ this.typeList1.forEach((el, index) => {
+ if (el.value == data) {
+ name = el.label;
+ }
+ });
+ return name;
+ },
+ handleCommand1(command, code) {
+ this.typeList1.forEach((el, index) => {
+ if (el.value == command) {
+ this.inputDataNew[code] = el.label;
+ }
+ });
+ this.inputData[code] = command;
+ var dataNum = {
+ target: {
+ value: command,
+ },
+ };
+ this.changeBtn(code, dataNum);
+ },
//二进制转换后的补全
padString(str, length) {
return str.padStart(length, '0');