暂态事件-波形下载
This commit is contained in:
@@ -19,6 +19,7 @@ import Table from '@/components/table/index.vue'
|
||||
import TableHeader from '@/components/table/header/index.vue'
|
||||
import waveFormAnalysis from './components/waveFormAnalysis.vue'
|
||||
import { ArrowLeft } from '@element-plus/icons-vue'
|
||||
import { ElMessage } from 'element-plus'
|
||||
import { analyseWave } from '@/api/common'
|
||||
const tableParams: any = ref({})
|
||||
const refheader = ref()
|
||||
@@ -114,9 +115,27 @@ const tableStore: any = new TableStore({
|
||||
render: 'basicButton',
|
||||
disabled: row => {
|
||||
return row.wavePath
|
||||
}
|
||||
},
|
||||
{
|
||||
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)
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -135,14 +154,12 @@ const isWaveCharts = ref(false)
|
||||
//获取请求参数
|
||||
const getTableParams = (val: any) => {
|
||||
tableParams.value = val
|
||||
console.log(tableParams.value, '暂态时间表格请求参数')
|
||||
isWaveCharts.value = false
|
||||
tableStore.index()
|
||||
}
|
||||
//返回
|
||||
const handleBack = async () => {
|
||||
isWaveCharts.value = false
|
||||
console.log(6666666, isWaveCharts.value)
|
||||
emit('activeTabsType', '')
|
||||
await tableStore.index()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user