Przeglądaj źródła

保存wbs400后刷新页面

gangyj 3 lat temu
rodzic
commit
79af0097fe

+ 6 - 0
src/views/manager/contractinfo/detail.vue

@@ -1032,6 +1032,9 @@ export default {
         }
       } catch (error) {
         this.btnLoad = false;
+        if(this.activeType == '2'){
+          this.$router.go(0);
+        }
         return;
       }
 
@@ -1053,6 +1056,9 @@ export default {
         }
       } catch (error) {
         this.btnLoad = false;
+        if(this.activeType == '2'){
+          this.$router.go(0);
+        }
         return;
       }
       this.$message({

+ 6 - 2
src/views/manager/projectinfo/detail.vue

@@ -631,7 +631,9 @@ export default {
         }
       } catch (error) {
         this.btnLoad = false;
-        this.$router.go(0);
+        if(this.activeType == '2'){
+          this.$router.go(0);
+        }
         return;
       }
 
@@ -652,8 +654,10 @@ export default {
           await this.saveWbsTree();
         }
       } catch (error) {
-        this.$router.go(0);
         this.btnLoad = false;
+        if(this.activeType == '2'){
+          this.$router.go(0);
+        }
         return;
       }