perf[excel]: refactor excel (#536)

This commit is contained in:
花裤衩
2018-03-26 13:54:19 +08:00
committed by GitHub
parent fc19121311
commit a55b149b27
3 changed files with 59 additions and 33 deletions

View File

@@ -72,7 +72,11 @@ export default {
const filterVal = ['id', 'title', 'author', 'pageviews', 'display_time']
const list = this.multipleSelection
const data = this.formatJson(filterVal, list)
excel.export_json_to_excel(tHeader, data, this.filename)
excel.export_json_to_excel({
header: tHeader,
data,
filename: this.filename
})
this.$refs.multipleTable.clearSelection()
this.downloadLoading = false
})