This commit is contained in:
sjl
2025-12-30 10:02:01 +08:00
parent 83e57c92b4
commit 0fc7b528d4
14 changed files with 186 additions and 114 deletions

View File

@@ -32,6 +32,10 @@ import { cancelFeedback, getById } from '@/api/supervision-boot/leaflet'
import { useAdminInfo } from '@/stores/adminInfo'
import { useDictData } from '@/stores/dictData'
import { deleteWarningLeaflet } from '@/api/supervision-boot/delete/index'
import {download} from '@/utils/fileDownLoad'
import { getFileNameAndFilePath, downloadFile } from '@/api/system-boot/file'
const dictData = useDictData()
//获取登陆用户姓名和部门
const adminInfo = useAdminInfo()
@@ -155,7 +159,7 @@ const tableStore = new TableStore({
click: row => {
const match = row.filePath.match(/excelreport(\/[^?#]*)/)
window.open(window.location.origin + '/#/previewFile?' + match[1])
}
},
@@ -169,7 +173,15 @@ const tableStore = new TableStore({
return row.problemType != 2
},
click: row => {
window.open(row.filePath)
//window.open(row.filePath)
// const match = row.filePath.match(/excelreport(\/[^?#]*)/)
// const decodedPath = decodeURI(match[1]) // 解码URL中的中文字符
//download('/' + row.absFilePath)
//download('/supervision/微服务系统测试页面功能-20251224合并版本.docx')
download('/onlineReport/电能[预]2025年18号-张家口地市 电能质量技术监督预警单.docx')
}
},
// {
@@ -315,6 +327,11 @@ const tableStore = new TableStore({
})
}
})
tableStore.table.params.status = ''
provide('tableStore', tableStore)