瀏覽代碼

oa后台校验提示关闭loading

sunlupeng 1 年之前
父節點
當前提交
8ff0c73457

+ 1 - 1
src/views/login.vue

@@ -210,7 +210,7 @@ export default {
             removePassword()
             removeRememberMe()
           }
-          setTenantId(1)
+          // setTenantId(1)
           this.$store.dispatch(this.loginForm.loginType === "sms" ? "SmsLogin" : "Login", this.loginForm).then(() => {
             this.$router.push({path: "/"}).catch(() => {
             });

+ 6 - 0
src/views/oa/business/edit.vue

@@ -373,6 +373,8 @@ export default {
             }else{
               this.$parent.$parent.setStatus(2);
             }
+          }).catch(() => {
+            this.fullscreenLoading = false;
           });
         } else {
           console.log('error submit!!');
@@ -397,6 +399,8 @@ export default {
             }else{
               this.$parent.$parent.setStatus(2);
             }
+          }).catch(() => {
+            this.fullscreenLoading = false;
           });
         } else {
           console.log('error submit!!');
@@ -419,6 +423,8 @@ export default {
             }else{
               this.$parent.$parent.setStatus(2);
             }
+          }).catch(() => {
+            this.fullscreenLoading = false;
           });
     },
     //暂存删除

+ 6 - 0
src/views/oa/conversion/edit.vue

@@ -330,6 +330,8 @@ export default {
             }else{
               this.$parent.$parent.setStatus(2);
             }
+          }).catch(() => {
+            this.fullscreenLoading = false;
           });
         } else {
           console.log('error submit!!');
@@ -354,6 +356,8 @@ export default {
             }else{
               this.$parent.$parent.setStatus(2);
             }
+          }).catch(() => {
+            this.fullscreenLoading = false;
           });
         } else {
           console.log('error submit!!');
@@ -376,6 +380,8 @@ export default {
             }else{
               this.$parent.$parent.setStatus(2);
             }
+          }).catch(() => {
+            this.fullscreenLoading = false;
           });
     },
     //暂存删除

+ 4 - 0
src/views/oa/entry/edit.vue

@@ -408,6 +408,8 @@ export default {
             }else{
               this.$parent.$parent.setStatus(2);
             }
+          }).catch(() => {
+            this.fullscreenLoading = false;
           });
         } else {
           console.log('error submit!!');
@@ -430,6 +432,8 @@ export default {
             }else{
               this.$parent.$parent.setStatus(2);
             }
+          }).catch(() => {
+            this.fullscreenLoading = false;
           });
     },
     //暂存删除

+ 7 - 1
src/views/oa/expense/edit.vue

@@ -433,6 +433,8 @@ export default {
             } else {
               this.$parent.$parent.setStatus(2);
             }
