796 lines
39 KiB
Vue
796 lines
39 KiB
Vue
<template>
|
||
<div class="intrinsicParameter">
|
||
<div class="table-title">
|
||
<img src="../../assets/img/intrinsicParameter.png" alt="">设备固有参数
|
||
</div>
|
||
<div class="flex-view border-none shrink-none padding-none">
|
||
<div class="input-sel input-sel-w180">
|
||
<span>1#电磁阀自控传感器选择</span>
|
||
<el-dropdown @command="handleCommand($event,20650)">
|
||
<div class="el-dropdown-link">
|
||
<input v-model="inputDataNew[20650]" 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(20651, $event)" v-model="inputData[20651]" @input="change(20651, $event)"
|
||
type="text" placeholder="0">
|
||
</div>
|
||
<div class="input-sel input-sel-w180">
|
||
<span>2#电磁阀自控传感器选择</span>
|
||
<el-dropdown @command="handleCommand($event,20652)">
|
||
<div class="el-dropdown-link">
|
||
<input v-model="inputDataNew[20652]" 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(20653, $event)" v-model="inputData[20653]" @input="change(20653, $event)"
|
||
type="text" placeholder="0">
|
||
</div>
|
||
</div>
|
||
<div class="flex-view border-none shrink-none padding-none">
|
||
<div class="input-sel input-sel-w180">
|
||
<span>3#电磁阀自控传感器选择</span>
|
||
<el-dropdown @command="handleCommand($event,20654)">
|
||
<div class="el-dropdown-link">
|
||
<input v-model="inputDataNew[20654]" 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(20655, $event)" v-model="inputData[20655]" @input="change(20655, $event)"
|
||
type="text" placeholder="0">
|
||
</div>
|
||
<div class="input-sel input-sel-w180">
|
||
<span>4#电磁阀自控传感器选择</span>
|
||
<el-dropdown @command="handleCommand($event,20656)">
|
||
<div class="el-dropdown-link">
|
||
<input v-model="inputDataNew[20656]" 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(20657, $event)" v-model="inputData[20657]" @input="change(20657, $event)"
|
||
type="text" placeholder="0">
|
||
</div>
|
||
</div>
|
||
<div class="flex-view border-none shrink-none padding-none">
|
||
<div class="input-sel input-sel-w180">
|
||
<span>5#电磁阀自控传感器选择</span>
|
||
<el-dropdown @command="handleCommand($event,20658)">
|
||
<div class="el-dropdown-link">
|
||
<input v-model="inputDataNew[20658]" 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(20659, $event)" v-model="inputData[20659]" @input="change(20659, $event)"
|
||
type="text" placeholder="0">
|
||
</div>
|
||
<div class="input-sel input-sel-w180">
|
||
<span>6#电磁阀自控传感器选择</span>
|
||
<el-dropdown @command="handleCommand($event,20660)">
|
||
<div class="el-dropdown-link">
|
||
<input v-model="inputDataNew[20660]" 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(20661, $event)" v-model="inputData[20661]" @input="change(20661, $event)"
|
||
type="text" placeholder="0">
|
||
</div>
|
||
</div>
|
||
<div class="flex-view shrink-none padding-none">
|
||
<div class="input-sel input-sel-w180">
|
||
<span>7#电磁阀自控传感器选择</span>
|
||
<el-dropdown @command="handleCommand($event,20662)">
|
||
<div class="el-dropdown-link">
|
||
<input v-model="inputDataNew[20662]" 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(20663, $event)" v-model="inputData[20663]" @input="change(20663, $event)"
|
||
type="text" placeholder="0">
|
||
</div>
|
||
<div class="input-sel input-sel-w180">
|
||
<span>8#电磁阀自控传感器选择</span>
|
||
<el-dropdown @command="handleCommand($event,20664)">
|
||
<div class="el-dropdown-link">
|
||
<input v-model="inputDataNew[20664]" 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(20665, $event)" v-model="inputData[20665]" @input="change(20665, $event)"
|
||
type="text" placeholder="0">
|
||
</div>
|
||
</div>
|
||
<div class="flex-view border-none shrink-none padding-none">
|
||
<div class="input-main-80">
|
||
<span>湿帘水泵1-2组输出通道:</span>
|
||
<input @blur="blurChange(20724, $event)" v-model="inputData[20724]" @input="change(20724, $event)"
|
||
type="text" placeholder="0">
|
||
<input @blur="blurChange(20725, $event)" v-model="inputData[20725]" @input="change(20725, $event)"
|
||
type="text" placeholder="0">
|
||
</div>
|
||
</div>
|
||
<div class="flex-view border-none shrink-none padding-none">
|
||
<div class="input-main-80">
|
||
<span>环流风扇1-2组输出通道:</span>
|
||
<input @blur="blurChange(20722, $event)" v-model="inputData[20722]" @input="change(20722, $event)"
|
||
type="text" placeholder="0">
|
||
<input @blur="blurChange(20723, $event)" v-model="inputData[20723]" @input="change(20723, $event)"
|
||
type="text" placeholder="0">
|
||
</div>
|
||
</div>
|
||
<div class="flex-view border-none shrink-none padding-none">
|
||
<div class="input-main-80">
|
||
<span>高压微雾1-2组输出通道:</span>
|
||
<input @blur="blurChange(20720, $event)" v-model="inputData[20720]" @input="change(20720, $event)"
|
||
type="text" placeholder="0">
|
||
<input @blur="blurChange(20721, $event)" v-model="inputData[20721]" @input="change(20721, $event)"
|
||
type="text" placeholder="0">
|
||
</div>
|
||
</div>
|
||
<div class="flex-view border-none shrink-none padding-none">
|
||
<div class="input-main-80">
|
||
<span> CO2补气1-2输出通道:</span>
|
||
<input @blur="blurChange(20731, $event)" v-model="inputData[20731]" @input="change(20731, $event)"
|
||
type="text" placeholder="0">
|
||
<input @blur="blurChange(20732, $event)" v-model="inputData[20732]" @input="change(20732, $event)"
|
||
type="text" placeholder="0">
|
||
</div>
|
||
</div>
|
||
<div class="flex-view border-none shrink-none padding-none">
|
||
<div class="input-main-80">
|
||
<span>冷暖风机1-2组输出通道:</span>
|
||
<input @blur="blurChange(20727, $event)" v-model="inputData[20727]" @input="change(20727, $event)"
|
||
type="text" placeholder="0">
|
||
<input @blur="blurChange(20728, $event)" v-model="inputData[20728]" @input="change(20728, $event)"
|
||
type="text" placeholder="0">
|
||
<input @blur="blurChange(20729, $event)" v-model="inputData[20729]" @input="change(20729, $event)"
|
||
type="text" placeholder="0">
|
||
<input @blur="blurChange(20730, $event)" v-model="inputData[20730]" @input="change(20730, $event)"
|
||
type="text" placeholder="0">
|
||
</div>
|
||
<div class="input-sel input-sel-w180">
|
||
<span>模式选择</span>
|
||
<el-dropdown @command="handleCommand1($event,20726)">
|
||
<div class="el-dropdown-link">
|
||
<input v-model="inputDataNew[20726]" 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 typeList3" :key="index" :command="item.value">{{
|
||
item.label }}</el-dropdown-item>
|
||
</el-dropdown-menu>
|
||
</el-dropdown>
|
||
</div>
|
||
</div>
|
||
<!-- <div class="flex-view border-none shrink-none padding-none">
|
||
<div class="input-main-80">
|
||
<span>CO2补气1-2组输出通道:</span>
|
||
<input type="text" placeholder="0">
|
||
<input type="text" placeholder="0">
|
||
</div>
|
||
</div> -->
|
||
<div class="flex-view border-none shrink-none padding-none">
|
||
<div class="input-main-80">
|
||
<span>轴流风机1-5组输出通道:</span>
|
||
<input @blur="blurChange(20707, $event)" v-model="inputData[20707]" @input="change(20707, $event)"
|
||
type="text" placeholder="0">
|
||
<input @blur="blurChange(20708, $event)" v-model="inputData[20708]" @input="change(20708, $event)"
|
||
type="text" placeholder="0">
|
||
<input @blur="blurChange(20709, $event)" v-model="inputData[20709]" @input="change(20709, $event)"
|
||
type="text" placeholder="0">
|
||
<input @blur="blurChange(20710, $event)" v-model="inputData[20710]" @input="change(20710, $event)"
|
||
type="text" placeholder="0">
|
||
<input @blur="blurChange(20711, $event)" v-model="inputData[20711]" @input="change(20711, $event)"
|
||
type="text" placeholder="0">
|
||
</div>
|
||
</div>
|
||
<div class="flex-view shrink-none padding-none">
|
||
<div class="input-main-80">
|
||
<span> 补光灯1-8组输出通道:</span>
|
||
<input @blur="blurChange(20712, $event)" v-model="inputData[20712]" @input="change(20712, $event)"
|
||
type="text" placeholder="0">
|
||
<input @blur="blurChange(20713, $event)" v-model="inputData[20713]" @input="change(20713, $event)"
|
||
type="text" placeholder="0">
|
||
<input @blur="blurChange(20714, $event)" v-model="inputData[20714]" @input="change(20714, $event)"
|
||
type="text" placeholder="0">
|
||
<input @blur="blurChange(20715, $event)" v-model="inputData[20715]" @input="change(20715, $event)"
|
||
type="text" placeholder="0">
|
||
<input @blur="blurChange(20716, $event)" v-model="inputData[20716]" @input="change(20716, $event)"
|
||
type="text" placeholder="0">
|
||
<input @blur="blurChange(20717, $event)" v-model="inputData[20717]" @input="change(20717, $event)"
|
||
type="text" placeholder="0">
|
||
<input @blur="blurChange(20718, $event)" v-model="inputData[20718]" @input="change(20718, $event)"
|
||
type="text" placeholder="0">
|
||
<input @blur="blurChange(20719, $event)" v-model="inputData[20719]" @input="change(20719, $event)"
|
||
type="text" placeholder="0">
|
||
</div>
|
||
</div>
|
||
|
||
<div class="flex-view border-none shrink-none padding-none">
|
||
<div class="input-main-80">
|
||
<span>1#通风窗全程运行时间</span>
|
||
<input @blur="blurChange(20667, $event)" v-model="inputData[20667]" @input="change(20667, $event)"
|
||
type="text" placeholder="0">
|
||
<span>打开输出通道:</span>
|
||
<input @blur="blurChange(20669, $event)" v-model="inputData[20669]" @input="change(20669, $event)"
|
||
type="text" placeholder="0">
|
||
<span>关闭输出通道:</span>
|
||
<input @blur="blurChange(20670, $event)" v-model="inputData[20670]" @input="change(20670, $event)"
|
||
type="text" placeholder="0">
|
||
</div>
|
||
<div class="input-sel input-sel-w180">
|
||
<span>通风窗朝向</span>
|
||
<el-dropdown @command="handleCommand2($event,20668)">
|
||
<div class="el-dropdown-link">
|
||
<input v-model="inputDataNew[20668]" 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 typeList2" :key="index" :command="item.value">{{
|
||
item.label }}</el-dropdown-item>
|
||
</el-dropdown-menu>
|
||
</el-dropdown>
|
||
</div>
|
||
</div>
|
||
<div class="flex-view border-none shrink-none padding-none">
|
||
<div class="input-main-80">
|
||
<span>2#通风窗全程运行时间</span>
|
||
<input @blur="blurChange(20671, $event)" v-model="inputData[20671]" @input="change(20671, $event)"
|
||
type="text" placeholder="0">
|
||
<span>打开输出通道:</span>
|
||
<input @blur="blurChange(20673, $event)" v-model="inputData[20673]" @input="change(20673, $event)"
|
||
type="text" placeholder="0">
|
||
<span>关闭输出通道:</span>
|
||
<input @blur="blurChange(20674, $event)" v-model="inputData[20674]" @input="change(20674, $event)"
|
||
type="text" placeholder="0">
|
||
</div>
|
||
<div class="input-sel input-sel-w180">
|
||
<span>通风窗朝向</span>
|
||
<el-dropdown @command="handleCommand2($event,20672)">
|
||
<div class="el-dropdown-link">
|
||
<input v-model="inputDataNew[20672]" 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 typeList2" :key="index" :command="item.value">{{
|
||
item.label }}</el-dropdown-item>
|
||
</el-dropdown-menu>
|
||
</el-dropdown>
|
||
</div>
|
||
</div>
|
||
<div class="flex-view border-none shrink-none padding-none">
|
||
<div class="input-main-80">
|
||
<span>3#通风窗全程运行时间</span>
|
||
<input @blur="blurChange(20675, $event)" v-model="inputData[20675]" @input="change(20675, $event)"
|
||
type="text" placeholder="0">
|
||
<span>打开输出通道:</span>
|
||
<input @blur="blurChange(20677, $event)" v-model="inputData[20677]" @input="change(20677, $event)"
|
||
type="text" placeholder="0">
|
||
<span>关闭输出通道:</span>
|
||
<input @blur="blurChange(20678, $event)" v-model="inputData[20678]" @input="change(20678, $event)"
|
||
type="text" placeholder="0">
|
||
</div>
|
||
<div class="input-sel input-sel-w180">
|
||
<span>通风窗朝向</span>
|
||
<el-dropdown @command="handleCommand2($event,20676)">
|
||
<div class="el-dropdown-link">
|
||
<input v-model="inputDataNew[20676]" 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 typeList2" :key="index" :command="item.value">{{
|
||
item.label }}</el-dropdown-item>
|
||
</el-dropdown-menu>
|
||
</el-dropdown>
|
||
</div>
|
||
</div>
|
||
<div class="flex-view shrink-none padding-none">
|
||
<div class="input-main-80">
|
||
<span>4#通风窗全程运行时间</span>
|
||
<input @blur="blurChange(20679, $event)" v-model="inputData[20679]" @input="change(20679, $event)"
|
||
type="text" placeholder="0">
|
||
<span>打开输出通道:</span>
|
||
<input @blur="blurChange(20681, $event)" v-model="inputData[20681]" @input="change(20681, $event)"
|
||
type="text" placeholder="0">
|
||
<span>关闭输出通道:</span>
|
||
<input @blur="blurChange(20682, $event)" v-model="inputData[20682]" @input="change(20682, $event)"
|
||
type="text" placeholder="0">
|
||
</div>
|
||
<div class="input-sel input-sel-w180">
|
||
<span>通风窗朝向</span>
|
||
<el-dropdown @command="handleCommand2($event,20680)">
|
||
<div class="el-dropdown-link">
|
||
<input v-model="inputDataNew[20680]" 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 typeList2" :key="index" :command="item.value">{{
|
||
item.label }}</el-dropdown-item>
|
||
</el-dropdown-menu>
|
||
</el-dropdown>
|
||
</div>
|
||
</div>
|
||
<div class="flex-view shrink-none padding-none">
|
||
<div class="input-main-80">
|
||
<span>所有设备的行程保护时间</span>
|
||
<input @blur="blurChange(20666, $event)" v-model="inputData[20666]" @input="change(20666, $event)"
|
||
type="text" placeholder="0">
|
||
</div>
|
||
</div>
|
||
<div class="title-tips-bold">设备位置</div>
|
||
<div class="flex-view shrink-none padding-none">
|
||
<div class="input-main-80">
|
||
<span>经度</span>
|
||
<input @blur="blurChange10(20896, $event)" v-model="inputData[20896]" @input="changeCount10(20896, $event)"
|
||
type="text" placeholder="0">
|
||
<span>维度</span>
|
||
<input @blur="blurChange10(20897, $event)" v-model="inputData[20897]" @input="changeCount10(20897, $event)"
|
||
type="text" placeholder="0">
|
||
</div>
|
||
</div>
|
||
|
||
<div class="flex-view border-none shrink-none padding-none">
|
||
<div class="input-main-80">
|
||
<span>1#内遮阳全程运行时间</span>
|
||
<input @blur="blurChange(20683, $event)" v-model="inputData[20683]" @input="change(20683, $event)"
|
||
type="text" placeholder="0">
|
||
<span>打开输出通道:</span>
|
||
<input @blur="blurChange(20684, $event)" v-model="inputData[20684]" @input="change(20684, $event)"
|
||
type="text" placeholder="0">
|
||
<span>关闭输出通道:</span>
|
||
<input @blur="blurChange(20685, $event)" v-model="inputData[20685]" @input="change(20685, $event)"
|
||
type="text" placeholder="0">
|
||
</div>
|
||
</div>
|
||
|
||
<div class="flex-view border-none shrink-none padding-none">
|
||
<div class="input-main-80">
|
||
<span>2#内遮阳全程运行时间</span>
|
||
<input @blur="blurChange(20686, $event)" v-model="inputData[20686]" @input="change(20686, $event)"
|
||
type="text" placeholder="0">
|
||
<span>打开输出通道:</span>
|
||
<input @blur="blurChange(20687, $event)" v-model="inputData[20687]" @input="change(20687, $event)"
|
||
type="text" placeholder="0">
|
||
<span>关闭输出通道:</span>
|
||
<input @blur="blurChange(20688, $event)" v-model="inputData[20688]" @input="change(20688, $event)"
|
||
type="text" placeholder="0">
|
||
</div>
|
||
</div>
|
||
<div class="flex-view border-none shrink-none padding-none">
|
||
<div class="input-main-80">
|
||
<span>1#外遮阳全程运行时间</span>
|
||
<input @blur="blurChange(20689, $event)" v-model="inputData[20689]" @input="change(20689, $event)"
|
||
type="text" placeholder="0">
|
||
<span>打开输出通道:</span>
|
||
<input @blur="blurChange(20690, $event)" v-model="inputData[20690]" @input="change(20690, $event)"
|
||
type="text" placeholder="0">
|
||
<span>关闭输出通道:</span>
|
||
<input @blur="blurChange(20691, $event)" v-model="inputData[20691]" @input="change(20691, $event)"
|
||
type="text" placeholder="0">
|
||
</div>
|
||
</div>
|
||
|
||
<div class="flex-view border-none shrink-none padding-none">
|
||
<div class="input-main-80">
|
||
<span>2#外遮阳全程运行时间</span>
|
||
<input @blur="blurChange(20692, $event)" v-model="inputData[20692]" @input="change(20692, $event)"
|
||
type="text" placeholder="0">
|
||
<span>打开输出通道:</span>
|
||
<input @blur="blurChange(20693, $event)" v-model="inputData[20693]" @input="change(20693, $event)"
|
||
type="text" placeholder="0">
|
||
<span>关闭输出通道:</span>
|
||
<input @blur="blurChange(20694, $event)" v-model="inputData[20694]" @input="change(20694, $event)"
|
||
type="text" placeholder="0">
|
||
</div>
|
||
</div>
|
||
<div class="flex-view border-none shrink-none padding-none">
|
||
<div class="input-main-80">
|
||
<span>1#内保温全程运行时间</span>
|
||
<input @blur="blurChange(20695, $event)" v-model="inputData[20695]" @input="change(20695, $event)"
|
||
type="text" placeholder="0">
|
||
<span>打开输出通道:</span>
|
||
<input @blur="blurChange(20696, $event)" v-model="inputData[20696]" @input="change(20696, $event)"
|
||
type="text" placeholder="0">
|
||
<span>关闭输出通道:</span>
|
||
<input @blur="blurChange(20697, $event)" v-model="inputData[20697]" @input="change(20697, $event)"
|
||
type="text" placeholder="0">
|
||
</div>
|
||
</div>
|
||
<div class="flex-view border-none shrink-none padding-none">
|
||
<div class="input-main-80">
|
||
<span>2#内保温全程运行时间</span>
|
||
<input @blur="blurChange(20698, $event)" v-model="inputData[20698]" @input="change(20698, $event)"
|
||
type="text" placeholder="0">
|
||
<span>打开输出通道:</span>
|
||
<input @blur="blurChange(20699, $event)" v-model="inputData[20699]" @input="change(20699, $event)"
|
||
type="text" placeholder="0">
|
||
<span>关闭输出通道:</span>
|
||
<input @blur="blurChange(20700, $event)" v-model="inputData[20700]" @input="change(20700, $event)"
|
||
type="text" placeholder="0">
|
||
</div>
|
||
</div>
|
||
<div class="flex-view border-none shrink-none padding-none">
|
||
<div class="input-main-80">
|
||
<span>1#湿帘窗全程运行时间</span>
|
||
<input @blur="blurChange(20701, $event)" v-model="inputData[20701]" @input="change(20701, $event)"
|
||
type="text" placeholder="0">
|
||
<span>打开输出通道:</span>
|
||
<input @blur="blurChange(20702, $event)" v-model="inputData[20702]" @input="change(20702, $event)"
|
||
type="text" placeholder="0">
|
||
<span>关闭输出通道:</span>
|
||
<input @blur="blurChange(20703, $event)" v-model="inputData[20703]" @input="change(20703, $event)"
|
||
type="text" placeholder="0">
|
||
</div>
|
||
</div>
|
||
<div class="flex-view border-none shrink-none padding-none">
|
||
<div class="input-main-80">
|
||
<span>2#湿帘窗全程运行时间</span>
|
||
<input @blur="blurChange(20704, $event)" v-model="inputData[20704]" @input="change(20704, $event)"
|
||
type="text" placeholder="0">
|
||
<span>打开输出通道:</span>
|
||
<input @blur="blurChange(20705, $event)" v-model="inputData[20705]" @input="change(20705, $event)"
|
||
type="text" placeholder="0">
|
||
<span>关闭输出通道:</span>
|
||
<input @blur="blurChange(20706, $event)" v-model="inputData[20706]" @input="change(20706, $event)"
|
||
type="text" placeholder="0">
|
||
</div>
|
||
</div>
|
||
<el-dialog title="请输入密码" class="vrcode-model confirm-psw" top="30vh" :append-to-body="true" :visible.sync="warnModel"
|
||
width="700px">
|
||
<div class="vrcode-model-title vrcode-model-title-282">请输入密码</div>
|
||
<div class="warning-model" style="padding: 0 30px;">
|
||
<div class="flex-view border-none">
|
||
<div class="input-main">
|
||
<div>密码:</div>
|
||
<input type="text" v-model="modelPassword">
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<span slot="footer" class="dialog-footer">
|
||
<el-button type="primary" @click="modelClose">取 消</el-button>
|
||
<el-button type="success" @click="modelConfirm">确 认</el-button>
|
||
</span>
|
||
</el-dialog>
|
||
</div>
|
||
</template>
|
||
<script>
|
||
export default {
|
||
data() {
|
||
return {
|
||
warnModel: true,
|
||
modelPassword:'',
|
||
sensorType: '',
|
||
typeList1: [{ label: '平均1#土壤湿度', value: 0 },
|
||
{ label: '1#土壤湿度', value: 1 },
|
||
{ label: '2#土壤湿度', value: 2 },
|
||
{ label: '3#土壤湿度', value: 3 },
|
||
{ label: '4#土壤湿度', value: 4 },
|
||
{ label: '5#土壤湿度', value: 5 },
|
||
{ label: '6#土壤湿度', value: 6 },
|
||
{ label: '7#土壤湿度', value: 7 },
|
||
{ label: '8#土壤湿度', value: 8 },],
|
||
list1:[20650,20652,20654,20656,20658,20660,20662,20664],
|
||
typeList2: [
|
||
{ label: '东', value: 1 },
|
||
{ label: '西', value: 2 },
|
||
{ label: '南', value: 3 },
|
||
{ label: '北', value: 4 },
|
||
{ label: '东南', value: 5 },
|
||
{ label: '东北', value: 6 },
|
||
{ label: '西南', value: 7 },
|
||
{ label: '西北', value: 8 },],
|
||
list2:[20668,20672,20676,20680],
|
||
typeList3: [
|
||
{ label: '加热模式', value: 1 },
|
||
{ label: '制冷模式', value: 2 },],
|
||
inputData:[],
|
||
inputDataNew:[],
|
||
}
|
||
},
|
||
mounted() {
|
||
this.dataInit()
|
||
//input获取焦点后全选
|
||
let inputList = document.querySelectorAll('input');
|
||
for (let index = 0; index < inputList.length; index++) {
|
||
inputList[index].onfocus = this.selectValue;//input放入焦点,全选文本
|
||
}
|
||
},
|
||
methods: {
|
||
modelClose(){
|
||
this.$router.go(-1); // 返回前一页
|
||
},
|
||
modelConfirm(){
|
||
if(this.modelPassword=='230509'){
|
||
this.warnModel=false
|
||
}else{
|
||
this.$message('密码错误');
|
||
}
|
||
},
|
||
//失去焦点 计算公式 x/10
|
||
blurChange10(code, el) {
|
||
var store = this.$store.state
|
||
var data = {
|
||
equipmentId: store.equipmentList[store.equipmentIndex - 1].deviceId,
|
||
regAddress: code,
|
||
num: el.target.value * 10,
|
||
}; //避免开启多个计时器
|
||
if (store.nowInput != el.target.value) {
|
||
this.changeData(data);
|
||
}
|
||
// if (this.timer) {
|
||
// this.timer && clearInterval(this.timer);
|
||
// this.changeData(data);
|
||
// }
|
||
|
||
},
|
||
//反向计算 计算公式 x/10
|
||
changeCount10(code, el) {
|
||
var data = el.target.value * 10
|
||
var sendData = {
|
||
target: {
|
||
value: data
|
||
}
|
||
}
|
||
this.change(code, sendData)
|
||
},
|
||
// 计算展示值 计算公式 x/10
|
||
countData10(data) {
|
||
if (data) {
|
||
return data / 10
|
||
} else {
|
||
return 0
|
||
}
|
||
},
|
||
getData1(data) {
|
||
var name=''
|
||
this.typeList1.forEach((el, index) => {
|
||
if (el.value == data) {
|
||
name=el.label
|
||
}
|
||
})
|
||
return name
|
||
},
|
||
getData2(data) {
|
||
var name=''
|
||
this.typeList2.forEach((el, index) => {
|
||
if (el.value == data) {
|
||
name=el.label
|
||
}
|
||
})
|
||
return name
|
||
},
|
||
getData3(data) {
|
||
var name=''
|
||
this.typeList3.forEach((el, index) => {
|
||
if (el.value == data) {
|
||
name=el.label
|
||
}
|
||
})
|
||
return name
|
||
},
|
||
dataInit() {
|
||
var store = this.$store.state
|
||
var data = {
|
||
deviceId: store.equipmentList[store.equipmentIndex - 1].deviceId,
|
||
};
|
||
this.api.intrinsicParameter(data).then(res => {
|
||
if (res.data.code == 200) {
|
||
this.inputData =JSON.parse(JSON.stringify(res.data.data));
|
||
this.inputDataNew=JSON.parse(JSON.stringify(res.data.data))
|
||
this.inputData[20896] =this.countData10(this.inputData[20896]);
|
||
this.inputData[20897] =this.countData10(this.inputData[20897]);
|
||
this.list1.forEach((el,index)=>{
|
||
this.inputDataNew[el]=this.getData1(this.inputData[el])
|
||
})
|
||
this.list2.forEach((el,index)=>{
|
||
this.inputDataNew[el]=this.getData2(this.inputData[el])
|
||
})
|
||
this.inputDataNew[20726]=this.getData3(this.inputData[20726])
|
||
console.log(this.inputData, this.inputDataNew);
|
||
}
|
||
|
||
})
|
||
},
|
||
//二进制转换后的补全
|
||
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 (store.nowInput != el.target.value) {
|
||
this.changeData(data);
|
||
}
|
||
// if (this.timer) {
|
||
// this.timer && clearInterval(this.timer);
|
||
// this.changeData(data);
|
||
// }
|
||
},
|
||
//修改数据的函数
|
||
changeBtn(code, el) {
|
||
var store = this.$store.state
|
||
var data = {
|
||
equipmentId: store.equipmentList[store.equipmentIndex - 1].deviceId,
|
||
regAddress: code,
|
||
num: el.target.value,
|
||
};
|
||
this.delayTimerBtn(0, data);
|
||
},
|
||
//切换btn的限制 写入停止后j*100毫秒调取函数
|
||
delayTimerBtn(i, data) {
|
||
const that = this;
|
||
//整体接口
|
||
let j = this.$store.state.lateSendBtn;
|
||
//避免开启多个计时器
|
||
this.timer && clearInterval(this.timer);
|
||
|
||
this.timer = setInterval(() => {
|
||
++i;
|
||
if (i == j) {
|
||
that.changeData(data);
|
||
clearInterval(this.timer);
|
||
}
|
||
}, 100);
|
||
},
|
||
//类型选择
|
||
handleCommand(command,code) {
|
||
this.typeList1.forEach((el, index) => {
|
||
if (el.value == command) {
|
||
this.inputDataNew[code] = el.label
|
||
}
|
||
})
|
||
var dataNum = {
|
||
target: {
|
||
value: command,
|
||
},
|
||
};
|
||
this.changeBtn(code, dataNum);
|
||
},
|
||
|
||
//类型选择
|
||
handleCommand1(command,code) {
|
||
this.typeList3.forEach((el, index) => {
|
||
if (el.value == command) {
|
||
this.inputDataNew[code] = el.label
|
||
}
|
||
})
|
||
var dataNum = {
|
||
target: {
|
||
value: command,
|
||
},
|
||
};
|
||
this.changeBtn(code, dataNum);
|
||
},
|
||
|
||
//类型选择
|
||
handleCommand2(command,code) {
|
||
this.typeList2.forEach((el, index) => {
|
||
if (el.value == command) {
|
||
this.inputDataNew[code] = el.label
|
||
}
|
||
})
|
||
var dataNum = {
|
||
target: {
|
||
value: command,
|
||
},
|
||
};
|
||
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) {
|
||
var store = this.$store.state
|
||
this.api.postControlWrite(data).then((res) => {
|
||
if (res.data.code == 200) {
|
||
this.$message({
|
||
message: res.data.msg,
|
||
type: "success",
|
||
});
|
||
store.nowInput = ''
|
||
// this.dataInit();
|
||
} else {
|
||
this.inputData[data.regAddress] = store.nowInput
|
||
this.$message.error(res.data.msg);
|
||
}
|
||
this.timer = null
|
||
});
|
||
},
|
||
},
|
||
|
||
}
|
||
</script>
|
||
<style lang="scss"></style>
|
||
|