告警管理-事件展示-暂态事件波形下载

This commit is contained in:
zhujiyan
2024-10-31 10:18:04 +08:00
parent 92f7aee017
commit ecf9281786

View File

@@ -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: '暂无波形',