|
@@ -366,6 +366,8 @@ export default function () {
|
|
|
const scope = lookupScope(me)
|
|
|
const {dataSource} = config
|
|
|
|
|
|
+ scope.setLoading(true)
|
|
|
+
|
|
|
let excelFileName = config.excelFileName || scope.vjson.title || _.uniqueId("excel-")
|
|
|
|
|
|
gridInvokeBuild(scope, me, config, dataSource, excelExportParams, true, (responseData) => {
|
|
@@ -387,7 +389,9 @@ export default function () {
|
|
|
|
|
|
if (page < total / size) {
|
|
|
page++
|
|
|
+ me.exportExcelCurrentPage = page
|
|
|
}
|
|
|
+ scope.setLoading(false)
|
|
|
})
|
|
|
},
|
|
|
|
|
@@ -668,7 +672,7 @@ export default function () {
|
|
|
v = defaultGrid.exportExcelPageSize
|
|
|
sender.setValue(v);
|
|
|
}
|
|
|
- if (v >= 10000) {
|
|
|
+ if (v > 10000) {
|
|
|
window['system'].msg("导出页大小不能大于10000")
|
|
|
v = 10000
|
|
|
sender.setValue(v);
|