更新 src/views/page/air-conditioning.vue

This commit is contained in:
xiaomeng 2024-11-16 06:23:12 +00:00
parent 3a9402395d
commit d135c6ab3b

View File

@ -76,7 +76,7 @@
<div class="flex-view padding-none shrink-none">
<div class="input-sel input-sel-w180">
<span>3.空调设置冷暖模式</span>
<el-dropdown @command="handleCommand1($event, 22042)">
<el-dropdown @command="handleCommand2($event, 22042)">
<div class="el-dropdown-link">
<input
v-model="inputDataNew[22042]"
@ -223,9 +223,9 @@
<div class="input-main-80">
<span>空调设置最低温庶值</span>
<input
@blur="blurChange(22048, $event)"
@blur="blurChange10(22048, $event)"
v-model="inputData[22048]"
@input="change(22048, $event)"
@input="changeCount10(22048, $event)"
type="text"
placeholder="0"
/>
@ -372,6 +372,21 @@ export default {
},
};
this.changeBtn(code, dataNum);
},
//
handleCommand2(command, code) {
this.typeList2.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);
},
//
changeOpen(index) {