From ecf92817863be90df0a62b9c1ad9ad1c8fe75d33 Mon Sep 17 00:00:00 2001 From: zhujiyan <17812234322@163.com> Date: Thu, 31 Oct 2024 10:18:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=91=8A=E8=AD=A6=E7=AE=A1=E7=90=86-=E4=BA=8B?= =?UTF-8?q?=E4=BB=B6=E5=B1=95=E7=A4=BA-=E6=9A=82=E6=80=81=E4=BA=8B?= =?UTF-8?q?=E4=BB=B6=E6=B3=A2=E5=BD=A2=E4=B8=8B=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/govern/alarm/Transient.vue | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/src/views/govern/alarm/Transient.vue b/src/views/govern/alarm/Transient.vue index 1b0ebdc..06f9dfc 100644 --- a/src/views/govern/alarm/Transient.vue +++ b/src/views/govern/alarm/Transient.vue @@ -61,7 +61,7 @@ import shushiboxi from '@/components/echarts/shushiboxi.vue' import rmsboxi from '@/components/echarts/rmsboxi.vue' import { analyseWave } from '@/api/common' import { mainHeight } from '@/utils/layout' - +import { ElMessage } from 'element-plus' const props = defineProps(['deviceTree']) const refheader = ref() const view = ref(true) @@ -145,6 +145,26 @@ const tableStore = new TableStore({ }) } }, + { + name: 'edit', + title: '波形下载', + type: 'primary', + icon: 'el-icon-Check', + render: 'basicButton', + disabled: row => { + // && row.evtParamTm < 20 + return !row.wavePath + }, + click: row => { + row.loading = true + const url = window.location.origin + '/api/cs-harmonic-boot/event/getFileZip?eventId=' + row.id + window.open(url, '_self') + setTimeout(() => { + ElMessage.success('波形下载成功!') + row.loading = false + }, 1500) + } + }, { name: 'edit', text: '暂无波形',