单体电池数据点击可以查看表格
This commit is contained in:
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user