diff --git a/src/views/govern/device/planData/index.vue b/src/views/govern/device/planData/index.vue index 5cd4a4c..e2c4f3f 100644 --- a/src/views/govern/device/planData/index.vue +++ b/src/views/govern/device/planData/index.vue @@ -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'