From fbd26bc15b7614dbb5794cf4da20a4a7c7e8d502 Mon Sep 17 00:00:00 2001
From: GGJ <357021191@qq.com>
Date: Tue, 7 Jan 2025 16:33:37 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B2=BB=E7=90=86=E6=B5=8B?=
=?UTF-8?q?=E8=AF=95=E5=8F=8D=E9=A6=88=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/govern/alarm/Transient.vue | 2 +-
src/views/govern/analyze/DVR/index.vue | 17 ++++++++++++-----
src/views/govern/device/control/tabs/event.vue | 2 +-
3 files changed, 14 insertions(+), 7 deletions(-)
diff --git a/src/views/govern/alarm/Transient.vue b/src/views/govern/alarm/Transient.vue
index 438deb9..9dff4b5 100644
--- a/src/views/govern/alarm/Transient.vue
+++ b/src/views/govern/alarm/Transient.vue
@@ -118,7 +118,7 @@ const tableStore = new TableStore({
{ title: '事件发生位置', field: 'evtParamPosition', align: 'center' },
{ title: '相别', field: 'evtParamPhase', align: 'center' },
{ title: '持续时间(s)', field: 'evtParamTm', align: 'center' },
- { title: '暂降深度(%)', field: 'evtParamVVaDepth', align: 'center' },
+ { title: '暂降(聚升)幅值(%)',minWidth: 100, field: 'evtParamVVaDepth', align: 'center' },
{ title: '发生时刻', field: 'startTime', align: 'center', width: '240' },
{
title: '操作',
diff --git a/src/views/govern/analyze/DVR/index.vue b/src/views/govern/analyze/DVR/index.vue
index 72cb076..1f3a34c 100644
--- a/src/views/govern/analyze/DVR/index.vue
+++ b/src/views/govern/analyze/DVR/index.vue
@@ -3,7 +3,7 @@
-
+
@@ -90,7 +90,7 @@ const eventList = ref([{
label: '电压暂降'
},
{
- value: 'Evt_Sys_IntrStr',
+ value: 'Evt_Sys_SwlStr',
label: '电压暂升'
},
{
@@ -114,7 +114,13 @@ const tableStore = new TableStore({
{ title: '事件描述', field: 'showName', },
{ title: '发生位置', field: 'evtParamPosition' },
{ title: '持续时间(s)', field: 'evtParamTm' },
- { title: '暂降深度', field: 'evtParamVVaDepth' },
+ {
+ title: '暂降(聚升)幅值(%)', field: 'evtParamVVaDepth', formatter: (row: any) => {
+ let a = row.cellValue.split('%')[0] - 0
+ console.log("🚀 ~ a:", a)
+ return a ? a.toFixed(2) : '/'
+ }
+ },
{ title: '发生时刻', field: 'startTime' },
{
title: '操作',
@@ -204,12 +210,13 @@ const tableStore = new TableStore({
tableStore.table.data.forEach((item: any) => {
item.loading = false
item.evtParamTm = item.evtParamTm.split('s')[0]
+
})
}
})
tableStore.table.params.type = 0
-tableStore.table.params.eventType=''
-tableStore.table.params.location=''
+tableStore.table.params.eventType = ''
+tableStore.table.params.location = ''
provide('tableStore', tableStore)
const nodeClick = async (e: anyObj) => {
// console.log("🚀 ~ nodeClick ~ e:", e)
diff --git a/src/views/govern/device/control/tabs/event.vue b/src/views/govern/device/control/tabs/event.vue
index fb2a54e..a5f52eb 100644
--- a/src/views/govern/device/control/tabs/event.vue
+++ b/src/views/govern/device/control/tabs/event.vue
@@ -63,7 +63,7 @@ const tableStore: any = new TableStore({
{
field: 'featureAmplitude',
title: '暂降(聚升)幅值(%)',
- minWidth: 100,
+ width: 100,
formatter: (row: any) => {
row.cellValue = row.cellValue + '' ? row.cellValue.toFixed(2) : '/'
if (String(row.cellValue).split('.')[1] == '00') {