From 515dcfe76c340df6da643ce0f8409d696e350d03 Mon Sep 17 00:00:00 2001 From: stt Date: Fri, 28 Nov 2025 16:33:32 +0800 Subject: [PATCH] =?UTF-8?q?=E8=81=94=E8=B0=83=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/cockpit/F47Curve/index.vue | 24 +++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/components/cockpit/F47Curve/index.vue b/src/components/cockpit/F47Curve/index.vue index 4323007..3bf471b 100644 --- a/src/components/cockpit/F47Curve/index.vue +++ b/src/components/cockpit/F47Curve/index.vue @@ -34,12 +34,8 @@ import { ref, onMounted, provide, reactive, watch, h } from 'vue' import TableStore from '@/utils/tableStore' import MyEchart from '@/components/echarts/MyEchart.vue' -import { ElMessage, ElMessageBox } from 'element-plus' -import { getTimeOfTheMonth } from '@/utils/formatTime' import waveFormAnalysis from '@/views/govern/device/control/tabs/components/waveFormAnalysis.vue' import TableHeader from '@/components/table/header/index.vue' -import { useRoute } from 'vue-router' -import { useTimeCacheStore } from '@/stores/timeCache' import { analyseWave } from '@/api/common' const prop = defineProps({ @@ -76,7 +72,7 @@ const fullscreen = computed(() => { } }) -const echartList = ref({}) +const echartList = ref() const chartRef = ref() // 波形 @@ -112,7 +108,6 @@ const tableStore: any = new TableStore({ data.gs = tableStore.table.data.length data.krr = gongData.pointI.length data.bkrr = gongData.pointIun.length - // console.log(gongData,'789000') echartList.value = { title: { text: `F47曲线` @@ -262,8 +257,9 @@ function gongfunction(arr: any) { let yy = arr[i].eventValue let time = arr[i].time let eventId = arr[i].eventId + let lineName = arr[i].lineName // let index =arr[i].eventDetailIndex; - point = [xx, yy, time, eventId] + point = [xx, yy, time, eventId, lineName] if (xx <= 0.003) { let line = 0 @@ -409,7 +405,7 @@ onMounted(() => { }) // 点击事件处理函数 -const handleChartClick = (params: any, e: any) => { +const handleChartClick = (params: any) => { if (params.seriesName === '可容忍事件') { // 处理可容忍事件点击 dialogTitle.value = '可容忍事件波形分析' @@ -430,15 +426,19 @@ const handleTolerableEventClick = async (row: any) => { nextTick(() => { if (waveFormAnalysisRef.value) { //waveFormAnalysisRef.value.setHeight(false, 360) - waveFormAnalysisRef.value.setHeight(999, 130, 1.6666666) + waveFormAnalysisRef.value.setHeight(999, 130, 1.6666666) } }) - await analyseWave(row.value[3]) + await analyseWave(row.value[3]) //eventId .then(res => { row.loading1 = false if (res != undefined) { - boxoList.value = row - boxoList.value.featureAmplitude = row.evtParamVVaDepth != '-' ? row.evtParamVVaDepth - 0 : null + boxoList.value = { + persistTime: row.value[0], //持续时间 + featureAmplitude: (row.value[1] / 100).toFixed(2), //残余电压 + startTime: row.value[2], //时间 + lineName: row.value[4] //监测点名称 + } boxoList.value.systemType = 'YPT' wp.value = res.data }