Эх сурвалжийг харах

campus: add file loading div

Michael Wang 6 жил өмнө
parent
commit
dbb80d7c6f

+ 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) {