Compare commits

..

No commits in common. "ac8647dccbf1a4312a03fc7a9f430cadcb508495" and "4dc901f9149995e822ea2694ca59ece372091bd0" have entirely different histories.

2 changed files with 12 additions and 59 deletions

View File

@ -57,8 +57,10 @@
type="text" placeholder="0" />
</div>
</div>
<div class="flex-view padding-none shrink-none">
<div class="flex-view padding-none shrink-none border-none">
<div class="input-main-80">
</div>
<div class="input-sel input-sel-w180">
<span>冷暖风机最高档位</span>
<el-dropdown @command="handleCommand1($event, 22256)">
@ -76,10 +78,9 @@
<span>最大为4档</span>
</div>
</div>
<div class="text-tips">加热模式:</div>
<div class="flex-view padding-none shrink-none border-none">
<div class="input-main-80">
<span></span><span></span> <span>&nbsp;温度低于目标值</span>
<span>加热温度低于目标值</span>
<input @blur="blurChange10(22257, $event)" v-model="inputData[22257]"
@input="changeCount10(22257, $event)" type="text" placeholder="0">
<span>启动1档加热</span>
@ -101,7 +102,7 @@
<span>秒加档</span>
</div>
</div>
<!-- <div class="flex-view padding-none border-none shrink-none">
<div class="flex-view padding-none border-none shrink-none">
<div class="input-btn">
<div class="btn btn-w80" @click="changeIndexOpen4(0)" :class="inputData['22260'] == '1' ? 'blue' : 'off'">
{{ inputData['22260'] == '1' ? '有效' : '无效' }}
@ -110,11 +111,10 @@
<div class="input-main-80">
<span>制冷时开启风机湿帘</span>
</div>
</div> -->
<div class="text-tips">制冷模式:</div>
</div>
<div class="flex-view padding-none shrink-none border-none">
<div class="input-main-80">
<span></span><span></span> <span>&nbsp;温度低于目标值</span>
<span>制冷温度低于目标值</span>
<input @blur="blurChange10(22261, $event)" v-model="inputData[22261]"
@input="changeCount10(22261, $event)" type="text" placeholder="0">
<span>启动1档制冷</span>
@ -177,7 +177,7 @@ export default {
return {
inputData: [],
typeList1: [
{ label: "0", value: 0 },
{ label: "停止", value: 0 },
{ label: "1档", value: 1 },
{ label: "2档", value: 2 },
{ label: "3档", value: 3 },

View File

@ -81,22 +81,10 @@
</div>
</div>
<div class="flex-view shrink-none">
<div class="input-sel input-sel-w180">
<span>工作模式一风机湿帘工作最大级数</span>
<el-dropdown @command="handleCommand1($event, 21959)">
<div class="el-dropdown-link">
<input v-model="inputDataNew[21959]" type="text" class="input-input" placeholder="无" />
<div class="arrow">
<img src="../../assets/image/arrow.png" alt="" />
</div>
</div>
<el-dropdown-menu class="input-menu-180" slot="dropdown">
<el-dropdown-item v-for="(item, index) in typeList1" :key="index" :command="item.value">{{
item.label }}</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</div>
<div class="input-main-80">
<span>工作模式一风机湿帘工作最大级数</span>
<input @blur="blurChange(21959, $event)" v-model="inputData[21959]" @input="change(21959, $event)"
type="text" placeholder="0">
<span>风机湿帘工作调整时间</span>
<input @blur="blurChange(21961, $event)" v-model="inputData[21961]" @input="change(21961, $event)"
type="text" placeholder="0">
@ -401,15 +389,6 @@ 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: {
@ -675,7 +654,6 @@ 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])
@ -695,34 +673,9 @@ 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');