Files
emsfront/src/views/ems/dzjk/sbjk/yl/index.vue

99 lines
2.5 KiB
Vue
Raw Normal View History

<template>
2025-06-30 17:32:04 +08:00
<div v-loading="loading">
2025-09-26 14:47:45 +08:00
<el-card
v-for="(item,index) in list"
:key="index+'ylLise'"
class="sbjk-card-container running-card-container common-card-container-body-no-padding common-card-container-no-title-bg"
shadow="always">
<div slot="header">
<span class="large-title">{{index+1}}#{{item.deviceName}}</span>
</div>
2025-09-26 14:47:45 +08:00
<el-row>
<el-col v-for="(tempDataItem,tempDataIndex) in tempData" :key="tempDataIndex+'ylTempData'" :span="8">
{{tempDataItem.title}}{{item[tempDataItem.attr]}}<span v-html="tempDataItem.unit"></span>
</el-col>
</el-row>
</el-card>
2025-06-30 17:32:04 +08:00
<el-empty v-show="list.length<=0" :image-size="200"></el-empty>
</div>
</template>
<script>
2025-06-30 17:32:04 +08:00
import getQuerySiteId from "@/mixins/ems/getQuerySiteId";
import {getCoolingDataList} from '@/api/ems/dzjk'
2025-09-10 09:54:29 +08:00
import intervalUpdate from "@/mixins/ems/intervalUpdate";
export default {
name:'DzjkSbjkYl',
2025-09-10 09:54:29 +08:00
mixins:[getQuerySiteId,intervalUpdate],
data() {
return {
2025-06-30 17:32:04 +08:00
loading:false,
list:[],
tempData:[
2025-09-26 14:47:45 +08:00
{title:'供水温度',attr:'gsTemp',unit:'&#8451;'},
{title:'回水温度',attr:'hsTemp',unit:'&#8451;'},
{title:'供水压力',attr:'gsPressure',unit:'bar'},
{title:'回水压力',attr:'hsPressure',unit:'bar'},
{title:'冷源水温度',attr:'lysTemp',unit:'&#8451;'},
{title:'VB01 开度',attr:'vb01Kd',unit:'%'},
{title:'VB02 开度',attr:'vb02Kd',unit:'%'},
]
}
},
methods:{
2025-09-10 09:54:29 +08:00
updateData(){
2025-06-30 17:32:04 +08:00
this.loading = true
getCoolingDataList(this.siteId).then(response => {
this.list = JSON.parse(JSON.stringify(response?.data || []));
}).finally(() => {this.loading = false})
2025-09-10 09:54:29 +08:00
},
init(){
this.updateData()
this.updateInterval(this.updateData)
2025-06-30 17:32:04 +08:00
}
},
mounted(){
}
}
</script>
<style scoped lang="scss">
2025-09-26 14:47:45 +08:00
.sbjk-card-container{
&:not(:last-child){
margin-bottom: 25px;
}
2025-09-26 14:47:45 +08:00
.el-row{
background-color: #ffffff;
border:1px solid #eeeeee;
font-size: 14px;
2025-09-26 14:47:45 +08:00
line-height: 16px;
color: #333333;
.el-col{
padding:12px 0;
text-align: center;
2025-09-26 14:47:45 +08:00
position: relative;
}
2025-09-26 14:47:45 +08:00
.el-col{
border-bottom: 1px solid #eeeeee;
}
2025-09-26 14:47:45 +08:00
.el-col:not(:nth-child(3n)){
border-right: 1px solid #eeeeee;
}
}
}
.yl-warn-item-container{
background-color: #FFF1F0;
.header{
.header-title{
background-color: #FC6B69;
}
.header-values{
color: #FC6B69;
}
}
}
</style>