设备检控官查看点位图表

This commit is contained in:
白菜
2025-09-13 22:56:07 +08:00
parent 98e2c4c3be
commit 52b6083baa
4 changed files with 9 additions and 9 deletions

View File

@ -24,7 +24,7 @@
<el-table
class="common-table"
:data="zbInfo.loadDataDetailInfo"
@cell-click="handlerCell"
@cell-click="(row,col)=>{handlerCell(zbInfo.deviceId,row,col)}"
stripe
style="width: 100%"
>
@ -61,7 +61,7 @@
<el-table
class="common-table"
:data="cnbInfo.meteDataDetailInfo"
@cell-click="handlerCellCN"
@cell-click="(row,col)=>{handlerCellCN(cnbInfo.deviceId,row,col)}"
stripe
style="width: 100%"
>
@ -92,18 +92,18 @@ export default {
};
},
methods: {
handlerCell(row,column){
handlerCell(id,row,column){
if(column.label !== '类别'){
const arr = row.category.split('')
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 !== '类别'){
const arr = row.category.split('')
arr.splice(2,arr.length-2,column.label)
this.showChart(arr.join(''),'电表')
this.showChart(arr.join(''),'电表',id)
}
},
showChart(pointName,categoryName,deviceId){