设备检控官查看点位图表
This commit is contained in:
@ -130,7 +130,7 @@ export default {
|
|||||||
endDate=end
|
endDate=end
|
||||||
}
|
}
|
||||||
|
|
||||||
getPointValueList({siteIds:[this.siteId],dataUnit,categoryName:this.categoryName,pointName:this.pointName,startDate,endDate,siteDeviceMap:{}}).then(response => {
|
getPointValueList({siteIds:[this.siteId],deviceId:this.deviceId,dataUnit,categoryName:this.categoryName,pointName:this.pointName,startDate,endDate,siteDeviceMap:{}}).then(response => {
|
||||||
this.setOption(response?.data || [])
|
this.setOption(response?.data || [])
|
||||||
}).finally(()=>{
|
}).finally(()=>{
|
||||||
this.hideLoading()
|
this.hideLoading()
|
||||||
|
|||||||
@ -105,7 +105,7 @@ export default {
|
|||||||
'温度单体平均值':'温度平均值',
|
'温度单体平均值':'温度平均值',
|
||||||
'温度单体最大值':'最高单体温度',
|
'温度单体最大值':'最高单体温度',
|
||||||
'SOC单体最小值':'最低单体SOC',
|
'SOC单体最小值':'最低单体SOC',
|
||||||
'SOC单体平均值':'',
|
'SOC单体平均值':'当前SOC',
|
||||||
'SOC单体最大值':'最高单体SOC',
|
'SOC单体最大值':'最高单体SOC',
|
||||||
},
|
},
|
||||||
baseInfoList:[],
|
baseInfoList:[],
|
||||||
|
|||||||
@ -24,7 +24,7 @@
|
|||||||
<el-table
|
<el-table
|
||||||
class="common-table"
|
class="common-table"
|
||||||
:data="zbInfo.loadDataDetailInfo"
|
:data="zbInfo.loadDataDetailInfo"
|
||||||
@cell-click="handlerCell"
|
@cell-click="(row,col)=>{handlerCell(zbInfo.deviceId,row,col)}"
|
||||||
stripe
|
stripe
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
>
|
>
|
||||||
@ -61,7 +61,7 @@
|
|||||||
<el-table
|
<el-table
|
||||||
class="common-table"
|
class="common-table"
|
||||||
:data="cnbInfo.meteDataDetailInfo"
|
:data="cnbInfo.meteDataDetailInfo"
|
||||||
@cell-click="handlerCellCN"
|
@cell-click="(row,col)=>{handlerCellCN(cnbInfo.deviceId,row,col)}"
|
||||||
stripe
|
stripe
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
>
|
>
|
||||||
@ -92,18 +92,18 @@ export default {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handlerCell(row,column){
|
handlerCell(id,row,column){
|
||||||
if(column.label !== '类别'){
|
if(column.label !== '类别'){
|
||||||
const arr = row.category.split('')
|
const arr = row.category.split('')
|
||||||
arr.splice(6,0,column.label[0])
|
arr.splice(6,0,column.label[0])
|
||||||
this.showChart(arr.join(''),'电表')
|
this.showChart(arr.join(''),'电表',id)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handlerCellCN(row,column){
|
handlerCellCN(id,row,column){
|
||||||
if(column.label !== '类别'){
|
if(column.label !== '类别'){
|
||||||
const arr = row.category.split('')
|
const arr = row.category.split('')
|
||||||
arr.splice(2,arr.length-2,column.label)
|
arr.splice(2,arr.length-2,column.label)
|
||||||
this.showChart(arr.join(''),'电表')
|
this.showChart(arr.join(''),'电表',id)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
showChart(pointName,categoryName,deviceId){
|
showChart(pointName,categoryName,deviceId){
|
||||||
|
|||||||
@ -30,7 +30,7 @@
|
|||||||
<div class="descriptions-main descriptions-main-bg-color">
|
<div class="descriptions-main descriptions-main-bg-color">
|
||||||
<el-descriptions labelClassName="descriptions-label" contentClassName="descriptions-direction" direction="vertical" :column="4" :colon="false">
|
<el-descriptions labelClassName="descriptions-label" contentClassName="descriptions-direction" direction="vertical" :column="4" :colon="false">
|
||||||
<el-descriptions-item v-for="(item,index) in infoData" :key="index+'pcsInfoData'" :span="1" :label="item.label">
|
<el-descriptions-item v-for="(item,index) in infoData" :key="index+'pcsInfoData'" :span="1" :label="item.label">
|
||||||
<span class="pointer" @click="showChart(item.pointName || '','PCS设备',pcsItem.deviceId)">
|
<span class="pointer" @click="showChart(item.pointName || '','PCS',pcsItem.deviceId)">
|
||||||
{{pcsItem[item.attr] | formatNumber}} <span v-if="item.unit" v-html="item.unit"></span>
|
{{pcsItem[item.attr] | formatNumber}} <span v-if="item.unit" v-html="item.unit"></span>
|
||||||
</span>
|
</span>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
|
|||||||
Reference in New Issue
Block a user