在线补召

This commit is contained in:
sjl
2025-10-21 16:27:49 +08:00
parent 177e50de75
commit 43b5e4e497
9 changed files with 820 additions and 38 deletions

View File

@@ -15,7 +15,7 @@ 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'
import { analyseWave,getFileByEventId } from '@/api/common'
import { getFileZip } from '@/api/cs-harmonic-boot/datatrend'
const tableParams: any = ref({})
const refheader = ref()
@@ -29,6 +29,15 @@ const wp = ref({})
const value = ref(1)
const waveFormAnalysisRef = ref()
const headerRef = ref()
const props = defineProps({
deviceType: {
type: String,
default: '0'
}
});
const tableStore: any = new TableStore({
url: '/cs-device-boot/csGroup/deviceDataByType',
publicHeight: 215,
@@ -125,7 +134,7 @@ const tableStore: any = new TableStore({
icon: 'el-icon-DataLine',
render: 'basicButton',
disabled: row => {
return row.wavePath
return props.deviceType === '2' || row.wavePath;
}
},
{
@@ -151,10 +160,22 @@ const tableStore: any = new TableStore({
document.body.removeChild(link) //释放标签
})
}
},
{
name: 'edit',
title: '波形补召',
type: 'primary',
icon: 'el-icon-Check',
render: 'basicButton',
disabled: row => {
return props.deviceType != '2' || row.wavePath;
},
click: row => {
getFileByEventId(row.id).then(res => {
tableStore.index()
})
}
}
]
}