pull/86/head
parent
9b6ec23136
commit
5d66d1c927
|
@ -105,7 +105,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="input-main-80">
|
<div class="input-main-80">
|
||||||
<span>天窗除湿时,内遮阳开启角度</span>
|
<span>通风窗除湿时,内遮阳开启角度</span>
|
||||||
<input @blur="blurChange(startList[indexs-1]+13, $event)" v-model="inputData[startList[indexs-1]+13]" @input="change(startList[indexs-1]+13, $event)"
|
<input @blur="blurChange(startList[indexs-1]+13, $event)" v-model="inputData[startList[indexs-1]+13]" @input="change(startList[indexs-1]+13, $event)"
|
||||||
type="text" placeholder="0">
|
type="text" placeholder="0">
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -73,7 +73,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="input-main-80">
|
<div class="input-main-80">
|
||||||
<span>天窗除湿时,内保温开启角度</span>
|
<span>通风窗除湿时,内保温开启角度</span>
|
||||||
<input @blur="blurChange(startList[indexs-1]+7, $event)" v-model="inputData[startList[indexs-1]+7]" @input="change(startList[indexs-1]+7, $event)"
|
<input @blur="blurChange(startList[indexs-1]+7, $event)" v-model="inputData[startList[indexs-1]+7]" @input="change(startList[indexs-1]+7, $event)"
|
||||||
type="text" placeholder="0">
|
type="text" placeholder="0">
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -255,7 +255,7 @@
|
||||||
|
|
||||||
<div class="flex-view border-none shrink-none padding-none">
|
<div class="flex-view border-none shrink-none padding-none">
|
||||||
<div class="input-main-80">
|
<div class="input-main-80">
|
||||||
<span>1#天窗全程运行时间</span>
|
<span>1#通风窗全程运行时间</span>
|
||||||
<input @blur="blurChange(20667, $event)" v-model="inputData[20667]" @input="change(20667, $event)"
|
<input @blur="blurChange(20667, $event)" v-model="inputData[20667]" @input="change(20667, $event)"
|
||||||
type="text" placeholder="0">
|
type="text" placeholder="0">
|
||||||
<span>打开输出通道:</span>
|
<span>打开输出通道:</span>
|
||||||
|
@ -266,7 +266,7 @@
|
||||||
type="text" placeholder="0">
|
type="text" placeholder="0">
|
||||||
</div>
|
</div>
|
||||||
<div class="input-sel input-sel-w180">
|
<div class="input-sel input-sel-w180">
|
||||||
<span>天窗朝向</span>
|
<span>通风窗朝向</span>
|
||||||
<el-dropdown @command="handleCommand2($event,20668)">
|
<el-dropdown @command="handleCommand2($event,20668)">
|
||||||
<div class="el-dropdown-link">
|
<div class="el-dropdown-link">
|
||||||
<input v-model="inputDataNew[20668]" type="text" class="input-input" placeholder="无">
|
<input v-model="inputDataNew[20668]" type="text" class="input-input" placeholder="无">
|
||||||
|
@ -281,7 +281,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-view border-none shrink-none padding-none">
|
<div class="flex-view border-none shrink-none padding-none">
|
||||||
<div class="input-main-80">
|
<div class="input-main-80">
|
||||||
<span>2#天窗全程运行时间</span>
|
<span>2#通风窗全程运行时间</span>
|
||||||
<input @blur="blurChange(20671, $event)" v-model="inputData[20671]" @input="change(20671, $event)"
|
<input @blur="blurChange(20671, $event)" v-model="inputData[20671]" @input="change(20671, $event)"
|
||||||
type="text" placeholder="0">
|
type="text" placeholder="0">
|
||||||
<span>打开输出通道:</span>
|
<span>打开输出通道:</span>
|
||||||
|
@ -292,7 +292,7 @@
|
||||||
type="text" placeholder="0">
|
type="text" placeholder="0">
|
||||||
</div>
|
</div>
|
||||||
<div class="input-sel input-sel-w180">
|
<div class="input-sel input-sel-w180">
|
||||||
<span>天窗朝向</span>
|
<span>通风窗朝向</span>
|
||||||
<el-dropdown @command="handleCommand2($event,20672)">
|
<el-dropdown @command="handleCommand2($event,20672)">
|
||||||
<div class="el-dropdown-link">
|
<div class="el-dropdown-link">
|
||||||
<input v-model="inputDataNew[20672]" type="text" class="input-input" placeholder="无">
|
<input v-model="inputDataNew[20672]" type="text" class="input-input" placeholder="无">
|
||||||
|
@ -307,7 +307,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-view border-none shrink-none padding-none">
|
<div class="flex-view border-none shrink-none padding-none">
|
||||||
<div class="input-main-80">
|
<div class="input-main-80">
|
||||||
<span>3#天窗全程运行时间</span>
|
<span>3#通风窗全程运行时间</span>
|
||||||
<input @blur="blurChange(20675, $event)" v-model="inputData[20675]" @input="change(20675, $event)"
|
<input @blur="blurChange(20675, $event)" v-model="inputData[20675]" @input="change(20675, $event)"
|
||||||
type="text" placeholder="0">
|
type="text" placeholder="0">
|
||||||
<span>打开输出通道:</span>
|
<span>打开输出通道:</span>
|
||||||
|
@ -318,7 +318,7 @@
|
||||||
type="text" placeholder="0">
|
type="text" placeholder="0">
|
||||||
</div>
|
</div>
|
||||||
<div class="input-sel input-sel-w180">
|
<div class="input-sel input-sel-w180">
|
||||||
<span>天窗朝向</span>
|
<span>通风窗朝向</span>
|
||||||
<el-dropdown @command="handleCommand2($event,20676)">
|
<el-dropdown @command="handleCommand2($event,20676)">
|
||||||
<div class="el-dropdown-link">
|
<div class="el-dropdown-link">
|
||||||
<input v-model="inputDataNew[20676]" type="text" class="input-input" placeholder="无">
|
<input v-model="inputDataNew[20676]" type="text" class="input-input" placeholder="无">
|
||||||
|
@ -333,7 +333,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-view shrink-none padding-none">
|
<div class="flex-view shrink-none padding-none">
|
||||||
<div class="input-main-80">
|
<div class="input-main-80">
|
||||||
<span>4#天窗全程运行时间</span>
|
<span>4#通风窗全程运行时间</span>
|
||||||
<input @blur="blurChange(20679, $event)" v-model="inputData[20679]" @input="change(20679, $event)"
|
<input @blur="blurChange(20679, $event)" v-model="inputData[20679]" @input="change(20679, $event)"
|
||||||
type="text" placeholder="0">
|
type="text" placeholder="0">
|
||||||
<span>打开输出通道:</span>
|
<span>打开输出通道:</span>
|
||||||
|
@ -344,7 +344,7 @@
|
||||||
type="text" placeholder="0">
|
type="text" placeholder="0">
|
||||||
</div>
|
</div>
|
||||||
<div class="input-sel input-sel-w180">
|
<div class="input-sel input-sel-w180">
|
||||||
<span>天窗朝向</span>
|
<span>通风窗朝向</span>
|
||||||
<el-dropdown @command="handleCommand2($event,20680)">
|
<el-dropdown @command="handleCommand2($event,20680)">
|
||||||
<div class="el-dropdown-link">
|
<div class="el-dropdown-link">
|
||||||
<input v-model="inputDataNew[20680]" type="text" class="input-input" placeholder="无">
|
<input v-model="inputDataNew[20680]" type="text" class="input-input" placeholder="无">
|
||||||
|
@ -606,6 +606,34 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
|
},
|
||||||
|
//二进制转换后的补全
|
||||||
|
padString(str, length) {
|
||||||
|
return str.padStart(length, '0');
|
||||||
|
},
|
||||||
|
//反转数组 不影响原数组
|
||||||
|
myReverse(arr) {
|
||||||
|
return [...arr].reverse()
|
||||||
|
},
|
||||||
|
//全选文本
|
||||||
|
selectValue(e) {
|
||||||
|
var store = this.$store.state
|
||||||
|
store.nowInput = e.target.value
|
||||||
|
e.currentTarget.select();
|
||||||
|
},
|
||||||
|
//失去焦点
|
||||||
|
blurChange(code, el) {
|
||||||
|
var store = this.$store.state
|
||||||
|
var data = {
|
||||||
|
equipmentId: store.equipmentList[store.equipmentIndex - 1].deviceId,
|
||||||
|
regAddress: code,
|
||||||
|
num: el.target.value,
|
||||||
|
}; //避免开启多个计时器
|
||||||
|
if (this.timer) {
|
||||||
|
this.timer && clearInterval(this.timer);
|
||||||
|
this.changeData(data);
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
//修改数据的函数
|
//修改数据的函数
|
||||||
changeBtn(code, el) {
|
changeBtn(code, el) {
|
||||||
|
@ -677,6 +705,31 @@ export default {
|
||||||
};
|
};
|
||||||
this.changeBtn(code, dataNum);
|
this.changeBtn(code, dataNum);
|
||||||
},
|
},
|
||||||
|
change(code, el) {
|
||||||
|
var store = this.$store.state
|
||||||
|
var data = {
|
||||||
|
equipmentId: store.equipmentList[store.equipmentIndex - 1].deviceId,
|
||||||
|
regAddress: code,
|
||||||
|
num: el.target.value,
|
||||||
|
};
|
||||||
|
this.delayTimer(0, data);
|
||||||
|
},
|
||||||
|
//限制 写入停止后j*100毫秒调取函数
|
||||||
|
delayTimer(i, data) {
|
||||||
|
const that = this;
|
||||||
|
//整体接口
|
||||||
|
let j = this.$store.state.lateSend;
|
||||||
|
//避免开启多个计时器
|
||||||
|
this.timer && clearInterval(this.timer);
|
||||||
|
|
||||||
|
this.timer = setInterval(() => {
|
||||||
|
++i;
|
||||||
|
if (i == j) {
|
||||||
|
that.changeData(data);
|
||||||
|
clearInterval(this.timer);
|
||||||
|
}
|
||||||
|
}, 100);
|
||||||
|
},
|
||||||
changeData(data) {
|
changeData(data) {
|
||||||
var store = this.$store.state
|
var store = this.$store.state
|
||||||
this.api.postControlWrite(data).then((res) => {
|
this.api.postControlWrite(data).then((res) => {
|
||||||
|
|
|
@ -172,7 +172,7 @@
|
||||||
|
|
||||||
<div class="flex-view shrink-none border-none">
|
<div class="flex-view shrink-none border-none">
|
||||||
<div class="input-sel input-sel-w180">
|
<div class="input-sel input-sel-w180">
|
||||||
<span>1#天窗: 目标温度选择</span>
|
<span>1#通风窗: 目标温度选择</span>
|
||||||
<el-dropdown @command="handleCommand1($event,21757)">
|
<el-dropdown @command="handleCommand1($event,21757)">
|
||||||
<div class="el-dropdown-link">
|
<div class="el-dropdown-link">
|
||||||
<input v-model="inputDataNew[21757]" type="text" class="input-input" placeholder="无">
|
<input v-model="inputDataNew[21757]" type="text" class="input-input" placeholder="无">
|
||||||
|
@ -227,7 +227,7 @@
|
||||||
|
|
||||||
<div class="flex-view shrink-none border-none">
|
<div class="flex-view shrink-none border-none">
|
||||||
<div class="input-sel input-sel-w180">
|
<div class="input-sel input-sel-w180">
|
||||||
<span>2#天窗: 目标温度选择</span>
|
<span>2#通风窗: 目标温度选择</span>
|
||||||
<el-dropdown @command="handleCommand3($event,21761)">
|
<el-dropdown @command="handleCommand3($event,21761)">
|
||||||
<div class="el-dropdown-link">
|
<div class="el-dropdown-link">
|
||||||
<input v-model="inputDataNew[21761]" type="text" class="input-input" placeholder="无">
|
<input v-model="inputDataNew[21761]" type="text" class="input-input" placeholder="无">
|
||||||
|
@ -282,7 +282,7 @@
|
||||||
|
|
||||||
<div class="flex-view shrink-none border-none">
|
<div class="flex-view shrink-none border-none">
|
||||||
<div class="input-sel input-sel-w180">
|
<div class="input-sel input-sel-w180">
|
||||||
<span>3#天窗: 目标温度选择</span>
|
<span>3#通风窗: 目标温度选择</span>
|
||||||
<el-dropdown @command="handleCommand3($event,21765)">
|
<el-dropdown @command="handleCommand3($event,21765)">
|
||||||
<div class="el-dropdown-link">
|
<div class="el-dropdown-link">
|
||||||
<input v-model="inputDataNew[21765]" type="text" class="input-input" placeholder="无">
|
<input v-model="inputDataNew[21765]" type="text" class="input-input" placeholder="无">
|
||||||
|
@ -337,7 +337,7 @@
|
||||||
|
|
||||||
<div class="flex-view shrink-none">
|
<div class="flex-view shrink-none">
|
||||||
<div class="input-sel input-sel-w180">
|
<div class="input-sel input-sel-w180">
|
||||||
<span>4#天窗: 目标温度选择</span>
|
<span>4#通风窗: 目标温度选择</span>
|
||||||
<el-dropdown @command="handleCommand3($event,21769)">
|
<el-dropdown @command="handleCommand3($event,21769)">
|
||||||
<div class="el-dropdown-link">
|
<div class="el-dropdown-link">
|
||||||
<input v-model="inputDataNew[21769]" type="text" class="input-input" placeholder="无">
|
<input v-model="inputDataNew[21769]" type="text" class="input-input" placeholder="无">
|
||||||
|
|
|
@ -1223,7 +1223,7 @@ export default {
|
||||||
var statusData = { name: el.name, type:14, id: el.id, open: res.data.data[(1096 + ((el.id - 24)*2))], progress: res.data.data[(1098 + ((el.id - 24)*2))], index: res.data.data[(1097 + ((el.id - 24)*2))] }
|
var statusData = { name: el.name, type:14, id: el.id, open: res.data.data[(1096 + ((el.id - 24)*2))], progress: res.data.data[(1098 + ((el.id - 24)*2))], index: res.data.data[(1097 + ((el.id - 24)*2))] }
|
||||||
statusList.push(statusData)
|
statusList.push(statusData)
|
||||||
}else if (el.id == 26||el.id == 27||el.id == 28||el.id == 29) {
|
}else if (el.id == 26||el.id == 27||el.id == 28||el.id == 29) {
|
||||||
//天窗
|
//通风窗
|
||||||
var statusData = { name: el.name, type:15, id: el.id, open: res.data.data[(1102 + ((el.id - 26)*2))], progress: res.data.data[(1104 + ((el.id - 26)*2))], index: res.data.data[(1103 + ((el.id - 26)*2))] }
|
var statusData = { name: el.name, type:15, id: el.id, open: res.data.data[(1102 + ((el.id - 26)*2))], progress: res.data.data[(1104 + ((el.id - 26)*2))], index: res.data.data[(1103 + ((el.id - 26)*2))] }
|
||||||
statusList.push(statusData)
|
statusList.push(statusData)
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="sunroofControl">
|
<div class="sunroofControl">
|
||||||
<div class="table-title">
|
<div class="table-title">
|
||||||
<img src="../../assets/img/sunroofControl.png" alt="">天窗{{indexs}}
|
<img src="../../assets/img/sunroofControl.png" alt="">通风窗{{indexs}}
|
||||||
<div @click="changeOpen(0)" class="flex-view border-none">
|
<div @click="changeOpen(0)" class="flex-view border-none">
|
||||||
<div :class="inputData[startList[indexs-1]] == 0 ? 'sel' : 'no-sel'"></div>
|
<div :class="inputData[startList[indexs-1]] == 0 ? 'sel' : 'no-sel'"></div>
|
||||||
有效性
|
有效性
|
||||||
|
@ -63,7 +63,7 @@
|
||||||
<div>3</div>
|
<div>3</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="input-main input-main-w260">
|
<div class="input-main input-main-w260">
|
||||||
<div>天窗分阶段全部打开次数</div>
|
<div>通风窗分阶段全部打开次数</div>
|
||||||
<input @blur="blurChange(startList[indexs-1]+4, $event)" v-model="inputData[startList[indexs-1]+4]" @input="change(startList[indexs-1]+4, $event)"
|
<input @blur="blurChange(startList[indexs-1]+4, $event)" v-model="inputData[startList[indexs-1]+4]" @input="change(startList[indexs-1]+4, $event)"
|
||||||
type="text" placeholder="0">
|
type="text" placeholder="0">
|
||||||
</div>
|
</div>
|
||||||
|
@ -73,7 +73,7 @@
|
||||||
<div>4</div>
|
<div>4</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="input-main input-main-w260">
|
<div class="input-main input-main-w260">
|
||||||
<div>风机运行时,天窗打开角度</div>
|
<div>风机运行时,通风窗打开角度</div>
|
||||||
<input @blur="blurChange(startList[indexs-1]+2, $event)" v-model="inputData[startList[indexs-1]+2]" @input="change(startList[indexs-1]+2, $event)"
|
<input @blur="blurChange(startList[indexs-1]+2, $event)" v-model="inputData[startList[indexs-1]+2]" @input="change(startList[indexs-1]+2, $event)"
|
||||||
type="text" placeholder="0">
|
type="text" placeholder="0">
|
||||||
</div>
|
</div>
|
||||||
|
@ -88,7 +88,7 @@
|
||||||
<span>室外温度低于</span>
|
<span>室外温度低于</span>
|
||||||
<input @blur="blurChangeCount(startList[indexs-1]+8, $event)" v-model="inputData[startList[indexs-1]+8]" @input="changeCountData(startList[indexs-1]+8, $event)"
|
<input @blur="blurChangeCount(startList[indexs-1]+8, $event)" v-model="inputData[startList[indexs-1]+8]" @input="changeCountData(startList[indexs-1]+8, $event)"
|
||||||
type="text" placeholder="0">
|
type="text" placeholder="0">
|
||||||
<span>度禁止开启天窗。</span>
|
<span>度禁止开启通风窗。</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-view padding-none">
|
<div class="flex-view padding-none">
|
||||||
|
@ -101,7 +101,7 @@
|
||||||
<span>风速大于</span>
|
<span>风速大于</span>
|
||||||
<input @blur="blurChange10(startList[indexs-1]+13, $event)" v-model="inputData[startList[indexs-1]+13]" @input="changeCount10(startList[indexs-1]+13, $event)"
|
<input @blur="blurChange10(startList[indexs-1]+13, $event)" v-model="inputData[startList[indexs-1]+13]" @input="changeCount10(startList[indexs-1]+13, $event)"
|
||||||
type="text" placeholder="0">
|
type="text" placeholder="0">
|
||||||
<span>时,关闭天窗。大风保护解除时间</span>
|
<span>时,关闭通风窗。大风保护解除时间</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="input-main input-main-w80">
|
<div class="input-main input-main-w80">
|
||||||
<input @blur="blurChange(startList[indexs-1]+14, $event)" v-model="inputData[startList[indexs-1]+14]" @input="change(startList[indexs-1]+14, $event)"
|
<input @blur="blurChange(startList[indexs-1]+14, $event)" v-model="inputData[startList[indexs-1]+14]" @input="change(startList[indexs-1]+14, $event)"
|
||||||
|
@ -116,7 +116,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="input-main input-main-w120">
|
<div class="input-main input-main-w120">
|
||||||
<span>开启天窗除湿功能;</span>
|
<span>开启通风窗除湿功能;</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-view border-none ">
|
<div class="flex-view border-none ">
|
||||||
|
@ -144,7 +144,7 @@
|
||||||
<span>湿度控制精度</span>
|
<span>湿度控制精度</span>
|
||||||
<input @blur="blurChange10(startList[indexs-1]+9, $event)" v-model="inputData[startList[indexs-1]+9]" @input="changeCount10(startList[indexs-1]+9, $event)"
|
<input @blur="blurChange10(startList[indexs-1]+9, $event)" v-model="inputData[startList[indexs-1]+9]" @input="changeCount10(startList[indexs-1]+9, $event)"
|
||||||
type="text" placeholder="0">
|
type="text" placeholder="0">
|
||||||
<span>天窗除湿时开启角度</span>
|
<span>通风窗除湿时开启角度</span>
|
||||||
<input @blur="blurChange(startList[indexs-1]+12, $event)" v-model="inputData[startList[indexs-1]+12]" @input="change(startList[indexs-1]+12, $event)"
|
<input @blur="blurChange(startList[indexs-1]+12, $event)" v-model="inputData[startList[indexs-1]+12]" @input="change(startList[indexs-1]+12, $event)"
|
||||||
type="text" placeholder="0">
|
type="text" placeholder="0">
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -113,7 +113,7 @@
|
||||||
<span>实测温度大于目标温度</span>
|
<span>实测温度大于目标温度</span>
|
||||||
<input @blur="blurChange10(21960, $event)" v-model="inputData[21960]" @input="changeCount10(21960, $event)"
|
<input @blur="blurChange10(21960, $event)" v-model="inputData[21960]" @input="changeCount10(21960, $event)"
|
||||||
type="text" placeholder="0">
|
type="text" placeholder="0">
|
||||||
<span>时,跳过天窗直接启动风机。</span>
|
<span>时,跳过通风窗直接启动风机。</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-view border-none shrink-none padding-none">
|
<div class="flex-view border-none shrink-none padding-none">
|
||||||
|
|
Loading…
Reference in New Issue