修改模式回显 变更为点击操作(方便手机端用户)

pull/14/head
孙萌 2023-10-16 14:17:41 +08:00
parent dfc6f44105
commit 9aa46b6aed
1 changed files with 18 additions and 17 deletions

View File

@ -92,7 +92,7 @@
<div class="flex-view"> <div class="flex-view">
<div class="input-main-80"> <div class="input-main-80">
<span>施肥时采用</span> <span>施肥时采用</span>
<input @blur="blurChange(10 + (indexs - 1) + '53', $event)" <input @blur="blurChange(10 + (indexs - 1) + '58', $event)"
v-model="inputData[10 + (indexs - 1) + '58']" v-model="inputData[10 + (indexs - 1) + '58']"
@input="change(10 + (indexs - 1) + '58', $event)" @input="change(10 + (indexs - 1) + '58', $event)"
type="number" type="number"
@ -213,12 +213,12 @@
<div class="input-view"> <div class="input-view">
<div class="input-sel"> <div class="input-sel">
<span>施肥机自动运行模式选择</span> <span>施肥机自动运行模式选择</span>
<el-dropdown @command="handleCommand"> <el-dropdown trigger="click" @command="handleCommand">
<div class="el-dropdown-link"> <div class="el-dropdown-link">
<input <input
type="text" type="text"
disabled
value="选择设定弹窗" value="选择设定弹窗"
v-model="data53"
class="input-input" class="input-input"
placeholder="无" placeholder="无"
/> />
@ -825,28 +825,29 @@ export default {
} else if (command == "5") { } else if (command == "5") {
this.model4 = true; this.model4 = true;
} }
// this.inputData[10 + (this.indexs - 1) + "53"] = command; this.inputData[10 + (this.indexs - 1) + "53"] = command;
// this.get53data(command) this.get53data(command)
// var data53={ var data53={
// target: { target: {
// value: this.inputData[10 + (this.indexs - 1) + "53"], value: this.inputData[10 + (this.indexs - 1) + "53"],
// }, },
// } }
// this.change(10 + (this.indexs - 1) + "53", data53); this.changeBtn(10 + (this.indexs - 1) + "53", data53);
}, },
get53data(index) { get53data(index) {
var data = index; var data = index;
var text53 = ""; var text53 = "";
if (data == "1") { if (data == "1") {
text53 = "定时启动"; text53 = "定时间点启动";
} else if (data == "2") { } else if (data == "2") {
text53 = "间隔启动"; text53 = "预定时间段启动";
} else if (data == "3") { } else if (data == "3") {
text53 = "土壤传感器启动"; text53 = "依据土壤传感器";
} else if (data == "4") { } else if (data == "4") {
text53 = "光积累启动"; text53 = "依据光照传感器";
} else if (data == "5") { } else if (data == "5") {
text53 = "外控启动"; text53 = "依据外控信号";
} }
this.data53 = text53; this.data53 = text53;
}, },