Bläddra i källkod

保存wbs400后刷新页面

gangyj 3 år sedan
förälder
incheckning
79af0097fe
2 ändrade filer med 12 tillägg och 2 borttagningar
  1. 6 0
      src/views/manager/contractinfo/detail.vue
  2. 6 2
      src/views/manager/projectinfo/detail.vue

+ 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;
       }