联调修改

This commit is contained in:
stt
2025-11-28 16:33:32 +08:00
parent 031fab286b
commit 515dcfe76c

View File

@@ -34,12 +34,8 @@
import { ref, onMounted, provide, reactive, watch, h } from 'vue' import { ref, onMounted, provide, reactive, watch, h } from 'vue'
import TableStore from '@/utils/tableStore' import TableStore from '@/utils/tableStore'
import MyEchart from '@/components/echarts/MyEchart.vue' 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 waveFormAnalysis from '@/views/govern/device/control/tabs/components/waveFormAnalysis.vue'
import TableHeader from '@/components/table/header/index.vue' import TableHeader from '@/components/table/header/index.vue'
import { useRoute } from 'vue-router'
import { useTimeCacheStore } from '@/stores/timeCache'
import { analyseWave } from '@/api/common' import { analyseWave } from '@/api/common'
const prop = defineProps({ const prop = defineProps({
@@ -76,7 +72,7 @@ const fullscreen = computed(() => {
} }
}) })
const echartList = ref({}) const echartList = ref()
const chartRef = ref() const chartRef = ref()
// 波形 // 波形
@@ -112,7 +108,6 @@ const tableStore: any = new TableStore({
data.gs = tableStore.table.data.length data.gs = tableStore.table.data.length
data.krr = gongData.pointI.length data.krr = gongData.pointI.length
data.bkrr = gongData.pointIun.length data.bkrr = gongData.pointIun.length
// console.log(gongData,'789000')
echartList.value = { echartList.value = {
title: { title: {
text: `F47曲线` text: `F47曲线`
@@ -262,8 +257,9 @@ function gongfunction(arr: any) {
let yy = arr[i].eventValue let yy = arr[i].eventValue
let time = arr[i].time let time = arr[i].time
let eventId = arr[i].eventId let eventId = arr[i].eventId
let lineName = arr[i].lineName
// let index =arr[i].eventDetailIndex; // let index =arr[i].eventDetailIndex;
point = [xx, yy, time, eventId] point = [xx, yy, time, eventId, lineName]
if (xx <= 0.003) { if (xx <= 0.003) {
let line = 0 let line = 0
@@ -409,7 +405,7 @@ onMounted(() => {
}) })
// 点击事件处理函数 // 点击事件处理函数
const handleChartClick = (params: any, e: any) => { const handleChartClick = (params: any) => {
if (params.seriesName === '可容忍事件') { if (params.seriesName === '可容忍事件') {
// 处理可容忍事件点击 // 处理可容忍事件点击
dialogTitle.value = '可容忍事件波形分析' dialogTitle.value = '可容忍事件波形分析'
@@ -433,12 +429,16 @@ const handleTolerableEventClick = async (row: any) => {
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 => { .then(res => {
row.loading1 = false row.loading1 = false
if (res != undefined) { if (res != undefined) {
boxoList.value = row boxoList.value = {
boxoList.value.featureAmplitude = row.evtParamVVaDepth != '-' ? row.evtParamVVaDepth - 0 : null persistTime: row.value[0], //持续时间
featureAmplitude: (row.value[1] / 100).toFixed(2), //残余电压
startTime: row.value[2], //时间
lineName: row.value[4] //监测点名称
}
boxoList.value.systemType = 'YPT' boxoList.value.systemType = 'YPT'
wp.value = res.data wp.value = res.data
} }