From 031fab286b9a2b367d2585388c0089ac680d26da Mon Sep 17 00:00:00 2001 From: stt Date: Fri, 28 Nov 2025 14:34:16 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=B5=E5=8E=8B=E6=9A=82=E5=8D=87=E7=9A=84?= =?UTF-8?q?=E6=97=B6=E5=80=99=E6=98=BE=E7=A4=BA/?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/harmonic-boot/cockpit/cockpit.ts | 9 +++++++++ .../transientDetails/components/transientList.vue | 5 ++--- .../components/transientStatisticsDetail.vue | 2 +- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/api/harmonic-boot/cockpit/cockpit.ts b/src/api/harmonic-boot/cockpit/cockpit.ts index acd50c5..34ed61b 100644 --- a/src/api/harmonic-boot/cockpit/cockpit.ts +++ b/src/api/harmonic-boot/cockpit/cockpit.ts @@ -252,4 +252,13 @@ export function analyseWave(data: any) { }) } +// 暂态监测点下拉框接口 +export function getSimpleLine() { + return request({ + url: '/cs-device-boot/csline/getSimpleLine', + method: 'get' + }) +} + + diff --git a/src/components/cockpit/transientDetails/components/transientList.vue b/src/components/cockpit/transientDetails/components/transientList.vue index c88768a..7048b12 100644 --- a/src/components/cockpit/transientDetails/components/transientList.vue +++ b/src/components/cockpit/transientDetails/components/transientList.vue @@ -68,7 +68,6 @@ const getSimpleLineList = async () => { options.value = res.data } - const tableStore: any = new TableStore({ url: '/cs-harmonic-boot/event/pageEvent', method: 'POST', @@ -109,7 +108,7 @@ const tableStore: any = new TableStore({ width: '100', formatter: (row: any) => { // 当暂态类型不是电压暂升时,计算暂降深度 = 100 - 特征幅值 - if (row.tag !== '电压暂升') { + if (row.row.tag !== '电压暂升') { const amplitude = parseFloat(row.row.amplitude) if (!isNaN(amplitude)) { return 100 - amplitude @@ -192,7 +191,7 @@ const tableStore: any = new TableStore({ icon: 'el-icon-DataLine', render: 'basicButton', disabled: row => { - return !(!row.wavePath && row.evtParamTm < 20) + return !!row.wavePath } } ] diff --git a/src/components/cockpit/transientStatistics/components/transientStatisticsDetail.vue b/src/components/cockpit/transientStatistics/components/transientStatisticsDetail.vue index 5630198..ee5b582 100644 --- a/src/components/cockpit/transientStatistics/components/transientStatisticsDetail.vue +++ b/src/components/cockpit/transientStatistics/components/transientStatisticsDetail.vue @@ -109,7 +109,7 @@ const tableStore: any = new TableStore({ width: '100', formatter: (row: any) => { // 当暂态类型不是电压暂升时,计算暂降深度 = 100 - 特征幅值 - if (row.tag !== '电压暂升') { + if (row.row.tag !== '电压暂升') { const amplitude = parseFloat(row.row.amplitude) if (!isNaN(amplitude)) { return 100 - amplitude