数据导出修改
This commit is contained in:
@@ -750,7 +750,13 @@ const handleExport = async () => {
|
|||||||
count = index
|
count = index
|
||||||
}
|
}
|
||||||
let itemList: any = list[index].data[indexs]
|
let itemList: any = list[index].data[indexs]
|
||||||
index == list.length - 1 ? (strs += itemList[0]) : (strs += itemList[0] + ',')
|
console.log(itemList);
|
||||||
|
if(itemList&&itemList.length!=0){
|
||||||
|
index == list.length - 1 ? (strs += itemList[1]) : (strs += itemList[1] + ',')
|
||||||
|
}else{
|
||||||
|
index == list.length - 1 ? strs += '/' :strs += '/,'
|
||||||
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
if (count == 0 && xAxis[indexs]) {
|
if (count == 0 && xAxis[indexs]) {
|
||||||
csv += `${xAxis[indexs]},` + strs + '\n'
|
csv += `${xAxis[indexs]},` + strs + '\n'
|
||||||
|
|||||||
Reference in New Issue
Block a user