Ver Fonte

Merge remote-tracking branch 'origin/master'

WANG há 6 anos atrás
pai
commit
b1beedbe1b
1 ficheiros alterados com 9 adições e 6 exclusões
  1. 9 6
      src/modules/basic/view/campus.vue

+ 9 - 6
src/modules/basic/view/campus.vue

@@ -3,6 +3,7 @@
     <div class="box box-info">
       <div
         class="box-body"
+        v-loading.body="fileLoading"
         v-loading.fullscreen="fileLoading"
         element-loading-text="请稍后..."
       >
@@ -438,12 +439,14 @@ export default {
         this.pageSize +
         "?" +
         param;
-      this.$httpWithMsg.get(url).then(response => {
-        this.tableData = response.data.list;
-        this.total = response.data.total;
-        this.loading = false;
-      })
-      .finally(() => (this.fileLoading = false));
+      this.$httpWithMsg
+        .get(url)
+        .then(response => {
+          this.tableData = response.data.list;
+          this.total = response.data.total;
+          this.loading = false;
+        })
+        .finally(() => (this.fileLoading = false));
     },
     //导入
     handleRemove(file, fileList) {