优化暂态事件列表
This commit is contained in:
@@ -187,6 +187,14 @@ const tableStore: any = new TableStore({
|
||||
null: '/'
|
||||
}
|
||||
},
|
||||
{
|
||||
title: '电压等级(kV)',
|
||||
field: 'volGrade',
|
||||
minWidth: '80',
|
||||
formatter: (row: any) => {
|
||||
return row.cellValue == 0 ? '/' : row.cellValue || '/'
|
||||
}
|
||||
},
|
||||
{
|
||||
title: '治理对象',
|
||||
field: 'sensitiveUser',
|
||||
@@ -196,14 +204,7 @@ const tableStore: any = new TableStore({
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
title: '电压等级',
|
||||
field: 'volGrade',
|
||||
minWidth: '80',
|
||||
formatter: (row: any) => {
|
||||
return row.cellValue == 0 ? '/' : row.cellValue + 'kV' || '/'
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
title: '是否治理',
|
||||
field: 'govern',
|
||||
@@ -242,7 +243,7 @@ const tableStore: any = new TableStore({
|
||||
{
|
||||
title: '报告',
|
||||
field: 'reportFilePath',
|
||||
minWidth: '120',
|
||||
minWidth: '150',
|
||||
formatter: (row: any) => {
|
||||
return row.cellValue == null ? '/' : row.cellValue.split('/').pop()
|
||||
}
|
||||
@@ -373,7 +374,9 @@ const forceDownloadPdf = async (pdfUrl:any, fileName = '文件.pdf') => {
|
||||
// 4. 清理资源(避免内存泄漏)
|
||||
document.body.removeChild(a)
|
||||
URL.revokeObjectURL(blobUrl)
|
||||
setTimeout(() => {
|
||||
ElMessage.success('下载成功')
|
||||
}, 2000)
|
||||
} catch (error) {
|
||||
console.error('下载失败:', error)
|
||||
// ElMessage.error('文件下载失败,请检查网络或文件地址') // 适配 Element Plus
|
||||
|
||||
Reference in New Issue
Block a user