波形图标题修改
This commit is contained in:
@@ -18,7 +18,7 @@
|
|||||||
}"
|
}"
|
||||||
@chart-click="handleChartClick"
|
@chart-click="handleChartClick"
|
||||||
/>
|
/>
|
||||||
<el-dialog v-model="isWaveCharts" draggable title="瞬时/RMS波形" append-to-body width="70%">
|
<el-dialog v-model="isWaveCharts" draggable :title="dialogTitle" append-to-body width="70%">
|
||||||
<waveFormAnalysis
|
<waveFormAnalysis
|
||||||
v-loading="loading"
|
v-loading="loading"
|
||||||
v-if="isWaveCharts"
|
v-if="isWaveCharts"
|
||||||
@@ -42,19 +42,17 @@ import { useTimeCacheStore } from '@/stores/timeCache'
|
|||||||
import { analyseWave } from '@/api/common'
|
import { analyseWave } from '@/api/common'
|
||||||
|
|
||||||
const prop = defineProps({
|
const prop = defineProps({
|
||||||
w: { type: [String, Number]},
|
w: { type: [String, Number] },
|
||||||
h: { type: [String, Number]},
|
h: { type: [String, Number] },
|
||||||
width: { type: [String, Number]},
|
width: { type: [String, Number] },
|
||||||
height: { type: [String, Number]},
|
height: { type: [String, Number] },
|
||||||
timeKey: { type: [String, Number]},
|
timeKey: { type: [String, Number] },
|
||||||
timeValue: { type: Object }
|
timeValue: { type: Object }
|
||||||
})
|
})
|
||||||
|
|
||||||
const headerHeight = ref(57)
|
const headerHeight = ref(57)
|
||||||
|
|
||||||
const route = useRoute()
|
const dialogTitle = ref('波形分析')
|
||||||
const timeCacheStore = useTimeCacheStore()
|
|
||||||
|
|
||||||
const selectChange = (showSelect: any, height: any, datePickerValue?: any) => {
|
const selectChange = (showSelect: any, height: any, datePickerValue?: any) => {
|
||||||
headerHeight.value = height
|
headerHeight.value = height
|
||||||
|
|
||||||
@@ -413,28 +411,33 @@ onMounted(() => {
|
|||||||
const handleChartClick = (params: any) => {
|
const handleChartClick = (params: any) => {
|
||||||
if (params.seriesName === '可容忍事件') {
|
if (params.seriesName === '可容忍事件') {
|
||||||
// 处理可容忍事件点击
|
// 处理可容忍事件点击
|
||||||
ElMessage.info(`点击了可容忍事件: 持续时间${params.value[0]}s, 幅值${params.value[1].toFixed(2)}%`)
|
dialogTitle.value = '可容忍事件波形分析'
|
||||||
handleTolerableEventClick(params)
|
handleTolerableEventClick(params)
|
||||||
} else if (params.seriesName === '不可容忍事件') {
|
} else if (params.seriesName === '不可容忍事件') {
|
||||||
|
dialogTitle.value = '不可容忍事件波形分析'
|
||||||
// 处理不可容忍事件点击
|
// 处理不可容忍事件点击
|
||||||
ElMessage.info(`点击了不可容忍事件: 持续时间${params.value[0]}s, 幅值${params.value[1].toFixed(2)}%`)
|
// ElMessage.info(`点击了不可容忍事件: 持续时间${params.value[0]}s, 幅值${params.value[1].toFixed(2)}%`)
|
||||||
handleIntolerableEventClick(params)
|
handleTolerableEventClick(params)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 可容忍事件点击处理函数
|
// 可容忍事件点击处理函数
|
||||||
const handleTolerableEventClick = async (row: any) => {
|
const handleTolerableEventClick = async (row: any) => {
|
||||||
console.log('可容忍事件详情:', row)
|
|
||||||
isWaveCharts.value = true
|
isWaveCharts.value = true
|
||||||
loading.value = true
|
loading.value = true
|
||||||
isWaveCharts.value = true
|
isWaveCharts.value = true
|
||||||
await analyseWave(row.id)
|
nextTick(() => {
|
||||||
|
if (waveFormAnalysisRef.value) {
|
||||||
|
waveFormAnalysisRef.value.setHeight(false, 360)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
await analyseWave(row.value[3])
|
||||||
.then(res => {
|
.then(res => {
|
||||||
row.loading1 = false
|
row.loading1 = false
|
||||||
if (res != undefined) {
|
if (res != undefined) {
|
||||||
boxoList.value = row
|
boxoList.value = row
|
||||||
boxoList.value.featureAmplitude = row.evtParamVVaDepth != '-' ? row.evtParamVVaDepth - 0 : null
|
boxoList.value.featureAmplitude = row.evtParamVVaDepth != '-' ? row.evtParamVVaDepth - 0 : null
|
||||||
boxoList.value.systemType = 'WX'
|
boxoList.value.systemType = 'YPT'
|
||||||
wp.value = res.data
|
wp.value = res.data
|
||||||
}
|
}
|
||||||
loading.value = false
|
loading.value = false
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
<el-dialog
|
<el-dialog
|
||||||
v-model="isWaveCharts"
|
v-model="isWaveCharts"
|
||||||
draggable
|
draggable
|
||||||
title="瞬时/RMS波形"
|
title="波形分析"
|
||||||
append-to-body
|
append-to-body
|
||||||
width="70%"
|
width="70%"
|
||||||
@close="handleHideCharts"
|
@close="handleHideCharts"
|
||||||
|
|||||||
Reference in New Issue
Block a user