Update excel.xlsx.js

This commit is contained in:
Anyon 2022-02-18 14:41:10 +08:00
parent 1e987f5dfe
commit ff6d44bb05

View File

@ -20,7 +20,7 @@ define(function () {
var method = this.dataset.method || form.attr('method') || 'get'; var method = this.dataset.method || form.attr('method') || 'get';
var location = this.dataset.excel || this.dataset.formExport || form.attr('action') || ''; var location = this.dataset.excel || this.dataset.formExport || form.attr('action') || '';
that.load(location, form.serialize(), method).then(function (ret) { that.load(location, form.serialize(), method).then(function (ret) {
that.export(done(ret), name); that.export(done(ret, []), name);
}).fail(function (ret) { }).fail(function (ret) {
$.msg.tips(ret || '文件导出失败'); $.msg.tips(ret || '文件导出失败');
}); });