Commit 30d0b36a authored by xiexingan's avatar xiexingan

提交

parent 410fab54
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
@click="closeQueryDetailVisible" @click="closeQueryDetailVisible"
) )
.info-form(style="text-align: center; border-bottom: 1px solid #c0c0c0") .info-form(style="text-align: center; border-bottom: 1px solid #c0c0c0")
img( src="../../../assets/images/kt.jpg") img(src="../../../assets/images/kt.jpg")
//- span {{dataForm.icon}} //- span {{dataForm.icon}}
//- div(:class="dataForm.icon+'6'") //- div(:class="dataForm.icon+'6'")
.info-form(style="border-bottom: 1px solid #c0c0c0") .info-form(style="border-bottom: 1px solid #c0c0c0")
...@@ -45,28 +45,87 @@ ...@@ -45,28 +45,87 @@
span  转/分 span  转/分
.info-state .info-state
span(style="font-weight: bold") 设备运行状态 span(style="font-weight: bold") 设备运行状态
div div(v-if='this.params.length&&this.params[0].electric_energy')
span.type 电压: span.type 电量:
span.value 220 V span.value {{params[0].electric_energy}}
div div(v-if='this.params.length&&this.params[0].current_frequency')
span.type 电流: span.type 当前频率:
span.value 4 A span.value {{params[0].current_frequency}}
div div(v-if='this.params.length&&this.params[0].feng_shui_mode')
span.type 功率因数: span.type 风水模式:
span.value 0.8 kw span.value {{params[0].feng_shui_mode}}
div div(v-if='this.params.length&&this.params[0].hot_water_mode')
span.type 功率: span.type 热水模式:
span.value 0.8 kw span.value {{params[0].hot_water_mode}}
div div(v-if='this.params.length&&this.params[0].water_supply_temperature')
span.type 电能: span.type 供水温度:
span.value 12 kw.h span.value {{params[0].water_supply_temperature}}
div(v-if='this.params.length&&this.params[0].return_water_temperature')
span.type 回水温度:
span.value {{params[0].return_water_temperature}}
div(v-if='this.params.length&&this.params[0].heating_start_temperature')
span.type 制热启动温度:
span.value {{params[0].heating_start_temperature}}
div(v-if='this.params.length&&this.params[0].heating_stop_temperature')
span.type 制热停止温度:
span.value {{params[0].heating_stop_temperature}}
div(v-if='this.params.length&&this.params[0].indoor_ambient_temperature')
span.type 室内环境温度:
span.value {{params[0].indoor_ambient_temperature}}
div(v-if='this.params.length&&this.params[0].outlet_temperature')
span.type 出风温度:
span.value {{params[0].outlet_temperature}}
div(v-if='this.params.length&&this.params[0].return_air_temperature')
span.type 回风温度:
span.value {{params[0].return_air_temperature}}
div(v-if='this.params.length&&this.params[0].hot_air_start_temperature')
span.type 热风启动温度:
span.value {{params[0].hot_air_start_temperature}}
div(v-if='this.params.length&&this.params[0].hot_air_stop_temperature')
span.type 热风停止温度:
span.value {{params[0].hot_air_stop_temperature}}
div(v-if='this.params.length&&this.params[0].temperature')
span.type 温度:
span.value {{params[0].temperature}}
div(v-if='this.params.length&&this.params[0].humidity')
span.type 湿度:
span.value {{params[0].humidity}}
div(v-if='this.params.length&&this.params[0].wind_speed')
span.type 风速:
span.value {{params[0].wind_speed}}
div(v-if='this.params.length&&this.params[0].wind_direction')
span.type 风向:
span.value {{params[0].wind_direction}}
div(v-if='this.params.length&&this.params[0].Illuminance')
span.type 光照度:
span.value {{params[0].Illuminance}}
div(v-if='this.params.length&&this.params[0].carbon_dioxide')
span.type CO2:
span.value {{params[0].carbon_dioxide}}
div(v-if='this.params.length&&this.params[0].fine_particles')
span.type PM2.5:
span.value {{params[0].fine_particles}}
div(v-if='this.params.length&&this.params[0].radiation')
span.type 辐射:
span.value {{params[0].radiation}}
div(v-if='this.params.length&&this.params[0].setting_temperature')
span.type 设定温度:
span.value {{params[0].setting_temperature}}
div(v-if='this.params.length&&this.params[0].setting_mode')
span.type 设定模式:
span.value {{params[0].setting_mode}}
div(v-if='this.params.length&&this.params[0].setting_wind_speed')
span.type 设定风速:
span.value {{params[0].setting_wind_speed}}
</template> </template>
<script> <script>
import { mapState } from 'vuex' import { mapState } from 'vuex'
export default { export default {
computed: { computed: {
...mapState('d2admin/user', ['info']) ...mapState('d2admin/user', ['info']),
...mapState('d2admin/paramsList', ['list'])
}, },
data() { data() {
return { return {
...@@ -76,17 +135,68 @@ export default { ...@@ -76,17 +135,68 @@ export default {
dataForm: { dataForm: {
id: 0, id: 0,
name: '' name: ''
},
dlsnjList: [], //多联室内机
dlswjList: [], //多联室外机
flrbList: [], //风冷热泵机组
jfktgList: [], //机房空调380
jfktpList: [], //机房空调220
pfjList: [], //排风机
sbList: [], //水泵
sljfgList: [], //室内机风柜
params: []
} }
}
}, },
created() {},
created() {
console.log(this.list)
this.setData()
},
methods: { methods: {
init(data, stationId) { init(data, stationId) {
console.log('---data:', data)
this.dataForm = data this.dataForm = data
this.dataForm.operatorName = this.info.name this.dataForm.operatorName = this.info.name
console.log('---data:', data)
console.log('当前资源点id', data.id)
console.log('类型', data.type)
switch (data.type) {
case '173466a2cf9a42a6a17b2bdfbeae36d5': //多联室内机
this.params = this.dlsnjList.filter((e) => e.resource_id == data.id)
break
case '8f5530fee2484e8eb107c0ca672132b2': //多联室外机
this.params = this.dlswjList.filter((e) => e.resource_id == data.id)
break
case 'b45827c068254695864ee3c1d42573cb': //风冷热泵机组
this.params = this.flrbList.filter((e) => e.resource_id == data.id)
break
case 'ece0b8b2db27411886254e81134988a3': //机房空调380
this.params = this.jfktgList.filter((e) => e.resource_id == data.id)
break
case 'b47661ca1d454f9792ba5369f3cb2bc5': //机房空调220
this.params = this.jfktpList.filter((e) => e.resource_id == data.id)
break
case 'b6af764f2a6e454490a6b1b3c9057e57': //排风机
this.params = this.pfjList.filter((e) => e.resource_id == data.id)
break
case 'f4c840711eae4bcb9536a890cdfda493': //水泵
this.params = this.sbList.filter((e) => e.resource_id == data.id)
break
case '303310efddb34a2e9bf269bdff8a7dc5': //水泵
this.params = this.sljfgList.filter((e) => e.resource_id == data.id)
break
}
console.log('params运行状态', this.params)
},
setData() {
this.dlsnjList = this.list.dlsnjList //多联室内机
this.dlswjList = this.list.dlswjList //多联室外机
this.flrbList = this.list.flrbList //风冷热泵机组
this.jfktgList = this.list.jfktgList //机房空调380
this.jfktpList = this.list.jfktpList //机房空调220
this.pfjList = this.list.pfjList //排风机
this.sbList = this.list.sbList //水泵
this.sljfgList = this.list.sljfgList //室内机风柜
}, },
closeQueryDetailVisible() { closeQueryDetailVisible() {
this.$emit('closeQ') this.$emit('closeQ')
}, },
...@@ -221,7 +331,7 @@ export default { ...@@ -221,7 +331,7 @@ export default {
width: 100%; width: 100%;
height: 170px; height: 170px;
text-align: center; text-align: center;
background: url('../../../assets/images/kt.jpg') no-repeat center; background: url("../../../assets/images/kt.jpg") no-repeat center;
background-size: 100% 100%; background-size: 100% 100%;
} }
</style> </style>
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