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

106 lines
3.1 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'"
2025-09-28 15:52:17 +08:00
class="sbjk-card-container running-card-container"
2025-09-26 14:47:45 +08:00
shadow="always">
<div slot="header">
2025-11-25 17:56:12 +08:00
<span class="large-title">{{item.deviceName}}</span>
<div class="alarm">
<el-button type="primary" size="small" style="margin-right:20px;" @click="pointDetail(item)">详细</el-button>
</div>
</div>
2025-09-26 14:47:45 +08:00
<el-row>
<el-col v-for="(tempDataItem,tempDataIndex) in tempData" :key="tempDataIndex+'ylTempData'" :span="8">
<span class="pointer" @click="showChart(tempDataItem.title,item.deviceId)">
2025-09-26 15:09:58 +08:00
{{tempDataItem.title}}{{item[tempDataItem.attr]}}<span v-html="tempDataItem.unit"></span>
</span>
2025-09-26 14:47:45 +08:00
</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>
2025-09-26 15:09:58 +08:00
<point-chart ref="pointChart" :site-id="siteId"/>
2025-11-25 17:56:12 +08:00
<point-table ref="pointTable"/>
2025-06-30 17:32:04 +08:00
</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";
2025-09-26 15:09:58 +08:00
import pointChart from "./../PointChart.vue";
2025-11-25 17:56:12 +08:00
import PointTable from "@/views/ems/site/sblb/PointTable.vue";
export default {
name:'DzjkSbjkYl',
2025-09-10 09:54:29 +08:00
mixins:[getQuerySiteId,intervalUpdate],
2025-11-25 17:56:12 +08:00
components:{pointChart,PointTable},
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;'},
2025-09-26 15:09:58 +08:00
{title:'VB01开度',attr:'vb01Kd',unit:'%'},
{title:'VB02开度',attr:'vb02Kd',unit:'%'},
]
}
},
methods:{
2025-11-25 17:56:12 +08:00
// 查看设备电位表格
pointDetail(row){
const {deviceId} = row
this.$refs.pointTable.showTable({siteId:this.siteId,deviceId,deviceCategory:'COOLING'})
},
showChart(pointName,deviceId){
pointName && this.$refs.pointChart.showChart({pointName,deviceCategory:'COOLING',deviceId})
2025-09-26 15:09:58 +08:00
},
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;
}
}
}
</style>