From f79e98ee0a2b4ff0676241c03ba89c0540673aab Mon Sep 17 00:00:00 2001
From: songshankun <songshankun@foxmail.com>
Date: 星期一, 09 十月 2023 17:10:28 +0800
Subject: [PATCH] feat: 页面刷新后不再自动弹出任务弹窗

---
 src/components/TaskControlModal.vue |    4 +++-
 src/views/visualization.vue         |    4 +---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/components/TaskControlModal.vue b/src/components/TaskControlModal.vue
index c5ce308..95c46be 100644
--- a/src/components/TaskControlModal.vue
+++ b/src/components/TaskControlModal.vue
@@ -363,6 +363,8 @@
     getCurrentTaskProduceParams(id) {
       // const id = this.currentTaskData?.Procedure?.ID
       if (id) {
+        this.currentProcessParams = []
+        this.getProcessParamsErrMsg = ""
         startTask({id}).then((res) => {
           if (res.code === 200) {
             this.currentProcessParams = res.data.Params ?? []
@@ -421,7 +423,7 @@
       if (this.currentTaskData?.Procedure?.ID && this.currentTaskData?.Procedure?.Status === 1) {
         this.num = 0;
         this.showBtn = 1;
-        this.show = true;
+        // this.show = true;
       } else {
         this.show = false;
       }
diff --git a/src/views/visualization.vue b/src/views/visualization.vue
index 94cf74b..7755273 100644
--- a/src/views/visualization.vue
+++ b/src/views/visualization.vue
@@ -605,8 +605,6 @@
 
     </template> -->
     <!-- 鎺у埗鐨勫脊妗� -->
-    <AddControl ref="control" :Arr="Arr" />
-    <!-- 鎺у埗鐨勫脊妗� -->
     <TaskControlModal
       ref="control"
       :activeName="activeName"
@@ -1161,7 +1159,7 @@
         //     }, 60000);
         //   }
         // }
-        
+
       });
       // this.TasksCopy.push(this.object)
       // this.TasksCopy.push(this.object)

--
Gitblit v1.8.0