From 48f86b37392f856f322fad02fc97c6e58a2e9719 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期六, 01 六月 2024 16:37:29 +0800
Subject: [PATCH] 测试完成
---
src/views/followvisit/tasklist/index.vue | 12 +++++++++---
src/api/AiCentre/SingleTask.js | 2 +-
2 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/src/api/AiCentre/SingleTask.js b/src/api/AiCentre/SingleTask.js
index 5943022..8792034 100644
--- a/src/api/AiCentre/SingleTask.js
+++ b/src/api/AiCentre/SingleTask.js
@@ -113,7 +113,7 @@
// 浠诲姟鍙戦�侊紝鎵ц
export function TaskTemplateSendExecution(data) {
return request({
- url: "/dev-api/smartor/tasksingle/taskSend",
+ url: "/smartor/tasksingle/taskSend",
method: "post",
data: data,
});
diff --git a/src/views/followvisit/tasklist/index.vue b/src/views/followvisit/tasklist/index.vue
index 1a7d677..45a9c02 100644
--- a/src/views/followvisit/tasklist/index.vue
+++ b/src/views/followvisit/tasklist/index.vue
@@ -387,6 +387,7 @@
inputVisible: false,
inputValue: "",
previewVisible: false, //闂ㄨ瘖闅忚棰勮寮规
+ TaskOperation: {},
radio: "",
radios: [],
previewtype: 2, //棰勮闂ㄨ瘖闅忚绫诲瀷
@@ -715,8 +716,11 @@
deletefn() {},
// 浠诲姟鍙戣捣
sponsor(row) {
- if (row.sendState != 1) {
- TaskTemplateSendExecution().then((res) => {});
+ console.log(row,'浠诲姟淇℃伅');
+ if (row.sendState != 2) {
+ this.TaskOperation.taskId = row.taskid;
+ this.TaskOperation.sendState = 2;
+ TaskTemplateSendExecution(this.TaskOperation).then((res) => {});
}
},
// 渚濈収鏂板
@@ -725,7 +729,9 @@
},
// 鏆傚仠
stop(row) {
- if (row.sendState == 2 || row.sendState == 3) {
+ if (row.sendState == 2) {
+ this.TaskOperation.taskId = row.taskId;
+ this.TaskOperation.sendState = 3;
TaskTemplateSendExecution().then((res) => {});
}
},
--
Gitblit v1.9.3