设备系数
This commit is contained in:
parent
3de827f579
commit
ba3b7c65a8
|
@ -6,6 +6,12 @@ const filters = {
|
|||
}
|
||||
return num.toFixed(2);
|
||||
},
|
||||
fix3(num) {
|
||||
if (num == null) {
|
||||
return num;
|
||||
}
|
||||
return num.toFixed(3);
|
||||
},
|
||||
// 缺省值
|
||||
defaultValue(data) {
|
||||
return data == null ? '--' : data;
|
||||
|
|
|
@ -116,6 +116,9 @@
|
|||
<el-descriptions-item label="总用电量">
|
||||
{{deviceData.totalElectriQuantity | money | defaultValue}} 度
|
||||
</el-descriptions-item>
|
||||
<!-- <el-descriptions-item label="电压系数">-->
|
||||
<!-- {{deviceData.vxs | fix3 | defaultValue}}-->
|
||||
<!-- </el-descriptions-item>-->
|
||||
<el-descriptions-item label="电量读数">
|
||||
{{deviceData.totalElectriQuantity - deviceData.initReading | money | defaultValue}} 度
|
||||
<el-link @click="handleInitReading" type="primary" icon="el-icon-refresh" style="margin-left: 0.5em">重置</el-link>
|
||||
|
@ -178,6 +181,11 @@
|
|||
<el-col :span="8">
|
||||
<el-statistic style="margin-bottom: 8px" title="功率" :value="deviceData.realTimePower" :precision="2" suffix="W"/>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-statistic style="margin-bottom: 8px" title="电压系数">
|
||||
<template #formatter>{{deviceData.vxs | fix3 | defaultValue}}</template>
|
||||
</el-statistic>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-card>
|
||||
</el-col>
|
||||
|
|
Loading…
Reference in New Issue
Block a user