+          }).catch(() => {
+            this.fullscreenLoading = false;
           });
         } else {
           console.log('error submit!!');
@@ -457,6 +459,8 @@ export default {
             } else {
               this.$parent.$parent.setStatus(2);
             }
+          }).catch(() => {
+            this.fullscreenLoading = false;
           });
         } else {
           console.log('error submit!!');
@@ -479,7 +483,9 @@ export default {
         } else {
           this.$parent.$parent.setStatus(2);
         }
-      });
+      }).catch(() => {
+            this.fullscreenLoading = false;
+          });
     },
     //暂存删除
     async onDelete() {

+ 7 - 1
src/views/oa/leave/edit.vue

@@ -391,6 +391,8 @@ export default {
             } else {
               this.$parent.$parent.setStatus(2);
             }
+          }).catch(() => {
+            this.fullscreenLoading = false;
           });
         } else {
           console.log('error submit!!');
@@ -415,6 +417,8 @@ export default {
             } else {
               this.$parent.$parent.setStatus(2);
             }
+          }).catch(() => {
+            this.fullscreenLoading = false;
           });
         } else {
           console.log('error submit!!');
@@ -437,7 +441,9 @@ export default {
         } else {
           this.$parent.$parent.setStatus(2);
         }
-      });
+      }).catch(() => {
+            this.fullscreenLoading = false;
+          });
     },
     //暂存删除
     async onDelete() {

+ 7 - 1
src/views/oa/out/edit.vue

@@ -356,6 +356,8 @@ export default {
             } else {
               this.$parent.$parent.setStatus(2);
             }
+          }).catch(() => {
+            this.fullscreenLoading = false;
           });
         } else {
           console.log('error submit!!');
@@ -380,6 +382,8 @@ export default {
             } else {
               this.$parent.$parent.setStatus(2);
             }
+          }).catch(() => {
+            this.fullscreenLoading = false;
           });
         } else {
           console.log('error submit!!');
@@ -402,7 +406,9 @@ export default {
         } else {
           this.$parent.$parent.setStatus(2);
         }
-      });
+      }).catch(() => {
+            this.fullscreenLoading = false;
+          });
     },
     //暂存删除
     async onDelete() {

+ 7 - 1
src/views/oa/purchase/edit.vue

@@ -377,6 +377,8 @@ export default {
             } else {
               this.$parent.$parent.setStatus(2);
             }
+          }).catch(() => {
+            this.fullscreenLoading = false;
           });
         } else {
           console.log('error submit!!');
@@ -401,6 +403,8 @@ export default {
             } else {
               this.$parent.$parent.setStatus(2);
             }
+          }).catch(() => {
+            this.fullscreenLoading = false;
           });
         } else {
           console.log('error submit!!');
@@ -423,7 +427,9 @@ export default {
         } else {
           this.$parent.$parent.setStatus(2);
         }
-      });
+      }).catch(() => {
+            this.fullscreenLoading = false;
+          });
     },
     //暂存删除
     async onDelete() {

+ 7 - 1
src/views/oa/receive/edit.vue

@@ -365,6 +365,8 @@ export default {
             } else {
               this.$parent.$parent.setStatus(2);
             }
+          }).catch(() => {
+            this.fullscreenLoading = false;
           });
         } else {
           console.log('error submit!!');
@@ -389,6 +391,8 @@ export default {
             } else {
               this.$parent.$parent.setStatus(2);
             }
+          }).catch(() => {
+            this.fullscreenLoading = false;
           });
         } else {
           console.log('error submit!!');
@@ -411,7 +415,9 @@ export default {
         } else {
           this.$parent.$parent.setStatus(2);
         }
-      });
+      }).catch(() => {
+            this.fullscreenLoading = false;
+          });
     },
     //暂存删除
     async onDelete() {

+ 6 - 0
src/views/oa/renew/edit.vue

@@ -347,6 +347,8 @@ export default {
             }else{
               this.$parent.$parent.setStatus(2);
             }
+          }).catch(() => {
+            this.fullscreenLoading = false;
           });
         } else {
           console.log('error submit!!');
@@ -371,6 +373,8 @@ export default {
             }else{
               this.$parent.$parent.setStatus(2);
             }
+          }).catch(() => {
+            this.fullscreenLoading = false;
           });
         } else {
           console.log('error submit!!');
@@ -393,6 +397,8 @@ export default {
             }else{
               this.$parent.$parent.setStatus(2);
             }
+          }).catch(() => {
+            this.fullscreenLoading = false;
           });
     },
     //暂存删除

+ 6 - 0
src/views/oa/stamp/edit.vue

@@ -316,6 +316,8 @@ export default {
             }else{
               this.$parent.$parent.setStatus(2);
             }
+          }).catch(() => {
+            this.fullscreenLoading = false;
           });
         } else {
           console.log('error submit!!');
@@ -340,6 +342,8 @@ export default {
             }else{
               this.$parent.$parent.setStatus(2);
             }
+          }).catch(() => {
+            this.fullscreenLoading = false;
           });
         } else {
           console.log('error submit!!');
@@ -362,6 +366,8 @@ export default {
             }else{
               this.$parent.$parent.setStatus(2);
             }
+          }).catch(() => {
+            this.fullscreenLoading = false;
           });
     },
     //暂存删除

+ 6 - 0
src/views/oa/turnover/edit.vue

@@ -331,6 +331,8 @@ export default {
             }else{
               this.$parent.$parent.setStatus(2);
             }
+          }).catch(() => {
+            this.fullscreenLoading = false;
           });
         } else {
           console.log('error submit!!');
@@ -355,6 +357,8 @@ export default {
             }else{
               this.$parent.$parent.setStatus(2);
             }
+          }).catch(() => {
+            this.fullscreenLoading = false;
           });
         } else {
           console.log('error submit!!');
@@ -377,6 +381,8 @@ export default {
             }else{
               this.$parent.$parent.setStatus(2);
             }
+          }).catch(() => {
+            this.fullscreenLoading = false;
           });
     },
     //暂存删除

+ 6 - 0
src/views/oa/universal/edit.vue

@@ -296,6 +296,8 @@ export default {
             }else{
               this.$parent.$parent.setStatus(2);
             }
+          }).catch(() => {
+            this.fullscreenLoading = false;
           });
         } else {
           console.log('error submit!!');
@@ -320,6 +322,8 @@ export default {
             }else{
               this.$parent.$parent.setStatus(2);
             }
+          }).catch(() => {
+            this.fullscreenLoading = false;
           });
         } else {
           console.log('error submit!!');
@@ -342,6 +346,8 @@ export default {
             }else{
               this.$parent.$parent.setStatus(2);
             }
+          }).catch(() => {
+            this.fullscreenLoading = false;
           });
     },
     //暂存删除