mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
Update excel.xlsx.js
This commit is contained in:
parent
1e987f5dfe
commit
ff6d44bb05
@ -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 || '文件导出失败');
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user