From 8cd3e14922cdbc4c3a33c85cc767c080c500860e Mon Sep 17 00:00:00 2001 From: stt Date: Fri, 14 Nov 2025 09:50:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/harmonicRatio‌.vue | 6 +-- .../components/harmonicRatio‌.vue | 6 +-- .../components/transientStatisticsDetail.vue | 54 +++++++++++++++---- 3 files changed, 50 insertions(+), 16 deletions(-) diff --git a/src/components/cockpit/indicatorFittingChart/components/harmonicRatio‌.vue b/src/components/cockpit/indicatorFittingChart/components/harmonicRatio‌.vue index 34e966b..9fdb57d 100644 --- a/src/components/cockpit/indicatorFittingChart/components/harmonicRatio‌.vue +++ b/src/components/cockpit/indicatorFittingChart/components/harmonicRatio‌.vue @@ -117,7 +117,7 @@ const showEchart = ref(true) const num = ref(0) const timeControl = ref(false) //值类型 -const pageHeight = ref(mainHeight(332)) +const pageHeight = ref(mainHeight(412)) const loading = ref(true) const searchForm: any = ref({}) const tableHeaderRef = ref() @@ -577,9 +577,9 @@ const setTimeControl = () => { const selectChange = (flag: boolean) => { if (flag) { - pageHeight.value = mainHeight(372) + pageHeight.value = mainHeight(452) } else { - pageHeight.value = mainHeight(332) + pageHeight.value = mainHeight(412) } } //导出 diff --git a/src/components/cockpit/overLimitStatistics/components/harmonicRatio‌.vue b/src/components/cockpit/overLimitStatistics/components/harmonicRatio‌.vue index 79d8024..87bc0fd 100644 --- a/src/components/cockpit/overLimitStatistics/components/harmonicRatio‌.vue +++ b/src/components/cockpit/overLimitStatistics/components/harmonicRatio‌.vue @@ -117,7 +117,7 @@ const showEchart = ref(true) const num = ref(0) const timeControl = ref(false) //值类型 -const pageHeight = ref(mainHeight(332)) +const pageHeight = ref(mainHeight(412)) const loading = ref(true) const searchForm: any = ref({}) const tableHeaderRef = ref() @@ -577,9 +577,9 @@ const setTimeControl = () => { const selectChange = (flag: boolean) => { if (flag) { - pageHeight.value = mainHeight(372) + pageHeight.value = mainHeight(452) } else { - pageHeight.value = mainHeight(332) + pageHeight.value = mainHeight(412) } } //导出 diff --git a/src/components/cockpit/transientStatistics/components/transientStatisticsDetail.vue b/src/components/cockpit/transientStatistics/components/transientStatisticsDetail.vue index 8d1ebeb..4f60bb2 100644 --- a/src/components/cockpit/transientStatistics/components/transientStatisticsDetail.vue +++ b/src/components/cockpit/transientStatistics/components/transientStatisticsDetail.vue @@ -23,9 +23,14 @@
- - + + @@ -36,12 +41,14 @@ import TableHeader from '@/components/table/header/index.vue' import TableStore from '@/utils/tableStore' import { mainHeight } from '@/utils/layout' import waveFormAnalysis from '@/views/govern/device/control/tabs/components/waveFormAnalysis.vue' +import { analyseWave } from '@/api/common' const dialogVisible: any = ref(false) -const harmonicRatio‌Ref: any = ref(null) +const waveFormAnalysisRef: any = ref(null) // 波形 const isWaveCharts = ref(false) const loading = ref(false) const wp = ref({}) +const boxoList: any = ref({}) const options = [ { @@ -67,7 +74,7 @@ const tableStore: any = new TableStore({ }, { title: '暂态时间', - field: 'time', + field: 'time' }, { title: '测点名称', @@ -77,7 +84,7 @@ const tableStore: any = new TableStore({ { title: '暂态类型', field: 'flicker', - width: '100', + width: '100' }, { title: '特征幅值(%)', @@ -94,12 +101,12 @@ const tableStore: any = new TableStore({ field: 'flicker', width: '100' }, - { + { title: '严重度', field: 'flicker', width: '80' }, - { + { title: '波形', width: '100', render: 'buttons', @@ -110,7 +117,35 @@ const tableStore: any = new TableStore({ type: 'primary', icon: 'el-icon-EditPen', render: 'basicButton', - click: row => { + loading: 'loading1', + // disabled: row => { + // return !row.wavePath + // }, + click: async row => { + row.loading1 = true + loading.value = true + isWaveCharts.value = true + await analyseWave(row.id) + .then(res => { + row.loading1 = false + if (res != undefined) { + boxoList.value = row + boxoList.value.featureAmplitude = + row.evtParamVVaDepth != '-' ? row.evtParamVVaDepth - 0 : null + boxoList.value.systemType = 'WX' + wp.value = res.data + } + loading.value = false + }) + .catch(() => { + row.loading1 = false + loading.value = false + }) + + nextTick(() => { + waveFormAnalysisRef.value && + waveFormAnalysisRef.value.getWpData(wp.value, boxoList.value, true) + }) } } ] @@ -152,7 +187,6 @@ const cellClickEvent = ({ row, column }: any) => { } } - defineExpose({ open })