瀏覽代碼

Merge remote-tracking branch 'origin/master'

zzx 3 年之前
父節點
當前提交
dcd48f98db
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      src/controls/grid.js

+ 4 - 1
src/controls/grid.js

@@ -364,6 +364,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) => {
@@ -386,6 +388,7 @@ export default function () {
                 if (page < total / size) {
                     page++
                 }
+                scope.setLoading(false)
             })
         },
 
@@ -666,7 +669,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);