单体电池表格曲线图,统计报表概览统计没有数据返回 隐藏

This commit is contained in:
2025-07-17 17:47:18 +08:00
parent e9c8b10d29
commit 62eb0e7e7d
4 changed files with 179 additions and 3 deletions

View File

@ -61,6 +61,17 @@
prop="soh"
label="SOH%">
</el-table-column>
<el-table-column
label="曲线图">
<template slot-scope="scope">
<el-button
@click="chartDetail(scope.row)"
type="text"
size="small">
展示
</el-button>
</template>
</el-table-column>
</el-table>
<el-pagination
v-show="tableData.length>0"
@ -75,7 +86,7 @@
style="margin-top:15px;text-align: center"
>
</el-pagination>
<chart-detail ref="chartDetail"/>
</el-card>
</template>
@ -84,10 +95,11 @@
import BarChart from './BarChart'
import {getStackNameList, getClusterNameList, getClusterDataInfoList} from '@/api/ems/dzjk'
import getQuerySiteId from "@/mixins/ems/getQuerySiteId";
import ChartDetail from "./ChartDetail.vue";
export default {
name:'DzjkSbjkDtdc',
mixins:[getQuerySiteId],
components:{BarChart},
components:{BarChart, ChartDetail},
data() {
return {
loading:false,
@ -102,6 +114,11 @@ export default {
}
},
methods:{
//查看表格行图表
chartDetail(row){
const { clusterDeviceId, deviceId} = row,{siteId} = this
this.$refs.chartDetail.initChart({siteId,clusterDeviceId,deviceId})
},
// 分页
handleSizeChange(val) {
this.pageSize = val;