修改波形样式

This commit is contained in:
guanj
2025-12-02 16:03:04 +08:00
parent 22cd6088a3
commit c09bea9e04
4 changed files with 15 additions and 252 deletions

View File

@@ -19,10 +19,10 @@
}"
@chart-click="handleChartClick"
/>
<el-dialog v-model="isWaveCharts" draggable :title="dialogTitle" append-to-body width="70%">
<el-dialog v-model="isWaveCharts" v-if="isWaveCharts" draggable :title="dialogTitle" append-to-body width="70%">
<waveFormAnalysis
v-loading="loading"
v-if="isWaveCharts"
ref="waveFormAnalysisRef"
@handleHideCharts="isWaveCharts = false"
:wp="wp"
@@ -37,7 +37,7 @@ import MyEchart from '@/components/echarts/MyEchart.vue'
import waveFormAnalysis from '@/views/govern/device/control/tabs/components/waveFormAnalysis.vue'
import TableHeader from '@/components/table/header/index.vue'
import { analyseWave } from '@/api/common'
import { ElMessage } from 'element-plus'
const prop = defineProps({
w: { type: [String, Number] },
h: { type: [String, Number] },
@@ -420,15 +420,14 @@ const handleChartClick = (params: any) => {
// 可容忍事件点击处理函数
const handleTolerableEventClick = async (row: any) => {
isWaveCharts.value = true
loading.value = true
isWaveCharts.value = true
nextTick(() => {
if (waveFormAnalysisRef.value) {
//waveFormAnalysisRef.value.setHeight(false, 360)
waveFormAnalysisRef.value.setHeight(999, 130, 1.6666666)
}
})
const messageInstance = ElMessage.info(`正在加载,请稍等...`)
await analyseWave(row.value[3]) //eventId
.then(res => {
row.loading1 = false
@@ -442,9 +441,12 @@ const handleTolerableEventClick = async (row: any) => {
boxoList.value.systemType = 'YPT'
wp.value = res.data
}
isWaveCharts.value = true
loading.value = false
})
.catch(() => {
messageInstance.close()
row.loading1 = false
loading.value = false
})