Compare commits

..

No commits in common. "715caa9f0e597b3a0c1fae65a7c7d6c67aeedb3e" and "e7c61eb23b8edad8e94885b4b84c0fba24041ac1" have entirely different histories.

2 changed files with 97 additions and 220 deletions

View File

@ -85,60 +85,10 @@
</div>
</div>
<div class="input-main-80">
<span>光照大于</span>
<input @blur="blurChange10(21403, $event)" v-model="inputData[21403]"
@input="changeCount10(21403, $event)" type="text" placeholder="0">
<span>(KLux)禁止启用补光灯 </span>
</div>
</div>
<div class="flex-view padding-none border-none shrink-none">
<div class="input-btn">
<div class="btn btn-w80" @click="changeIndexOpen2(4)" :class="actList3[4] == '1' ? 'blue' : 'off'">
{{ actList3[4] == '1' ? '有效' : '无效' }}
</div>
</div>
<div class="input-main-80">
<span>光照低限条件启用</span>
</div>
</div>
<div class="flex-view padding-none shrink-none border-none">
<div class="input-main-80">
<span></span> <span></span> <span></span> <span></span> <span></span>
<span>光照小于</span>
<input @blur="blurChange10(21425, $event)" v-model="inputData[21425]"
@input="changeCount10(21425, $event)" type="text" placeholder="0">
<span>开启补光灯</span>
</div>
<div class="input-main-80">
<span>光照大于</span>
<input @blur="blurChange10(21426, $event)" v-model="inputData[21426]"
@input="changeCount10(21426, $event)" type="text" placeholder="0">
<span>停止补光灯</span>
</div>
</div>
<div class="flex-view padding-none shrink-none">
<div class="input-sel input-sel-w180">
<span></span> <span></span> <span></span> <span></span> <span></span>
<span>光照来源选择</span>
<el-dropdown @command="handleCommand1($event, 21427)">
<div class="el-dropdown-link">
<input v-model="inputDataNew[21427]" 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>
<span>光照确定时间</span>
<input @blur="blurChange(21428, $event)" v-model="inputData[21428]" @input="change(21428, $event)"
<span>室外光照大于</span>
<input @blur="blurChange10(21403, $event)" v-model="inputData[21403]" @input="changeCount10(21403, $event)"
type="text" placeholder="0">
<span>分钟</span>
<span>(KLux)禁止启用补光灯 </span>
</div>
</div>
<div class="flex-view padding-none shrink-none">
@ -149,30 +99,20 @@
<span>秒顺序启动防止同时启动瞬间功率过大</span>
</div>
</div>
<div class="text-tips flex-view padding-none shrink-none border-none">时段1
<div class="input-main-80">
<span></span>
<span>光照低限条件</span>
<div class="input-btn">
<div class="btn btn-w80" @click="changeIndexOpen2(5)" :class="actList3[5] == '1' ? 'blue' : 'off'">
{{ actList3[5] == '1' ? '有效' : '无效' }}
</div>
</div>
</div>
</div>
<div class="text-tips">时段1</div>
<div class="flex-view border-none padding-none shrink-none">
<div class="input-main-80">
<input @blur="blurChange(startList[0] - 4, $event)" v-model="inputData[startList[0] - 4]"
@input="change(startList[0] - 4, $event)" type="text" placeholder="0">
<input @blur="blurChange(startList[0]-4, $event)" v-model="inputData[startList[0]-4]" @input="change(startList[0]-4, $event)"
type="text" placeholder="0">
<span>:</span>
<input @blur="blurChange(startList[0] - 3, $event)" v-model="inputData[startList[0] - 3]"
@input="change(startList[0] - 3, $event)" type="text" placeholder="0">
<input @blur="blurChange(startList[0]-3, $event)" v-model="inputData[startList[0]-3]" @input="change(startList[0]-3, $event)"
type="text" placeholder="0">
<span>-</span>
<input @blur="blurChange(startList[0] - 2, $event)" v-model="inputData[startList[0] - 2]"
@input="change(startList[0] - 2, $event)" type="text" placeholder="0">
<input @blur="blurChange(startList[0]-2, $event)" v-model="inputData[startList[0]-2]" @input="change(startList[0]-2, $event)"
type="text" placeholder="0">
<span>:</span>
<input @blur="blurChange(startList[0] - 1, $event)" v-model="inputData[startList[0] - 1]"
@input="change(startList[0] - 1, $event)" type="text" placeholder="0">
<input @blur="blurChange(startList[0]-1, $event)" v-model="inputData[startList[0]-1]" @input="change(startList[0]-1, $event)"
type="text" placeholder="0">
</div>
</div>
<div class="flex-view">
@ -204,30 +144,20 @@
</div>
</div>
<div class="text-tips flex-view padding-none shrink-none border-none">时段2
<div class="input-main-80">
<span></span>
<span>光照低限条件</span>
<div class="input-btn">
<div class="btn btn-w80" @click="changeIndexOpen2(6)" :class="actList3[6] == '1' ? 'blue' : 'off'">
{{ actList3[6] == '1' ? '有效' : '无效' }}
</div>
</div>
</div>
</div>
<div class="text-tips">时段2</div>
<div class="flex-view border-none padding-none shrink-none">
<div class="input-main-80">
<input @blur="blurChange(startList[1] - 4, $event)" v-model="inputData[startList[1] - 4]"
@input="change(startList[1] - 4, $event)" type="text" placeholder="0">
<input @blur="blurChange(startList[1]-4, $event)" v-model="inputData[startList[1]-4]" @input="change(startList[1]-4, $event)"
type="text" placeholder="0">
<span>:</span>
<input @blur="blurChange(startList[1] - 3, $event)" v-model="inputData[startList[1] - 3]"
@input="change(startList[1] - 3, $event)" type="text" placeholder="0">
<input @blur="blurChange(startList[1]-3, $event)" v-model="inputData[startList[1]-3]" @input="change(startList[1]-3, $event)"
type="text" placeholder="0">
<span>-</span>
<input @blur="blurChange(startList[1] - 2, $event)" v-model="inputData[startList[1] - 2]"
@input="change(startList[1] - 2, $event)" type="text" placeholder="0">
<input @blur="blurChange(startList[1]-2, $event)" v-model="inputData[startList[1]-2]" @input="change(startList[1]-2, $event)"
type="text" placeholder="0">
<span>:</span>
<input @blur="blurChange(startList[1] - 1, $event)" v-model="inputData[startList[1] - 1]"
@input="change(startList[1] - 1, $event)" type="text" placeholder="0">
<input @blur="blurChange(startList[1]-1, $event)" v-model="inputData[startList[1]-1]" @input="change(startList[1]-1, $event)"
type="text" placeholder="0">
</div>
</div>
<div class="flex-view">
@ -260,31 +190,20 @@
</div>
<div class="text-tips flex-view padding-none shrink-none border-none">时段3
<div class="input-main-80">
<span></span>
<span>光照低限条件</span>
<div class="input-btn">
<div class="btn btn-w80" @click="changeIndexOpen2(7)" :class="actList3[7] == '1' ? 'blue' : 'off'">
{{ actList3[7] == '1' ? '有效' : '无效' }}
</div>
</div>
</div>
</div>
<div class="text-tips">时段3</div>
<div class="flex-view border-none padding-none shrink-none">
<div class="input-main-80">
<input @blur="blurChange(startList[2] - 4, $event)" v-model="inputData[startList[2] - 4]"
@input="change(startList[3] - 4, $event)" type="text" placeholder="0">
<input @blur="blurChange(startList[2]-4, $event)" v-model="inputData[startList[2]-4]" @input="change(startList[3]-4, $event)"
type="text" placeholder="0">
<span>:</span>
<input @blur="blurChange(startList[2] - 3, $event)" v-model="inputData[startList[2] - 3]"
@input="change(startList[3] - 3, $event)" type="text" placeholder="0">
<input @blur="blurChange(startList[2]-3, $event)" v-model="inputData[startList[2]-3]" @input="change(startList[3]-3, $event)"
type="text" placeholder="0">
<span>-</span>
<input @blur="blurChange(startList[2] - 2, $event)" v-model="inputData[startList[2] - 2]"
@input="change(startList[3] - 2, $event)" type="text" placeholder="0">
<input @blur="blurChange(startList[2]-2, $event)" v-model="inputData[startList[2]-2]" @input="change(startList[3]-2, $event)"
type="text" placeholder="0">
<span>:</span>
<input @blur="blurChange(startList[2] - 1, $event)" v-model="inputData[startList[2] - 1]"
@input="change(startList[3] - 1, $event)" type="text" placeholder="0">
<input @blur="blurChange(startList[2]-1, $event)" v-model="inputData[startList[2]-1]" @input="change(startList[3]-1, $event)"
type="text" placeholder="0">
</div>
</div>
<div class="flex-view">
@ -317,30 +236,20 @@
</div>
<div class="text-tips flex-view padding-none shrink-none border-none">时段4
<div class="input-main-80">
<span></span>
<span>光照低限条件</span>
<div class="input-btn">
<div class="btn btn-w80" @click="changeIndexOpen2(8)" :class="actList3[8] == '1' ? 'blue' : 'off'">
{{ actList3[8] == '1' ? '有效' : '无效' }}
</div>
</div>
</div>
</div>
<div class="text-tips">时段4</div>
<div class="flex-view border-none padding-none shrink-none">
<div class="input-main-80">
<input @blur="blurChange(startList[3] - 4, $event)" v-model="inputData[startList[3] - 4]"
@input="change(startList[3] - 4, $event)" type="text" placeholder="0">
<input @blur="blurChange(startList[3]-4, $event)" v-model="inputData[startList[3]-4]" @input="change(startList[3]-4, $event)"
type="text" placeholder="0">
<span>:</span>
<input @blur="blurChange(startList[3] - 3, $event)" v-model="inputData[startList[3] - 3]"
@input="change(startList[3] - 3, $event)" type="text" placeholder="0">
<input @blur="blurChange(startList[3]-3, $event)" v-model="inputData[startList[3]-3]" @input="change(startList[3]-3, $event)"
type="text" placeholder="0">
<span>-</span>
<input @blur="blurChange(startList[3] - 2, $event)" v-model="inputData[startList[3] - 2]"
@input="change(startList[3] - 2, $event)" type="text" placeholder="0">
<input @blur="blurChange(startList[3]-2, $event)" v-model="inputData[startList[3]-2]" @input="change(startList[3]-2, $event)"
type="text" placeholder="0">
<span>:</span>
<input @blur="blurChange(startList[3] - 1, $event)" v-model="inputData[startList[3] - 1]"
@input="change(startList[3] - 1, $event)" type="text" placeholder="0">
<input @blur="blurChange(startList[3]-1, $event)" v-model="inputData[startList[3]-1]" @input="change(startList[3]-1, $event)"
type="text" placeholder="0">
</div>
</div>
<div class="flex-view border-none">
@ -378,7 +287,6 @@ export default {
data() {
return {
inputData: [],
inputDataNew: [],
indexs: 1,
actList1: [],
actList12: [],
@ -388,11 +296,7 @@ export default {
actList3: [],
startList:[21408,21413,21418,21423],
loading:null,
pageName: '补光灯',
typeList1: [
{ label: "室外光照", value: 0 },
{ label: "室内光照", value: 1 },
],
pageName:'补光灯'
}
},
watch: {
@ -495,29 +399,6 @@ export default {
}
this.change(code, sendData)
},
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);
},
//
changeIndexOpen(active) {
if (this.actList1[active] == '1') {
@ -673,7 +554,7 @@ export default {
this.actList3 = []
var num = this.inputData[21402]
var num1 = this.padString(num.toString(2), 9)
var num1 = this.padString(num.toString(2), 4)
var openListNew = []
openListNew = num1.split("")
this.actList3 = openListNew.reverse();
@ -703,7 +584,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.getActive1()
this.getActive12()
this.getActive13()
@ -711,9 +591,6 @@ export default {
this.getActive2()
this.getActive3()
this.inputData[21403] =this.countData10(this.inputData[21403]);
this.inputData[21425] = this.countData10(this.inputData[21425]);
this.inputData[21426] = this.countData10(this.inputData[21426]);
this.inputDataNew[21427] = this.getData1(this.inputData[21427]);
}
})
},
@ -821,3 +698,4 @@ export default {
}
</script>
<style lang="scss"></style>

View File

@ -42,7 +42,6 @@ module.exports = {
proxy: {
"/api": {
target: 'https://api.lihe-control.com', //地址
// target: 'http://jiaxingtest.a1.luyouxia.net:21114', //地址
changeOrigin: true,
pathRewrite: {
"^/api": "",