优化项目

This commit is contained in:
guanj
2026-06-04 19:06:36 +08:00
parent 4f32f84132
commit 4f907a80c4
53 changed files with 987 additions and 3499 deletions

View File

@@ -122,15 +122,16 @@ const tableStore = new TableStore({
return (tableStore.table.params.pageNum - 1) * tableStore.table.params.pageSize + row.rowIndex + 1
}
},
{ title: '事件描述', field: 'showName', minWidth: 150 },
{ title: '暂降发生时刻', field: 'startTime', sortable: true, minWidth: 180 },
{
title: '发生位置', field: 'evtParamPosition', minWidth: 150,
title: '暂降(骤升)幅值(%)',
field: 'evtParamVVaDepth',
minWidth: 160,
formatter: (row: any) => {
const val = row.cellValue
if (val === null || val === undefined || val === '' || val === '-') return '/'
return val
}
let a = row.cellValue.split('%')[0] - 0
return a ? a.toFixed(2) : '/'
},
sortable: true
},
{
title: '持续时间(s)',
@@ -145,17 +146,19 @@ const tableStore = new TableStore({
return Math.floor(num * 10000) / 100
}
},
{ title: '触发类型', field: 'showName', minWidth: 150 },
{
title: '暂降(聚升)幅值(%)',
field: 'evtParamVVaDepth',
minWidth: 150,
title: '发生位置', field: 'evtParamPosition', minWidth: 150,
formatter: (row: any) => {
let a = row.cellValue.split('%')[0] - 0
return a ? a.toFixed(2) : '/'
},
sortable: true
const val = row.cellValue
if (val === null || val === undefined || val === '' || val === '-') return '/'
return val
}
},
{ title: '发生时刻', field: 'startTime', sortable: true, minWidth: 180 },
{
title: '操作',
fixed: 'right',
@@ -229,6 +232,7 @@ const tableStore = new TableStore({
return !row.wavePath
},
click: row => {
ElMessage.info('下载中......')
getFileZip({ eventId: row.id }).then(res => {
let blob = new Blob([res], { type: 'application/zip' }) // console.log(blob) // var href = window.URL.createObjectURL(blob); //创建下载的链接
const url = window.URL.createObjectURL(blob)
@@ -238,6 +242,7 @@ const tableStore = new TableStore({
document.body.appendChild(link)
link.click() //执行下载
document.body.removeChild(link) //释放标签
ElMessage.success('波形下载成功')
})
}
}
@@ -262,7 +267,7 @@ const deviceTypeChange = (val: any, obj: any) => {
}
const nodeClick = async (e: anyObj) => {
// console.log("🚀 ~ nodeClick ~ e:", e)
if (e.level == 2 && flag.value) {
if ((e.level == 2 || e.level == 3) && flag.value) {
loading.value = false
tableStore.table.params.deviceId = e.id
nextTick(() => {