|
|
|
@ -67,59 +67,67 @@ |
|
|
|
/> |
|
|
|
/> |
|
|
|
<div class="monitor-words"> |
|
|
|
<div class="monitor-words"> |
|
|
|
<div class="words-li"> |
|
|
|
<div class="words-li"> |
|
|
|
<div class="ash">运行状态模式:</div> |
|
|
|
<div class="ash">开关控制:</div> |
|
|
|
<div class="white"> |
|
|
|
<div class="white"> |
|
|
|
<el-select |
|
|
|
<el-switch |
|
|
|
|
|
|
|
style="display: block" |
|
|
|
v-model="item.hotPumpStatus" |
|
|
|
v-model="item.hotPumpStatus" |
|
|
|
placeholder="请选择" |
|
|
|
active-color="#13ce66" |
|
|
|
|
|
|
|
active-text="开机" |
|
|
|
|
|
|
|
inactive-text="关机" |
|
|
|
@change="handleHotPump(item)" |
|
|
|
@change="handleHotPump(item)" |
|
|
|
> |
|
|
|
> |
|
|
|
<el-option |
|
|
|
</el-switch> |
|
|
|
v-for="item in hotPumpOptions" |
|
|
|
|
|
|
|
:key="item.value" |
|
|
|
|
|
|
|
:label="item.label" |
|
|
|
|
|
|
|
:value="item.value" |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
</el-option> |
|
|
|
|
|
|
|
</el-select> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="words-li"> |
|
|
|
</div> |
|
|
|
<div class="ash">故障信息:</div> |
|
|
|
</div> |
|
|
|
<el-tag |
|
|
|
<div class="control-bottom"> |
|
|
|
|
|
|
|
<div class="words-li"> |
|
|
|
|
|
|
|
<div class="ash">故障信息:</div> |
|
|
|
|
|
|
|
<el-tag |
|
|
|
|
|
|
|
size="mini" |
|
|
|
|
|
|
|
v-if="item.alarmStatus === '无故障'" |
|
|
|
|
|
|
|
type="success" |
|
|
|
|
|
|
|
>{{ item.alarmStatus }}</el-tag |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<el-tag size="mini" v-else type="danger">{{ |
|
|
|
|
|
|
|
item.alarmStatus |
|
|
|
|
|
|
|
}}</el-tag> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="words-li"> |
|
|
|
|
|
|
|
<div class="ash">运行状态:</div> |
|
|
|
|
|
|
|
<el-tag |
|
|
|
|
|
|
|
size="mini" |
|
|
|
|
|
|
|
v-if="item.runningStatus === '运行'" |
|
|
|
|
|
|
|
type="success" |
|
|
|
|
|
|
|
>{{ item.runningStatus }}</el-tag |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<el-tag size="mini" v-else type="danger">不运行</el-tag> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="words-li"> |
|
|
|
|
|
|
|
<div class="ash">实际温度:</div> |
|
|
|
|
|
|
|
<div class="white">{{ item.temp }}℃</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="words-li"> |
|
|
|
|
|
|
|
<div class="ash">设定温度:</div> |
|
|
|
|
|
|
|
<div class="white"> |
|
|
|
|
|
|
|
<el-input |
|
|
|
size="mini" |
|
|
|
size="mini" |
|
|
|
v-if="item.alarmStatus === '无故障'" |
|
|
|
v-model="item.tempSet" |
|
|
|
type="success" |
|
|
|
placeholder="请输入" |
|
|
|
>{{ item.alarmStatus }}</el-tag |
|
|
|
@keyup.enter.native=" |
|
|
|
> |
|
|
|
handleEnter( |
|
|
|
<el-tag size="mini" v-else type="danger">{{ |
|
|
|
item, |
|
|
|
item.alarmStatus |
|
|
|
item.tempSet, |
|
|
|
}}</el-tag> |
|
|
|
item.tempSetId, |
|
|
|
</div> |
|
|
|
'设定温度', |
|
|
|
<div class="words-li"> |
|
|
|
'℃' |
|
|
|
<div class="ash">实际温度:</div> |
|
|
|
) |
|
|
|
<div class="white">{{ item.temp }}℃</div> |
|
|
|
" |
|
|
|
</div> |
|
|
|
@input="handleInput(item)" |
|
|
|
<div class="words-li"> |
|
|
|
@blur="handleBlur()" |
|
|
|
<div class="ash">设定温度:</div> |
|
|
|
></el-input> |
|
|
|
<div class="white"> |
|
|
|
|
|
|
|
<el-input |
|
|
|
|
|
|
|
size="mini" |
|
|
|
|
|
|
|
v-model="item.tempSet" |
|
|
|
|
|
|
|
placeholder="请输入" |
|
|
|
|
|
|
|
@keyup.enter.native=" |
|
|
|
|
|
|
|
handleEnter( |
|
|
|
|
|
|
|
item, |
|
|
|
|
|
|
|
item.tempSet, |
|
|
|
|
|
|
|
item.tempSetId, |
|
|
|
|
|
|
|
'设定温度', |
|
|
|
|
|
|
|
'℃' |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
" |
|
|
|
|
|
|
|
@input="handleInput(item)" |
|
|
|
|
|
|
|
@blur="handleBlur()" |
|
|
|
|
|
|
|
></el-input> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
@ -272,7 +280,7 @@ |
|
|
|
<div class="white">次</div> |
|
|
|
<div class="white">次</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="words-li"> |
|
|
|
<div class="words-li"> |
|
|
|
<div class="white">一次50分钟</div> |
|
|
|
<div class="white">总共:{{ item.counterSet * 50 }}分钟</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
@ -336,7 +344,7 @@ |
|
|
|
item.delayTimeSet, |
|
|
|
item.delayTimeSet, |
|
|
|
item.delayTimeSetId, |
|
|
|
item.delayTimeSetId, |
|
|
|
'回水温度设定延时时间', |
|
|
|
'回水温度设定延时时间', |
|
|
|
'S' |
|
|
|
'min' |
|
|
|
) |
|
|
|
) |
|
|
|
" |
|
|
|
" |
|
|
|
@input="handleInput(item)" |
|
|
|
@input="handleInput(item)" |
|
|
|
@ -367,6 +375,25 @@ |
|
|
|
</el-switch> |
|
|
|
</el-switch> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="words-li words-li4"> |
|
|
|
|
|
|
|
<div class="ash">最低液位设置值:</div> |
|
|
|
|
|
|
|
<el-input |
|
|
|
|
|
|
|
v-model="item.minSet" |
|
|
|
|
|
|
|
size="mini" |
|
|
|
|
|
|
|
@keyup.enter.native=" |
|
|
|
|
|
|
|
handleEnter( |
|
|
|
|
|
|
|
item, |
|
|
|
|
|
|
|
item.minSet, |
|
|
|
|
|
|
|
item.minSetId, |
|
|
|
|
|
|
|
'最低液位设置值', |
|
|
|
|
|
|
|
'%' |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
" |
|
|
|
|
|
|
|
@input="handleInput(item)" |
|
|
|
|
|
|
|
@blur="handleBlur()" |
|
|
|
|
|
|
|
></el-input> |
|
|
|
|
|
|
|
<div class="white">%</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="control-bottom"> |
|
|
|
<div class="control-bottom"> |
|
|
|
@ -437,15 +464,131 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<!-- 高区、中厨、中区、裙楼 --> |
|
|
|
<!-- 中厨、裙楼 --> |
|
|
|
<div |
|
|
|
<div |
|
|
|
class="monitor-flex-left" |
|
|
|
class="monitor-flex-left" |
|
|
|
v-if=" |
|
|
|
v-if="activeName === '裙楼' || activeName === '中厨'" |
|
|
|
activeName === '裙楼' || |
|
|
|
> |
|
|
|
activeName === '中厨' || |
|
|
|
<div class="control-top"> |
|
|
|
activeName === '高区' || |
|
|
|
<img |
|
|
|
activeName === '中区' |
|
|
|
class="monitor-img2" |
|
|
|
" |
|
|
|
src="../../../assets/images/startpum.png" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
<div class="monitor-words"> |
|
|
|
|
|
|
|
<div class="words-li"> |
|
|
|
|
|
|
|
<div class="ash" style="letter-spacing: 8px">一键启动:</div> |
|
|
|
|
|
|
|
<div class="white"> |
|
|
|
|
|
|
|
<el-switch |
|
|
|
|
|
|
|
style="display: block" |
|
|
|
|
|
|
|
v-model="item.openSwitch" |
|
|
|
|
|
|
|
active-color="#13ce66" |
|
|
|
|
|
|
|
active-text="开启" |
|
|
|
|
|
|
|
inactive-text="停止" |
|
|
|
|
|
|
|
@change="handleAllStart(item)" |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
</el-switch> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<!-- <div class="words-li"> |
|
|
|
|
|
|
|
<div class="ash">停止:</div> |
|
|
|
|
|
|
|
<div class="white"> |
|
|
|
|
|
|
|
<el-switch |
|
|
|
|
|
|
|
style="display: block" |
|
|
|
|
|
|
|
v-model="item.closeSwitch" |
|
|
|
|
|
|
|
active-color="#13ce66" |
|
|
|
|
|
|
|
active-text="" |
|
|
|
|
|
|
|
inactive-text="" |
|
|
|
|
|
|
|
@change="handleAllEnd(item)" |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
</el-switch> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> --> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="control-bottom"> |
|
|
|
|
|
|
|
<div class="words-li words-li3"> |
|
|
|
|
|
|
|
<div class="ash">供水温度:</div> |
|
|
|
|
|
|
|
<div class="white">{{ item.temp }}℃</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<!-- <div class="words-li words-li4"> |
|
|
|
|
|
|
|
<div class="ash">供水温度设定:</div> |
|
|
|
|
|
|
|
<el-input |
|
|
|
|
|
|
|
v-model="item.tempSet" |
|
|
|
|
|
|
|
size="mini" |
|
|
|
|
|
|
|
@keyup.enter.native=" |
|
|
|
|
|
|
|
handleEnter( |
|
|
|
|
|
|
|
item, |
|
|
|
|
|
|
|
item.tempSet, |
|
|
|
|
|
|
|
item.tempSetId, |
|
|
|
|
|
|
|
'供水温度设定', |
|
|
|
|
|
|
|
'℃' |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
" |
|
|
|
|
|
|
|
@input="handleInput(item)" |
|
|
|
|
|
|
|
@blur="handleBlur()" |
|
|
|
|
|
|
|
></el-input> |
|
|
|
|
|
|
|
<div class="white">℃</div> |
|
|
|
|
|
|
|
</div> --> |
|
|
|
|
|
|
|
<div class="words-li words-li3"> |
|
|
|
|
|
|
|
<div class="ash">供水压力</div> |
|
|
|
|
|
|
|
<div class="white">{{ item.pressure }}bar</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<!-- <div class="words-li words-li4"> |
|
|
|
|
|
|
|
<div class="ash">温度偏差值:</div> |
|
|
|
|
|
|
|
<el-input |
|
|
|
|
|
|
|
v-model="item.diffValueSet" |
|
|
|
|
|
|
|
@keyup.enter.native=" |
|
|
|
|
|
|
|
handleEnter( |
|
|
|
|
|
|
|
item, |
|
|
|
|
|
|
|
item.diffValueSet, |
|
|
|
|
|
|
|
item.diffValueSetId, |
|
|
|
|
|
|
|
'温度偏差值', |
|
|
|
|
|
|
|
'℃' |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
" |
|
|
|
|
|
|
|
@input="handleInput(item)" |
|
|
|
|
|
|
|
@blur="handleBlur()" |
|
|
|
|
|
|
|
size="mini" |
|
|
|
|
|
|
|
></el-input> |
|
|
|
|
|
|
|
<div class="white">℃</div> |
|
|
|
|
|
|
|
</div> --> |
|
|
|
|
|
|
|
<div class="words-li words-li3"> |
|
|
|
|
|
|
|
<div class="ash">故障信息:</div> |
|
|
|
|
|
|
|
<el-tag |
|
|
|
|
|
|
|
size="mini" |
|
|
|
|
|
|
|
v-if="item.alarmStatus === '无故障'" |
|
|
|
|
|
|
|
type="success" |
|
|
|
|
|
|
|
>{{ item.alarmStatus }}</el-tag |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<el-tag size="mini" v-else type="danger">{{ |
|
|
|
|
|
|
|
item.alarmStatus |
|
|
|
|
|
|
|
}}</el-tag> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<!-- <div class="words-li words-li4"> |
|
|
|
|
|
|
|
<div class="ash">补水延时时间设定:</div> |
|
|
|
|
|
|
|
<el-input |
|
|
|
|
|
|
|
v-model="item.delayTimeSet" |
|
|
|
|
|
|
|
@keyup.enter.native=" |
|
|
|
|
|
|
|
handleEnter( |
|
|
|
|
|
|
|
item, |
|
|
|
|
|
|
|
item.delayTimeSet, |
|
|
|
|
|
|
|
item.delayTimeSetId, |
|
|
|
|
|
|
|
'补水延时时间设定', |
|
|
|
|
|
|
|
'S' |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
" |
|
|
|
|
|
|
|
@input="handleInput(item)" |
|
|
|
|
|
|
|
@blur="handleBlur()" |
|
|
|
|
|
|
|
size="mini" |
|
|
|
|
|
|
|
></el-input> |
|
|
|
|
|
|
|
<div class="white">S</div> |
|
|
|
|
|
|
|
</div> --> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<!-- 高区、中区 --> |
|
|
|
|
|
|
|
<div |
|
|
|
|
|
|
|
class="monitor-flex-left" |
|
|
|
|
|
|
|
v-if="activeName === '高区' || activeName === '中区'" |
|
|
|
> |
|
|
|
> |
|
|
|
<div class="control-top"> |
|
|
|
<div class="control-top"> |
|
|
|
<img |
|
|
|
<img |
|
|
|
@ -563,6 +706,124 @@ |
|
|
|
</div> --> |
|
|
|
</div> --> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<!-- 传感器参数设置 --> |
|
|
|
|
|
|
|
<div class="monitor-flex-left" v-if="activeName === '传感器参数设置'"> |
|
|
|
|
|
|
|
<div class="control-bottom"> |
|
|
|
|
|
|
|
<div class="words-li words-li4"> |
|
|
|
|
|
|
|
<div class="ash">上限:</div> |
|
|
|
|
|
|
|
<el-input |
|
|
|
|
|
|
|
v-model="item.engineeringMaxValue" |
|
|
|
|
|
|
|
size="mini" |
|
|
|
|
|
|
|
placeholder="请输入" |
|
|
|
|
|
|
|
@keyup.enter.native=" |
|
|
|
|
|
|
|
handleEnter( |
|
|
|
|
|
|
|
item, |
|
|
|
|
|
|
|
item.engineeringMaxValue, |
|
|
|
|
|
|
|
item.engineeringMaxValueId, |
|
|
|
|
|
|
|
'上限', |
|
|
|
|
|
|
|
item.name.includes('温度') ? '℃' : item.name.includes('压力') ? 'bar' : item.name.includes('液位') ? 'm' : '' |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
" |
|
|
|
|
|
|
|
@input="handleInput(item)" |
|
|
|
|
|
|
|
@blur="handleBlur()" |
|
|
|
|
|
|
|
></el-input> |
|
|
|
|
|
|
|
<div class="white" v-if="item.name.includes('温度')">℃</div> |
|
|
|
|
|
|
|
<div class="white" v-else-if="item.name.includes('压力')">bar</div> |
|
|
|
|
|
|
|
<div class="white" v-else-if="item.name.includes('液位')">m</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="words-li words-li4"> |
|
|
|
|
|
|
|
<div class="ash">下限:</div> |
|
|
|
|
|
|
|
<el-input |
|
|
|
|
|
|
|
v-model="item.engineeringMinValue" |
|
|
|
|
|
|
|
size="mini" |
|
|
|
|
|
|
|
placeholder="请输入" |
|
|
|
|
|
|
|
@keyup.enter.native=" |
|
|
|
|
|
|
|
handleEnter( |
|
|
|
|
|
|
|
item, |
|
|
|
|
|
|
|
item.engineeringMinValue, |
|
|
|
|
|
|
|
item.engineeringMinValueId, |
|
|
|
|
|
|
|
'下限', |
|
|
|
|
|
|
|
item.name.includes('温度') ? '℃' : item.name.includes('压力') ? 'bar' : item.name.includes('液位') ? 'm' : '' |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
" |
|
|
|
|
|
|
|
@input="handleInput(item)" |
|
|
|
|
|
|
|
@blur="handleBlur()" |
|
|
|
|
|
|
|
></el-input> |
|
|
|
|
|
|
|
<div class="white" v-if="item.name.includes('温度')">℃</div> |
|
|
|
|
|
|
|
<div class="white" v-else-if="item.name.includes('压力')">bar</div> |
|
|
|
|
|
|
|
<div class="white" v-else-if="item.name.includes('液位')">m</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="words-li words-li4"> |
|
|
|
|
|
|
|
<div class="ash">数字上限:</div> |
|
|
|
|
|
|
|
<el-input |
|
|
|
|
|
|
|
v-model="item.digitalMaxValue" |
|
|
|
|
|
|
|
size="mini" |
|
|
|
|
|
|
|
placeholder="请输入" |
|
|
|
|
|
|
|
@keyup.enter.native=" |
|
|
|
|
|
|
|
handleEnter( |
|
|
|
|
|
|
|
item, |
|
|
|
|
|
|
|
item.digitalMaxValue, |
|
|
|
|
|
|
|
item.digitalMaxValueId, |
|
|
|
|
|
|
|
'数字上限', |
|
|
|
|
|
|
|
'' |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
" |
|
|
|
|
|
|
|
@input="handleInput(item)" |
|
|
|
|
|
|
|
@blur="handleBlur()" |
|
|
|
|
|
|
|
></el-input> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="words-li words-li4"> |
|
|
|
|
|
|
|
<div class="ash">数字下限:</div> |
|
|
|
|
|
|
|
<el-input |
|
|
|
|
|
|
|
v-model="item.digitalMinValue" |
|
|
|
|
|
|
|
size="mini" |
|
|
|
|
|
|
|
placeholder="请输入" |
|
|
|
|
|
|
|
@keyup.enter.native=" |
|
|
|
|
|
|
|
handleEnter( |
|
|
|
|
|
|
|
item, |
|
|
|
|
|
|
|
item.digitalMinValue, |
|
|
|
|
|
|
|
item.digitalMinValueId, |
|
|
|
|
|
|
|
'数字下限', |
|
|
|
|
|
|
|
'' |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
" |
|
|
|
|
|
|
|
@input="handleInput(item)" |
|
|
|
|
|
|
|
@blur="handleBlur()" |
|
|
|
|
|
|
|
></el-input> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="words-li words-li4"> |
|
|
|
|
|
|
|
<div class="ash">校准值:</div> |
|
|
|
|
|
|
|
<el-input |
|
|
|
|
|
|
|
v-model="item.calibrationValue" |
|
|
|
|
|
|
|
size="mini" |
|
|
|
|
|
|
|
placeholder="请输入" |
|
|
|
|
|
|
|
@keyup.enter.native=" |
|
|
|
|
|
|
|
handleEnter( |
|
|
|
|
|
|
|
item, |
|
|
|
|
|
|
|
item.calibrationValue, |
|
|
|
|
|
|
|
item.calibrationValueId, |
|
|
|
|
|
|
|
'校准值', |
|
|
|
|
|
|
|
item.name.includes('温度') ? '℃' : item.name.includes('压力') ? 'bar' : item.name.includes('液位') ? 'm' : '' |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
" |
|
|
|
|
|
|
|
@input="handleInput(item)" |
|
|
|
|
|
|
|
@blur="handleBlur()" |
|
|
|
|
|
|
|
></el-input> |
|
|
|
|
|
|
|
<div class="white" v-if="item.name.includes('温度')">℃</div> |
|
|
|
|
|
|
|
<div class="white" v-else-if="item.name.includes('压力')">bar</div> |
|
|
|
|
|
|
|
<div class="white" v-else-if="item.name.includes('液位')">m</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="words-li words-li4"> |
|
|
|
|
|
|
|
<div class="ash">当前值:</div> |
|
|
|
|
|
|
|
<div class="white"> |
|
|
|
|
|
|
|
<span v-if="item.name.includes('温度')">{{ item.temp }}℃</span> |
|
|
|
|
|
|
|
<span v-else-if="item.name.includes('压力')">{{ item.pressure }}bar</span> |
|
|
|
|
|
|
|
<span v-else-if="item.name.includes('液位')">{{ item.waterLevel }}%</span> |
|
|
|
|
|
|
|
<span v-else>{{ item.temp }}</span> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
@ -593,15 +854,7 @@ export default { |
|
|
|
value: 0, |
|
|
|
value: 0, |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: "制冷", |
|
|
|
label: "开机", |
|
|
|
value: 2, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
label: "制热", |
|
|
|
|
|
|
|
value: 3, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
label: "热水", |
|
|
|
|
|
|
|
value: 4, |
|
|
|
value: 4, |
|
|
|
}, |
|
|
|
}, |
|
|
|
], |
|
|
|
], |
|
|
|
@ -768,13 +1021,31 @@ export default { |
|
|
|
...item, |
|
|
|
...item, |
|
|
|
waterLevel: Number(item.waterLevel), |
|
|
|
waterLevel: Number(item.waterLevel), |
|
|
|
runningStatus: Number(item.runningStatus) == 0 ? "停止" : "运行", //运行状态 |
|
|
|
runningStatus: Number(item.runningStatus) == 0 ? "停止" : "运行", //运行状态 |
|
|
|
hotPumpStatus: item.switchStatus, //热泵开关状态 |
|
|
|
hotPumpStatus: |
|
|
|
|
|
|
|
Number(item.switchStatus) === 0 |
|
|
|
|
|
|
|
? false |
|
|
|
|
|
|
|
: Number(item.switchStatus) === 4 |
|
|
|
|
|
|
|
? true |
|
|
|
|
|
|
|
: "", // 热泵开关状态 |
|
|
|
switchStatus: Number(item.switchStatus) == 0 ? false : true, //启停控制 |
|
|
|
switchStatus: Number(item.switchStatus) == 0 ? false : true, //启停控制 |
|
|
|
alarmStatus: Number(item.alarmStatus) == 0 ? "无故障" : "故障", //故障状态 |
|
|
|
alarmStatus: Number(item.alarmStatus) == 0 ? "无故障" : "故障", //故障状态 |
|
|
|
handAutomaticSwitch: |
|
|
|
handAutomaticSwitch: |
|
|
|
Number(item.handAutomaticSwitch) == 1 ? false : true, //手自动状态 |
|
|
|
Number(item.handAutomaticSwitch) == 1 ? false : true, //手自动状态 |
|
|
|
openSwitch: Number(item.openSwitch) == 0 ? false : true, //一键启动 |
|
|
|
openSwitch: Number(item.openSwitch) == 0 ? false : true, //一键启动 |
|
|
|
closeSwitch: Number(item.closeSwitch) == 0 ? false : true, //一键停止 |
|
|
|
closeSwitch: Number(item.closeSwitch) == 0 ? false : true, //一键停止 |
|
|
|
|
|
|
|
// 传感器参数设置相关字段,确保初始化 |
|
|
|
|
|
|
|
engineeringMaxValue: item.engineeringMaxValue || '', |
|
|
|
|
|
|
|
engineeringMaxValueId: item.engineeringMaxValueId || '', |
|
|
|
|
|
|
|
engineeringMinValue: item.engineeringMinValue || '', |
|
|
|
|
|
|
|
engineeringMinValueId: item.engineeringMinValueId || '', |
|
|
|
|
|
|
|
digitalMaxValue: item.digitalMaxValue || '', |
|
|
|
|
|
|
|
digitalMaxValueId: item.digitalMaxValueId || '', |
|
|
|
|
|
|
|
digitalMinValue: item.digitalMinValue || '', |
|
|
|
|
|
|
|
digitalMinValueId: item.digitalMinValueId || '', |
|
|
|
|
|
|
|
calibrationValue: item.calibrationValue || '', |
|
|
|
|
|
|
|
calibrationValueId: item.calibrationValueId || '', |
|
|
|
|
|
|
|
middleValue: item.middleValue || '', |
|
|
|
|
|
|
|
middleValueId: item.middleValueId || '', |
|
|
|
}; |
|
|
|
}; |
|
|
|
// 将处理后的对象添加到 devicesList 中 |
|
|
|
// 将处理后的对象添加到 devicesList 中 |
|
|
|
this.devicesList.push(deviceItem); |
|
|
|
this.devicesList.push(deviceItem); |
|
|
|
@ -829,7 +1100,12 @@ export default { |
|
|
|
waterLevel: Number(item.waterLevel), |
|
|
|
waterLevel: Number(item.waterLevel), |
|
|
|
runningStatus: |
|
|
|
runningStatus: |
|
|
|
Number(item.runningStatus) == 0 ? "运行" : "停止", //运行状态 |
|
|
|
Number(item.runningStatus) == 0 ? "运行" : "停止", //运行状态 |
|
|
|
hotPumpStatus: item.switchStatus, //热泵开关状态 |
|
|
|
hotPumpStatus: |
|
|
|
|
|
|
|
Number(item.switchStatus) === 0 |
|
|
|
|
|
|
|
? false |
|
|
|
|
|
|
|
: Number(item.switchStatus) === 4 |
|
|
|
|
|
|
|
? true |
|
|
|
|
|
|
|
: "未知状态", // 热泵开关状态 |
|
|
|
switchStatus: |
|
|
|
switchStatus: |
|
|
|
Number(item.switchStatus) == 0 ? false : true, //启停控制 |
|
|
|
Number(item.switchStatus) == 0 ? false : true, //启停控制 |
|
|
|
alarmStatus: |
|
|
|
alarmStatus: |
|
|
|
@ -838,6 +1114,19 @@ export default { |
|
|
|
Number(item.handAutomaticSwitch) == 0 ? false : true, //手自动状态 |
|
|
|
Number(item.handAutomaticSwitch) == 0 ? false : true, //手自动状态 |
|
|
|
openSwitch: Number(item.openSwitch) == 0 ? false : true, //一键启动 |
|
|
|
openSwitch: Number(item.openSwitch) == 0 ? false : true, //一键启动 |
|
|
|
closeSwitch: Number(item.closeSwitch) == 0 ? false : true, //一键停止 |
|
|
|
closeSwitch: Number(item.closeSwitch) == 0 ? false : true, //一键停止 |
|
|
|
|
|
|
|
// 传感器参数设置相关字段,确保初始化 |
|
|
|
|
|
|
|
engineeringMaxValue: item.engineeringMaxValue || '', |
|
|
|
|
|
|
|
engineeringMaxValueId: item.engineeringMaxValueId || '', |
|
|
|
|
|
|
|
engineeringMinValue: item.engineeringMinValue || '', |
|
|
|
|
|
|
|
engineeringMinValueId: item.engineeringMinValueId || '', |
|
|
|
|
|
|
|
digitalMaxValue: item.digitalMaxValue || '', |
|
|
|
|
|
|
|
digitalMaxValueId: item.digitalMaxValueId || '', |
|
|
|
|
|
|
|
digitalMinValue: item.digitalMinValue || '', |
|
|
|
|
|
|
|
digitalMinValueId: item.digitalMinValueId || '', |
|
|
|
|
|
|
|
calibrationValue: item.calibrationValue || '', |
|
|
|
|
|
|
|
calibrationValueId: item.calibrationValueId || '', |
|
|
|
|
|
|
|
middleValue: item.middleValue || '', |
|
|
|
|
|
|
|
middleValueId: item.middleValueId || '', |
|
|
|
}; |
|
|
|
}; |
|
|
|
// 将处理后的对象添加到 devicesList 中 |
|
|
|
// 将处理后的对象添加到 devicesList 中 |
|
|
|
this.devicesList.push(deviceItem); |
|
|
|
this.devicesList.push(deviceItem); |
|
|
|
@ -933,26 +1222,10 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 设置热泵开关状态 |
|
|
|
// 设置热泵开关状态 |
|
|
|
handleHotPump(item) { |
|
|
|
handleHotPump(item) { |
|
|
|
// 记录原始状态 |
|
|
|
|
|
|
|
const originalStatus = item.hotPumpStatus; |
|
|
|
|
|
|
|
// 根据 value 值获取对应的 label |
|
|
|
|
|
|
|
let statusLabel = ""; |
|
|
|
|
|
|
|
switch (item.hotPumpStatus) { |
|
|
|
|
|
|
|
case 0: |
|
|
|
|
|
|
|
statusLabel = "关机"; |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
case 2: |
|
|
|
|
|
|
|
statusLabel = "制冷"; |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
case 3: |
|
|
|
|
|
|
|
statusLabel = "制热"; |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
case 4: |
|
|
|
|
|
|
|
statusLabel = "热水"; |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
this.$confirm( |
|
|
|
this.$confirm( |
|
|
|
`确定要切换设备"${item.name}"的状态为:${statusLabel} 吗?"`, |
|
|
|
`确定要切换设备"${item.name}"的状态为:${ |
|
|
|
|
|
|
|
item.hotPumpStatus ? "开机" : "关机 吗?" |
|
|
|
|
|
|
|
}`, |
|
|
|
"提示", |
|
|
|
"提示", |
|
|
|
{ |
|
|
|
{ |
|
|
|
confirmButtonText: "确定", |
|
|
|
confirmButtonText: "确定", |
|
|
|
@ -961,11 +1234,20 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
) |
|
|
|
) |
|
|
|
.then(() => { |
|
|
|
.then(() => { |
|
|
|
this.hadleOperationConrol(item.switchStatusId, item.hotPumpStatus); |
|
|
|
// 这里调用请求函数,示例中只是简单打印信息 |
|
|
|
|
|
|
|
console.log("请求后台", item.hotPumpStatus); |
|
|
|
|
|
|
|
let param = null; |
|
|
|
|
|
|
|
if (item.hotPumpStatus) { |
|
|
|
|
|
|
|
param = 4; |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
param = 0; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
console.log("参数", param); |
|
|
|
|
|
|
|
this.hadleOperationConrol(item.switchStatusId, param); |
|
|
|
}) |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
.catch(() => { |
|
|
|
// 用户取消操作,恢复状态 |
|
|
|
// 用户取消操作,恢复开关状态 |
|
|
|
item.hotPumpStatus = originalStatus; |
|
|
|
item.switchStatus = !item.switchStatus; |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 设置供水泵手自动状态 |
|
|
|
// 设置供水泵手自动状态 |
|
|
|
@ -1318,9 +1600,9 @@ export default { |
|
|
|
width: 36%; |
|
|
|
width: 36%; |
|
|
|
} |
|
|
|
} |
|
|
|
.words-li4 { |
|
|
|
.words-li4 { |
|
|
|
width: 60%; |
|
|
|
width: 45%; |
|
|
|
.ash { |
|
|
|
.ash { |
|
|
|
width: 130px; |
|
|
|
width: 80px; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
.words-li5 { |
|
|
|
.words-li5 { |
|
|
|
|