设备详情修改

This commit is contained in:
仲么了
2023-11-08 10:50:53 +08:00
parent 69f28285c2
commit a0dd460f53
2 changed files with 6 additions and 4 deletions

View File

@@ -50,7 +50,7 @@
<template v-for="(item, index) in renderData.补偿电流"> <template v-for="(item, index) in renderData.补偿电流">
<view class="item">{{ item.phase }}</view> <view class="item">{{ item.phase }}</view>
<view class="item">{{ item['Apf_RmsI_TolOut(A)'] || '-' }}</view> <view class="item">{{ item['Apf_RmsI_TolOut(A)'] || '-' }}</view>
<view class="item">-</view> <view class="item">{{ item['load_Rate'] || '-' }}</view>
</template> </template>
</view> </view>
</view> </view>
@@ -117,6 +117,9 @@ export default {
case 'Apf_PhV_Sys(V)': case 'Apf_PhV_Sys(V)':
key = '补偿电流' key = '补偿电流'
break break
case 'load_Rate':
key = '补偿电流'
break
default: default:
key = '未知' key = '未知'
break break

View File

@@ -425,10 +425,9 @@ export default {
// } // }
// }) // })
this.IOData = JSON.parse(message.toString()) this.IOData = JSON.parse(message.toString())
this.IOData = this.IOData.filter((item) => item.value !== 0)
this.IOData.forEach((item) => { this.IOData.forEach((item) => {
if (item.value === 0) { if (!item.value) {
item.value = '0'
} else if (!item.value) {
item.value = '' item.value = ''
} }
}) })