Преглед изворни кода

优化代码导入加载中

SpringSunYY пре 4 месеци
родитељ
комит
00d03071eb

+ 2 - 0
ruoyi_generator/vm/vue/index-sub.vue.vm

@@ -507,10 +507,12 @@ export default {
         "导入结果",
         { dangerouslyUseHTMLString: true }
       );
+      this.$modal.closeLoading()
       this.getList();
     },
     // 提交上传文件
     submitFileForm() {
+      this.$modal.loading("导入中请稍后")
       this.$refs.upload.submit();
     },
     /** 提交按钮 */

+ 2 - 0
ruoyi_generator/vm/vue/index-tree.vue.vm

@@ -708,10 +708,12 @@ export default {
       this.upload.isUploading = false;
       this.$refs.upload.clearFiles();
       this.$alert("<div style='overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;'>" + response.msg + "</div>", "导入结果", { dangerouslyUseHTMLString: true });
+      this.$modal.closeLoading()
       this.getList();
     },
     // 提交上传文件
     submitFileForm() {
+      this.$modal.loading("导入中请稍后")
       this.$refs.upload.submit();
     }
   }

+ 2 - 0
ruoyi_generator/vm/vue/index.vue.vm

@@ -565,6 +565,7 @@ export default {
       this.upload.isUploading = false;
       this.$refs.upload.clearFiles();
       this.$alert("<div style='overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;'>" + response.msg + "</div>", "导入结果", { dangerouslyUseHTMLString: true });
+      this.$modal.closeLoading()
       this.getList();
     },
     buildSubmitData() {
@@ -595,6 +596,7 @@ export default {
     },
     // 提交上传文件
     submitFileForm() {
+      this.$modal.loading("导入中请稍后")
       this.$refs.upload.submit();
     }
   }