历史数据:下载导出根据是否含有高频数据分类
This commit is contained in:
parent
288797beae
commit
56e45b97ef
@ -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,7 +948,9 @@ const exportExcel = () => {
|
||||
document.body.removeChild(link)
|
||||
}
|
||||
downloadData(columnArr, title)
|
||||
downloadData(highSpeedColumnArr, highSpeedTitle, '高频')
|
||||
if( existHighSpeed){
|
||||
downloadData(highSpeedColumnArr, highSpeedTitle, '高频')
|
||||
}
|
||||
}
|
||||
const selectToTable = () => {
|
||||
selectRowList.value.forEach((item: selectData) => {
|
||||
|
Loading…
Reference in New Issue
Block a user