forked from github/dataease
Merge pull request #202 from dataease/pr@dev@panel
fix:【仪表板】图表明细数据下载数值为0不显示问题
This commit is contained in:
commit
0d4376b1dd
@ -43,7 +43,7 @@ export default {
|
||||
debugger
|
||||
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 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
|
||||
export_json_to_excel(excelHeader, excelData, excelName)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user