单体电池数据点击可以查看表格

This commit is contained in:
2025-07-18 19:15:05 +08:00
parent 62eb0e7e7d
commit 658fa5042c
2 changed files with 79 additions and 24 deletions

View File

@ -48,18 +48,50 @@
prop="voltage"
label="电压V"
>
<template slot-scope="scope">
<el-button
@click="chartDetail(scope.row,'voltage')"
type="text"
size="small">
{{scope.row.voltage}}
</el-button>
</template>
</el-table-column>
<el-table-column
prop="temperature"
label="温度(℃)">
<template slot-scope="scope">
<el-button
@click="chartDetail(scope.row,'temperature')"
type="text"
size="small">
{{scope.row.temperature}}
</el-button>
</template>
</el-table-column>
<el-table-column
prop="soc"
label="SOC%">
<template slot-scope="scope">
<el-button
@click="chartDetail(scope.row,'soc')"
type="text"
size="small">
{{scope.row.soc}}
</el-button>
</template>
</el-table-column>
<el-table-column
prop="soh"
label="SOH%">
<template slot-scope="scope">
<el-button
@click="chartDetail(scope.row,'soh')"
type="text"
size="small">
{{scope.row.soh}}
</el-button>
</template>
</el-table-column>
<el-table-column
label="曲线图">
@ -115,9 +147,9 @@ export default {
},
methods:{
//查看表格行图表
chartDetail(row){
chartDetail(row,dataType = ''){
const { clusterDeviceId, deviceId} = row,{siteId} = this
this.$refs.chartDetail.initChart({siteId,clusterDeviceId,deviceId})
this.$refs.chartDetail.initChart({siteId,clusterDeviceId,deviceId},dataType)
},
// 分页
handleSizeChange(val) {