数据导出修改

This commit is contained in:
zhujiyan
2024-09-30 16:06:38 +08:00
parent e67438cc76
commit cca15c2e8c

View File

@@ -750,7 +750,13 @@ const handleExport = async () => {
count = index
}
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]) {
csv += `${xAxis[indexs]},` + strs + '\n'