2025-06-22 17:22:40 +08:00
< template >
2025-06-30 17:32:04 +08:00
< div v-loading = "loading" >
<!-- todo 判断条件是否需要更新 -- >
< div class = "yl-item-container" : class = "{'yl-warn-item-container':item.workMode !== '0'}" v-for = "(item,index) in list" :key="index+'ylLise'" >
2025-06-22 17:22:40 +08:00
< div class = "header" >
2025-06-30 17:32:04 +08:00
< div class = "header-title" > { { item . systemName } } < / div >
< div > 工作模式 : < span class = "header-values" > { { $store . state . ems . workModeOptions [ item . workMode ] } } < / span > < / div >
< div > 当前温度 : < span class = "header-values" > { { item . currentTemperature } } & # 8451 ; < / span > < / div >
2025-06-22 17:22:40 +08:00
< / div >
< div class = "content" >
< el-row >
2025-06-30 17:32:04 +08:00
< el-col v-for = "(tempDataItem,tempDataIndex) in tempData" :key="tempDataIndex+'ylTempData'" :span="8" > {{ tempDataItem.title }} : {{ item [ tempDataItem.attr ] }} & # 8451 ; < / el -col >
2025-06-22 17:22:40 +08:00
< / el-row >
< / div >
< / div >
2025-06-30 17:32:04 +08:00
< el-empty v-show = "list.length<=0" :image-size="200" > < / el -empty >
< / div >
2025-06-22 17:22:40 +08:00
< / template >
< script >
2025-06-30 17:32:04 +08:00
import getQuerySiteId from "@/mixins/ems/getQuerySiteId" ;
import { getCoolingDataList } from '@/api/ems/dzjk'
2025-06-22 17:22:40 +08:00
export default {
name : 'DzjkSbjkYl' ,
2025-06-30 17:32:04 +08:00
mixins : [ getQuerySiteId ] ,
2025-06-22 17:22:40 +08:00
data ( ) {
return {
2025-06-30 17:32:04 +08:00
loading : false ,
list : [ ] ,
2025-06-22 17:22:40 +08:00
tempData : [
2025-06-30 17:32:04 +08:00
{ title : '制热开启点' , attr : 'heatingStartPoint' } ,
{ title : '制冷开启点' , attr : 'coolingStartPoint' } ,
{ title : '高温告警点' , attr : 'highTempAlarmPoint' } ,
{ title : '制热停止点' , attr : 'heatingStopPoint' } ,
{ title : '制冷停止点' , attr : 'coolingStopPoint' } ,
{ title : '低温告警点' , attr : 'lowTempAlarmPoint' } ,
2025-06-22 17:22:40 +08:00
]
}
} ,
methods : {
2025-06-30 17:32:04 +08:00
init ( ) {
this . loading = true
getCoolingDataList ( this . siteId ) . then ( response => {
this . list = JSON . parse ( JSON . stringify ( response ? . data || [ ] ) ) ;
} ) . finally ( ( ) => { this . loading = false } )
}
2025-06-22 17:22:40 +08:00
} ,
mounted ( ) {
}
}
< / script >
< style scoped lang = "scss" >
. yl - item - container {
border - radius : 5 px ;
background - color : # EBF6F6 ;
& : not ( : last - child ) {
margin - bottom : 25 px ;
}
. header {
line - height : 40 px ;
font - size : 14 px ;
> div {
display : inline - block ;
margin - right : 40 px ;
}
. header - title {
border - radius : 5 px 0 5 px 0 ;
color : # ffffff ;
width : 120 px ;
height : 40 px ;
font - size : 16 px ;
background - color : # 05 AEA3 ;
text - align : center ;
}
. header - values {
color : # 05 AEA3 ;
font - weight : 500 ;
}
}
. content {
padding : 25 px ;
. el - row {
background - color : # ffffff ;
border : 1 px solid # eeeeee ;
line - height : 14 px ;
color : # 333333 ;
font - size : 12 px ;
. el - col {
padding : 10 px 0 ;
text - align : center ;
}
. el - col : nth - child ( - n + 3 ) {
border - bottom : 1 px solid # eeeeee ;
}
. el - col : not ( : nth - child ( 3 n ) ) {
border - right : 1 px solid # eeeeee ;
}
}
}
}
. yl - warn - item - container {
background - color : # FFF1F0 ;
. header {
. header - title {
background - color : # FC6B69 ;
}
. header - values {
color : # FC6B69 ;
}
}
}
< / style >