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/stop-experiment.vue |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/laboratory/src/views/dataManagement/schemeManagement/stop-experiment.vue b/laboratory/src/views/dataManagement/schemeManagement/stop-experiment.vue
index c96466f..9241f36 100644
--- a/laboratory/src/views/dataManagement/schemeManagement/stop-experiment.vue
+++ b/laboratory/src/views/dataManagement/schemeManagement/stop-experiment.vue
@@ -113,6 +113,7 @@
 import { getDetail, applicationTermination } from './service'
 import {queryDetail} from '@/components/service.js'
 import {getFullUrl} from '@/utils/utils.js'
+import { mapState } from "vuex";
 
 export default {
   name: 'StopExperiment',
@@ -141,6 +142,9 @@
     } else {
       this.$message.error('参数错误,缺少实验ID')
     }
+  },
+  computed: {
+    ...mapState(["tagList", "isFold"]),
   },
   methods: {
     getFullUrl,
@@ -245,7 +249,11 @@
           this.$message.success('提交成功')
           this.handleDialogClose()
           // 提交成功后返回列表页
-          this.$router.go(-1)
+          this.$router.back();
+      this.$store.commit(
+        "SET_TAGLIST",
+        this.tagList.filter((item) => item.path !== this.$route.path)
+      );
         } catch (error) {
           this.$message.error('提交失败')
         } finally {

--
Gitblit v1.7.1