From 09abeae851f72a25f105030e37c6a0c9f3189378 Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期二, 07 七月 2026 14:54:57 +0800
Subject: [PATCH] 测试完成

---
 src/views/followvisit/tasklist/index.vue |   47 +++++++++++++++++++++++++++++++++++------------
 1 files changed, 35 insertions(+), 12 deletions(-)

diff --git a/src/views/followvisit/tasklist/index.vue b/src/views/followvisit/tasklist/index.vue
index 3fb13fe..d5409b2 100644
--- a/src/views/followvisit/tasklist/index.vue
+++ b/src/views/followvisit/tasklist/index.vue
@@ -184,8 +184,26 @@
           key="longTask"
           prop="longTask"
         >
-          <template slot-scope="scope">
+          <!-- <template slot-scope="scope">
             <span>{{ scope.row.longTask ? "闀挎湡浠诲姟" : "闈為暱鏈�" }}</span>
+          </template> -->
+           <template slot-scope="scope">
+
+              <div v-if="scope.row.longTask == 0">
+                <el-tag type="primary" :disable-transitions="false"
+                  >鑷畾涔夊懆鏈熶换鍔�</el-tag
+                >
+              </div>
+              <div v-if="scope.row.longTask == 1">
+                <el-tag type="success" :disable-transitions="false"
+                  >闀挎湡浠诲姟</el-tag
+                >
+              </div>
+              <div v-if="scope.row.longTask == 2">
+                <el-tag type="success" :disable-transitions="false"
+                  >鍥哄畾浠诲姟</el-tag
+                >
+              </div>
           </template>
         </el-table-column>
 
@@ -1003,17 +1021,22 @@
 
     // 鏆傚仠
     stop(row) {
-      console.log(row);
-      if (row.sendState == 2) {
-        this.TaskOperation.taskId = row.taskid;
-        this.TaskOperation.sendState = 3;
-        this.TaskOperation.sendType = "";
-        this.TaskOperation.taskType = row.type;
-        TaskTemplateSendExecution(this.TaskOperation).then((res) => {
-          this.$modal.msgSuccess("浠诲姟宸叉殏鍋�");
-          this.getList();
-        });
-      }
+      this.$modal
+        .confirm('鏄惁纭鏆傚仠"' + row.taskName + '"锛�')
+        .then(function () {
+          if (row.sendState == 2) {
+            this.TaskOperation.taskId = row.taskid;
+            this.TaskOperation.sendState = 3;
+            this.TaskOperation.sendType = "";
+            this.TaskOperation.taskType = row.type;
+            TaskTemplateSendExecution(this.TaskOperation).then((res) => {
+              this.$modal.msgSuccess("浠诲姟宸叉殏鍋�");
+              this.getList();
+            });
+          }
+        })
+
+        .catch(() => {});
     },
 
     /** 鎻愪氦鎸夐挳 */

--
Gitblit v1.9.3