NEZ-3285 fix:Dashboard中蜂窝图、饼图等无法下载CSV数据

This commit is contained in:
zhangyu
2023-10-26 18:22:11 +08:00
parent 7ba5ccd595
commit 260f51b3bc

View File

@@ -633,14 +633,14 @@ export default {
} }
this.$lodash.get(this, keyByData, []).forEach(item => { this.$lodash.get(this, keyByData, []).forEach(item => {
let val = item.showValue let val = item.showValue
let legend = this.yasuo(item[legend]) let legends = this.yasuo(item[legend])
try { try {
val = val.trim() val = val.trim()
legend = legend.trim() legends = legends.trim()
} catch (e) { } catch (e) {
console.log(e) console.log(e)
} }
csv += `"${legend}","${val}"\n` csv += `"${legends}","${val}"\n`
}) })
return csv return csv
}, },