From 718a13554dbb2f99e27adeb7b95edfc3096dacc5 Mon Sep 17 00:00:00 2001
From: 董国庆 <364620639@qq.com>
Date: 星期四, 26 六月 2025 14:24:27 +0800
Subject: [PATCH] 删除打印和路由返回

---
 laboratory/src/views/dataManagement/schemeManagement/addPlan.vue |   16 +++++++++-------
 1 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/laboratory/src/views/dataManagement/schemeManagement/addPlan.vue b/laboratory/src/views/dataManagement/schemeManagement/addPlan.vue
index e8ea911..783da87 100644
--- a/laboratory/src/views/dataManagement/schemeManagement/addPlan.vue
+++ b/laboratory/src/views/dataManagement/schemeManagement/addPlan.vue
@@ -356,6 +356,7 @@
 } from "./service";
 import moment from "moment";
 import { add, update, updateTester } from "./service";
+import { mapState } from "vuex";
 
 export default {
   name: "AddProject",
@@ -432,6 +433,9 @@
       this.editId = this.$route.query.id;
       await this.loadEditData();
     }
+  },
+  computed: {
+    ...mapState(["tagList", "isFold"]),
   },
   methods: {
     // ===== 人员相关方法 =====
@@ -584,7 +588,11 @@
                 this.$message.success(
                   status === 1 ? "保存成功" : "草稿保存成功"
                 );
-                this.$router.go(-1);
+                this.$router.back();
+      this.$store.commit(
+        "SET_TAGLIST",
+        this.tagList.filter((item) => item.path !== this.$route.path)
+      );
               } else {
                 this.$message.error(
                   res.msg || (status === 1 ? "保存失败" : "草稿保存失败")
@@ -706,7 +714,6 @@
           });
         getParticipantsByDispatchId({ dispatchId: data[0].id })
           .then((res) => {
-            console.log("获取参加人员列表:", res);
             if (res) {
               this.participantsData = res || [];
             } else {
@@ -731,7 +738,6 @@
           return;
         }
 
-        console.log("编辑数据", res);
         const data = res;
 
         // 填充基本表单数据
@@ -740,10 +746,6 @@
         // 填充实验调度信息
         if (data.experimentDispatch?.id) {
           this.form.dispatchId = data.experimentDispatch.id;
-          console.log(
-            "experimentStepRecord experimentStepRecord",
-            JSON.parse(data.experimentStepRecord)
-          );
           this.groupTableData = [{ ...data.experimentDispatch }];
 
           // 获取组别信息

--
Gitblit v1.7.1