历史数据:下载导出根据是否含有高频数据分类
This commit is contained in:
parent
288797beae
commit
56e45b97ef
@ -910,11 +910,13 @@ const exportExcel = () => {
|
|||||||
let title = ''
|
let title = ''
|
||||||
const highSpeedColumnArr: string[] = []
|
const highSpeedColumnArr: string[] = []
|
||||||
const columnArr: string[] = []
|
const columnArr: string[] = []
|
||||||
|
let existHighSpeed = false
|
||||||
tableColumn.value.forEach((item: any, index: number) => {
|
tableColumn.value.forEach((item: any, index: number) => {
|
||||||
if (index > 1) {
|
if (index > 1) {
|
||||||
if (item.highSpeed === 1) {
|
if (item.highSpeed === 1) {
|
||||||
highSpeedTitle += item.label + '\t,'
|
highSpeedTitle += item.label + '\t,'
|
||||||
highSpeedColumnArr.push(item.prop)
|
highSpeedColumnArr.push(item.prop)
|
||||||
|
existHighSpeed = true
|
||||||
} else {
|
} else {
|
||||||
title += item.label + '\t,'
|
title += item.label + '\t,'
|
||||||
columnArr.push(item.prop)
|
columnArr.push(item.prop)
|
||||||
@ -946,7 +948,9 @@ const exportExcel = () => {
|
|||||||
document.body.removeChild(link)
|
document.body.removeChild(link)
|
||||||
}
|
}
|
||||||
downloadData(columnArr, title)
|
downloadData(columnArr, title)
|
||||||
|
if( existHighSpeed){
|
||||||
downloadData(highSpeedColumnArr, highSpeedTitle, '高频')
|
downloadData(highSpeedColumnArr, highSpeedTitle, '高频')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
const selectToTable = () => {
|
const selectToTable = () => {
|
||||||
selectRowList.value.forEach((item: selectData) => {
|
selectRowList.value.forEach((item: selectData) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user