方案数据数据导出csv undefined问题修改

This commit is contained in:
zhujiyan
2024-10-23 15:49:27 +08:00
parent 5cf826f406
commit 8131158545

View File

@@ -357,7 +357,7 @@ const nodeClick = async (e: anyObj) => {
const dialogRef = ref()
const dailogForm = ref()
const handleOpen = (val: any) => {
if(!deviceData.value){
if (!deviceData.value) {
dialogRef.value.open(val, '')
return
}
@@ -690,9 +690,12 @@ const handleExport = async () => {
}
let itemList: any = list[index].data[indexs]
if (itemList && itemList.length != 0) {
console.log(itemList, 'hhhhh')
itemList[1] = itemList[1] ? itemList[1] : '/'
index == list.length - 1 ? (strs += itemList[1]) : (strs += itemList[1] + ',')
} else {
index == list.length - 1 ? (strs += '/') : (strs += '/,')
console.log(index, 'my')
}
})
if (count == 0 && xAxis[indexs]) {