no message

Former-commit-id: 71a8807f792f3f999904a90f26fba76d919e1cc6
Former-commit-id: d4d54ed19180c72eb155e89736efef7c1b8d36c3
Former-commit-id: b8ff558599b810bb0bdc91c8d35255471fc77668
This commit is contained in:
李杨
2018-02-09 20:00:34 +08:00
parent 554162775c
commit def0281d92

View File

@@ -44,7 +44,11 @@ export default {
},
methods: {
exportCsv (params = {}) {
const noHeader = false
const paramsDefault = {
noHeader: false
}
const _params = Object.assign({}, params, paramsDefault)
const noHeader = _params.noHeader
const data = Csv(this.table.columns, this.table.data, params, noHeader)
ExportCsv.download('table.csv', data)
}