历史数据:下载导出根据是否含有高频数据分类

This commit is contained in:
高云鹏 2025-01-17 12:41:08 +08:00
parent 288797beae
commit 56e45b97ef

View File

@ -910,11 +910,13 @@ const exportExcel = () => {
let title = ''
const highSpeedColumnArr: string[] = []
const columnArr: string[] = []
let existHighSpeed = false
tableColumn.value.forEach((item: any, index: number) => {
if (index > 1) {
if (item.highSpeed === 1) {
highSpeedTitle += item.label + '\t,'
highSpeedColumnArr.push(item.prop)
existHighSpeed = true
} else {
title += item.label + '\t,'
columnArr.push(item.prop)
@ -946,8 +948,10 @@ const exportExcel = () => {
document.body.removeChild(link)
}
downloadData(columnArr, title)
if( existHighSpeed){
downloadData(highSpeedColumnArr, highSpeedTitle, '高频')
}
}
const selectToTable = () => {
selectRowList.value.forEach((item: selectData) => {
const row = pointDialogTableData.value.find((row) => row.id === item.id)