Commit fc1c5023 authored by coffee's avatar coffee

tj

parent 4605ad0d
......@@ -733,6 +733,7 @@ export default {
},
// 设置定时任务
setSendTime(type) {
if(type == this.isOpen) return
this.$refs['dataForm'].validate((valid) => {
if (valid) {
if (!this.formData.startTime || !this.formData.endTime) {
......
......@@ -25,87 +25,88 @@
p.leftP 设备型号:   {{ dataForm.equipmentModel }}
.quDetailM
p.leftP 安装日期:   {{ dataForm.installDate }}
.info-form(v-if='$store.state.d2admin.paramsList.list.syBean.type == 1' :style="{'border-bottom':(['b45827c068254695864ee3c1d42573cb','b6af764f2a6e454490a6b1b3c9057e57','173466a2cf9a42a6a17b2bdfbeae36d5','f4c840711eae4bcb9536a890cdfda493'].includes(dataForm.type))&&$store.state.d2admin.paramsList.list.syBean.type == 1 ? '1px solid #c0c0c0': ''}" )
.info-form(style="border-bottom: 1px solid #c0c0c0" )
//- | {{dataForm.status}}
//- el-row.text-size(v-if="openOrClose.indexOf(dataForm.type)>-1")
//- 室外气象站、(室内气象站)传感器、卷帘门不需要开启关闭选项
el-row.text-size(v-if="!['9a570e608d0840499551eca89d76449d','507ba9ae22174e4dbbf32dbf34dd7139','c788ce98c1f248f590434394da485ce4'].includes(dataForm.type)")
el-row.text-size
el-col(:span='10') 当前已
span(v-if="dataForm.status == 1") 运行
span(v-else-if="dataForm.status == 2") 停止
span(v-else-if="dataForm.status == 3") 离线
span(v-else-if="dataForm.status == 4") 故障
el-col(:span='10' v-if="dataForm.status == 1 || dataForm.status ==2")
.switch-warp
//- 人工模式,风冷热泵机组、水泵、排风机、多联新风室内机 才需要开关按钮
el-col(:span='10' v-if="isManual && (['b45827c068254695864ee3c1d42573cb','f4c840711eae4bcb9536a890cdfda493','b6af764f2a6e454490a6b1b3c9057e57','8f0787103561423887324f8ac3c36b89'].includes(dataForm.type)) ")
.switch-warp(v-if='dataForm.status == 1 || dataForm.status ==2')
div(:class="[dataForm.status == 1 ? 'on' : '']", @click="handleSwitch(1)" :style="{'pointer-events':( dataForm.status ==1) ? 'none':''}") 打开
div(:class="[dataForm.status == 2 ? 'on' : '']", @click="handleSwitch(0)" :style="{'pointer-events':( dataForm.status ==2) ? 'none':''}") 关闭
el-col(:span='10' v-else-if="dataForm.status ==4")
el-button(type='primary' size='mini' @click="failureReset") 故障复位
el-row.text-size(style="margin-top: 10px" v-if="dataForm.type=='173466a2cf9a42a6a17b2bdfbeae36d5'&&dataForm.status==1")
el-col(:span="16" )
span 温度设定(℃):
el-input-number(v-model="temperature" size="mini" :controls='false' :precision='0' style="width: 90px")
el-button(type='primary' size='mini' @click="handleSwitch2(1)" style='margin-left: 10px') 设定
el-row.text-size(style="margin-top: 10px" v-if="dataForm.type=='173466a2cf9a42a6a17b2bdfbeae36d5'&&dataForm.status==1")
el-col(:span="16" )
span 选择模式:
el-select(size="mini" v-model="models" placeholder="请选择模式" style="width: 114px")
el-option(label="自动模式" value="1")
el-option(label="制冷模式" value="2")
el-option(label="除湿模式" value="4")
el-option(label="送风模式" value="8")
el-option(label="制热模式" value="16")
el-button(type="primary", size="mini", style="margin-left: 10px",@click="handleSwitch2(2)") 设定
el-row.text-size(style="margin-top: 10px" v-if="dataForm.type=='173466a2cf9a42a6a17b2bdfbeae36d5'&&dataForm.status==1")
el-col(:span="16" )
span 选择风速:
el-select(size="mini" v-model="speed" placeholder="请选择风速" style="width: 114px")
el-option(label="高风" value="2")
el-option(label="中风" value="4")
el-option(label="低风" value="8")
el-button(type="primary", size="mini", style="margin-left: 10px" @click="handleSwitch2(3)") 设定
//- 风热冷泵机组
div.text-size(v-if="dataForm.type=='b45827c068254695864ee3c1d42573cb'")
el-row(style="margin-top: 5px")
span(style='width: 120px;display: inline-block;') 模式:
el-switch(v-model="modelType" @change="changeHandle($event)" active-text="风水模式" inactive-text="热水模式" inactive-color="#ff4949" style="margin-bottom: 5px;")
el-row(style="margin-bottom: 5px")
span 制热启动温度(℃):
el-input-number(v-model="heatingStart" size="mini" :controls='false' :precision='0' style="width: 90px")
el-button(type='primary' size='mini' @click='changeTemperature(1,heatingStart)' style='margin-left: 10px') 设定
el-row(style="margin-bottom: 5px")
span 制热启动温度(℃):
el-input-number(v-model="heatingEnd" size="mini" :controls='false' :precision='0' style="width: 90px")
el-button(type='primary' size='mini' @click='changeTemperature(2,heatingEnd)' style='margin-left: 10px') 设定
el-row(style="margin-bottom: 5px")
span 热风启动温度(℃):
el-input-number(v-model="hotWindStart" size="mini" :controls='false' :precision='0' style="width: 90px")
el-button(type='primary' size='mini' @click='changeTemperature(3,hotWindStart)' style='margin-left: 10px') 设定
el-button(v-if='dataForm.status ==4' type='primary' size='mini' @click="failureReset") 故障复位
//- 控制区域 只有人工模式才需要显示
div(v-if='isManual')
el-row.text-size(style="margin-top: 10px" v-if="dataForm.type=='173466a2cf9a42a6a17b2bdfbeae36d5' && dataForm.status==1 ")
el-col(:span="16" )
span 温度设定(℃):
el-input-number(v-model="temperature" size="mini" :controls='false' :precision='0' style="width: 90px")
el-button(type='primary' size='mini' @click="handleSwitch2(1)" style='margin-left: 10px') 设定
el-row.text-size(style="margin-top: 10px" v-if="dataForm.type=='173466a2cf9a42a6a17b2bdfbeae36d5'&&dataForm.status==1")
el-col(:span="16" )
span 选择模式:
el-select(size="mini" v-model="models" placeholder="请选择模式" style="width: 114px")
el-option(label="自动模式" value="1")
el-option(label="制冷模式" value="2")
el-option(label="除湿模式" value="4")
el-option(label="送风模式" value="8")
el-option(label="制热模式" value="16")
el-button(type="primary", size="mini", style="margin-left: 10px",@click="handleSwitch2(2)") 设定
el-row.text-size(style="margin-top: 10px" v-if="dataForm.type=='173466a2cf9a42a6a17b2bdfbeae36d5'&&dataForm.status==1")
el-col(:span="16" )
span 选择风速:
el-select(size="mini" v-model="speed" placeholder="请选择风速" style="width: 114px")
el-option(label="高风" value="2")
el-option(label="中风" value="4")
el-option(label="低风" value="8")
el-button(type="primary", size="mini", style="margin-left: 10px" @click="handleSwitch2(3)") 设定
//- 风热冷泵机组
div.text-size(v-if="dataForm.type=='b45827c068254695864ee3c1d42573cb'")
el-row(style="margin-top: 5px")
span(style='width: 120px;display: inline-block;') 模式:
el-switch(v-model="modelType" @change="changeHandle($event)" active-text="风水模式" inactive-text="热水模式" inactive-color="#ff4949" style="margin-bottom: 5px;")
el-row(style="margin-bottom: 5px")
span 制热启动温度(℃):
el-input-number(v-model="heatingStart" size="mini" :controls='false' :precision='0' style="width: 90px")
el-button(type='primary' size='mini' @click='changeTemperature(1,heatingStart)' style='margin-left: 10px') 设定
el-row(style="margin-bottom: 5px")
span 制热启动温度(℃):
el-input-number(v-model="heatingEnd" size="mini" :controls='false' :precision='0' style="width: 90px")
el-button(type='primary' size='mini' @click='changeTemperature(2,heatingEnd)' style='margin-left: 10px') 设定
el-row(style="margin-bottom: 5px")
span 热风启动温度(℃):
el-input-number(v-model="hotWindStart" size="mini" :controls='false' :precision='0' style="width: 90px")
el-button(type='primary' size='mini' @click='changeTemperature(3,hotWindStart)' style='margin-left: 10px') 设定
el-row
span 热风停止温度(℃):
el-input-number(v-model="hotWindEnd" @blur='' size="mini" :controls='false' :precision='0' style="width: 90px")
el-button(type='primary' size='mini' @click='changeTemperature(4,hotWindEnd)' style='margin-left: 10px') 设定
//- 水泵
div.text-size(style="margin-top: 10px")
el-row.text-size(v-if="dataForm.type=='f4c840711eae4bcb9536a890cdfda493'")
span(style='margin-right: 40px') 设置频率:
el-input-number(v-model="frequency" size="mini" :controls='false' :precision='0' style="width: 90px")
el-button(type='primary' size='mini' @click='changeFrequency(frequency)' style='margin-left: 10px') 设定
//- el-row.text-size(style="margin-top: 10px" v-if="dataForm.type=='303310efddb34a2e9bf269bdff8a7dc5'||dataForm.type=='f4c840711eae4bcb9536a890cdfda493'")
//- el-col(:span="16" )
//- span 频率设置:
//- el-input(size="mini", style="width: 80px", v-model="windSpeed",@click="handleSwitch2(3)")
//- span  转/分
//- el-button(type="primary", size="mini", style="margin-left: 3px") 设定
//- 卷帘门
el-row
span 热风停止温度(℃):
el-input-number(v-model="hotWindEnd" @blur='' size="mini" :controls='false' :precision='0' style="width: 90px")
el-button(type='primary' size='mini' @click='changeTemperature(4,hotWindEnd)' style='margin-left: 10px') 设定
//- 水泵
div.text-size(style="margin-top: 10px")
el-row.text-size(v-if="dataForm.type=='f4c840711eae4bcb9536a890cdfda493'")
span(style='margin-right: 40px') 设置频率:
el-input-number(v-model="frequency" size="mini" :controls='false' :precision='0' style="width: 90px")
el-button(type='primary' size='mini' @click='changeFrequency(frequency)' style='margin-left: 10px') 设定
//- el-row.text-size(style="margin-top: 10px" v-if="dataForm.type=='303310efddb34a2e9bf269bdff8a7dc5'||dataForm.type=='f4c840711eae4bcb9536a890cdfda493'")
//- el-col(:span="16" )
//- span 频率设置:
//- el-input(size="mini", style="width: 80px", v-model="windSpeed",@click="handleSwitch2(3)")
//- span  转/分
//- el-button(type="primary", size="mini", style="margin-left: 3px") 设定
//- 卷帘门
el-row
el-col(v-if="dataForm.type=='c788ce98c1f248f590434394da485ce4'")
el-button(type="primary", size="mini", style="margin-left: 10px" disabled) 上升
el-button(type="primary", size="mini", style="margin-left: 10px" disabled) 下降
el-button(type="primary", size="mini", style="margin-left: 10px" disabled) 停止
el-col(v-if="dataForm.type=='c788ce98c1f248f590434394da485ce4'")
el-button(type="primary", size="mini", style="margin-left: 10px" disabled) 上升
el-button(type="primary", size="mini", style="margin-left: 10px" disabled) 下降
el-button(type="primary", size="mini", style="margin-left: 10px" disabled) 停止
.info-state(v-if="this.params && this.params.length > 0")
p(style="font-weight: bold") 设备运行状态
p(style="font-weight: bold; margin: 10px 0") 设备运行状态
div.stateWrap
div(v-if="this.params.length && this.params[0].electric_energy")
span.type 电量(kwh):
......@@ -193,7 +194,13 @@ import { mapState } from 'vuex'
export default {
computed: {
...mapState('d2admin/user', ['info']),
...mapState('d2admin/paramsList', ['list'])
...mapState('d2admin/paramsList', ['list']),
// 判断是否是人工模式,用来控制按钮是否显示
isManual(){
if(this.$store.state.d2admin.paramsList.list.syBean.type ==1){
return true
}
}
},
watch: {
list: {
......@@ -245,6 +252,7 @@ watch: {
hotWindStart: null,
hotWindEnd: null,
frequency: null,
// isManual: true
}
},
......@@ -656,10 +664,9 @@ watch: {
}
.animation {
animation: myfirst 1s;
position: absolute;
// top: 15px;
top: 50%;
transform: translate(0, -50%);
position: fixed;
bottom: calc(50% + 65px);
transform: translateY(50%);
right: 0;
width: 420px;
background-color: #f4f4f4;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment