提交 3094a04e authored 作者: wangjiahao's avatar wangjiahao

fix:【仪表板】图表明细数据下载数值为0不显示问题

上级 f5939b1a
...@@ -43,7 +43,7 @@ export default { ...@@ -43,7 +43,7 @@ export default {
debugger debugger
const excelHeader = JSON.parse(JSON.stringify(this.chart.data.fields)).map(item => item.name) const excelHeader = JSON.parse(JSON.stringify(this.chart.data.fields)).map(item => item.name)
const excelHeaderKeys = JSON.parse(JSON.stringify(this.chart.data.fields)).map(item => item.dataeaseName) const excelHeaderKeys = JSON.parse(JSON.stringify(this.chart.data.fields)).map(item => item.dataeaseName)
const excelData = JSON.parse(JSON.stringify(this.chart.data.tableRow)).map(item => excelHeaderKeys.map(i => item[i] || '')) const excelData = JSON.parse(JSON.stringify(this.chart.data.tableRow)).map(item => excelHeaderKeys.map(i => item[i]))
const excelName = this.chart.name const excelName = this.chart.name
export_json_to_excel(excelHeader, excelData, excelName) export_json_to_excel(excelHeader, excelData, excelName)
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论