单体电池图表、设备列表点位清单图表

This commit is contained in:
2025-10-12 23:10:15 +08:00
parent 376b50c3b5
commit 679f8f2a07
7 changed files with 645 additions and 381 deletions

View File

@ -8,10 +8,10 @@
>
<el-table-column prop="deviceId" label="单体编号"> </el-table-column>
<el-table-column prop="clusterDeviceId" label="簇号"> </el-table-column>
<el-table-column prop="voltage" label="电压V">
<el-table-column prop="voltage" label="电压 (V)">
<template slot-scope="scope">
<el-button
@click="chartDetail(scope.row, 'voltage')"
@click="chartDetail(scope.row, '电压 (V)')"
type="text"
size="small"
>
@ -19,10 +19,10 @@
</el-button>
</template>
</el-table-column>
<el-table-column prop="temperature" label="温度(℃)">
<el-table-column prop="temperature" label="温度 (℃)">
<template slot-scope="scope">
<el-button
@click="chartDetail(scope.row, 'temperature')"
@click="chartDetail(scope.row, '温度 (℃)')"
type="text"
size="small"
>
@ -30,10 +30,10 @@
</el-button>
</template>
</el-table-column>
<el-table-column prop="soc" label="SOC%">
<el-table-column prop="soc" label="SOC (%)">
<template slot-scope="scope">
<el-button
@click="chartDetail(scope.row, 'soc')"
@click="chartDetail(scope.row, 'SOC (%)')"
type="text"
size="small"
>
@ -41,10 +41,10 @@
</el-button>
</template>
</el-table-column>
<el-table-column prop="soh" label="SOH%">
<el-table-column prop="soh" label="SOH (%)">
<template slot-scope="scope">
<el-button
@click="chartDetail(scope.row, 'soh')"
@click="chartDetail(scope.row, 'SOH (%)')"
type="text"
size="small"
>
@ -52,13 +52,13 @@
</el-button>
</template>
</el-table-column>
<el-table-column label="曲线图">
<!-- <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-column> -->
</el-table>
<!-- <el-pagination
v-show="tableData.length > 0"
@ -116,7 +116,7 @@ export default {
//查看表格行图表
chartDetail(row, dataType = "") {
const { clusterDeviceId, deviceId } = row;
this.$emit("chart", { clusterDeviceId, deviceId, dataType });
this.$emit("chart", { ...row, dataType });
},
},
};