From bf6643a35299f19ae9147864e6f3b6b4670da98a Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期六, 09 十一月 2024 11:42:59 +0800
Subject: [PATCH] 测试完成

---
 src/views/repositoryai/templateku/configurat/index.vue |   24 +++++++++++++++++-------
 1 files changed, 17 insertions(+), 7 deletions(-)

diff --git a/src/views/repositoryai/templateku/configurat/index.vue b/src/views/repositoryai/templateku/configurat/index.vue
index 27d7a52..abef0d2 100644
--- a/src/views/repositoryai/templateku/configurat/index.vue
+++ b/src/views/repositoryai/templateku/configurat/index.vue
@@ -1828,12 +1828,17 @@
         this.ruleForm.isoperation = 2;
         this.ruleForm.tempDetpRelevances = [];
         compileFollowup(this.ruleForm).then((res) => {
-          this.$modal.msgSuccess("淇敼鎴愬姛");
+          if (res.code==200) {
+            this.$modal.msgSuccess("淇敼鎴愬姛");
           this.confirmillness();
           this.putbelongDepts(this.id);
-          this.$modal.closeLoading();
+          // this.$modal.closeLoading();
           // this.$router.go(-1);
           window.location.reload();
+          }else{
+            this.$modal.closeLoading();
+          }
+
         });
       } else {
         this.ruleForm.isoperation = 1;
@@ -1842,11 +1847,16 @@
           : "1.0";
         this.ruleForm.tempDetpRelevances = [];
         compileFollowup(this.ruleForm).then((res) => {
-          this.$modal.msgSuccess("鏂板鎴愬姛");
-          this.confirmillness(res.data);
-          this.putbelongDepts(res.data);
-          this.$modal.closeLoading();
-          this.$router.go(-1);
+          if (res.code==200) {
+            this.$modal.msgSuccess("鏂板鎴愬姛");
+            this.confirmillness(res.data);
+            this.putbelongDepts(res.data);
+            this.$modal.closeLoading();
+            this.$router.go(-1);
+          }else{
+            this.$modal.closeLoading();
+          }
+
         });
       }
     },

--
Gitblit v1.9.3