From 4cc8f107a175f5ff184a22fb2264a5646e3fc6b3 Mon Sep 17 00:00:00 2001 From: zhujiyan <17812234322@163.com> Date: Fri, 1 Nov 2024 14:45:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=97=B4=E8=B0=90=E6=B3=A2?= =?UTF-8?q?=E6=AC=A1=E6=95=B0=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/govern/device/planData/index.vue | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/views/govern/device/planData/index.vue b/src/views/govern/device/planData/index.vue index 10564da..d1a0ee5 100644 --- a/src/views/govern/device/planData/index.vue +++ b/src/views/govern/device/planData/index.vue @@ -428,10 +428,16 @@ const init = (flag: boolean) => { }) }) let lists: any = [] + let frequencys: any = null countData.value.map((item: any, index: any) => { + if (item.name.includes('间谐波电压')) { + frequencys = item.count + 0.5 + } else { + frequencys = item.count + } lists[index] = { statisticalId: item.index, - frequencys: item.count && item.count.length != 0 ? [item.count] : [] + frequencys: frequencys && frequencys.length != 0 ? [frequencys] : [] } }) let obj = { @@ -760,10 +766,10 @@ const formatCountOptions = (list: any) => { if (item.name.includes('谐波电流有效值')) { item.name = '谐波电流次数' } - if (item.name=='谐波电压含有率') { + if (item.name == '谐波电压含有率') { item.name = '谐波电压次数' } - if (item.name=='间谐波电压含有率') { + if (item.name == '间谐波电压含有率') { item.name = '间谐波电压次数' } })