From a85d70fa032f355baa9cafdb2b7350a19cd88741 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期一, 03 六月 2024 15:30:24 +0800
Subject: [PATCH] 测试完成
---
src/views/followvisit/tasklist/index.vue | 46 +++++++++++++++++++++++++++++++++++++++++-----
1 files changed, 41 insertions(+), 5 deletions(-)
diff --git a/src/views/followvisit/tasklist/index.vue b/src/views/followvisit/tasklist/index.vue
index 45a9c02..6c92687 100644
--- a/src/views/followvisit/tasklist/index.vue
+++ b/src/views/followvisit/tasklist/index.vue
@@ -218,7 +218,7 @@
>
<template slot-scope="scope">
<el-button
- v-if="scope.row.status != 1"
+ v-if="scope.row.sendState == 1 || scope.row.sendState == 3"
size="medium"
type="text"
@click="sponsor(scope.row)"
@@ -226,12 +226,25 @@
><i class="el-icon-s-promotion"></i>浠诲姟鍙戣捣</span
></el-button
>
+ <el-button
+ v-if="scope.row.sendState == 1 || scope.row.sendState == 3"
+ size="medium"
+ type="text"
+ @click="immediateExecution(scope.row)"
+ ><span class="button-lj"
+ ><i class="el-icon-s-promotion"></i>绔嬪嵆鎵ц</span
+ ></el-button
+ >
<el-button size="medium" type="text" @click="newAdd(scope.row)"
><span class="button-xj"
><i class="el-icon-circle-plus-outline"></i>渚濈収鏂板</span
></el-button
>
- <el-button size="medium" type="text" @click="stop(scope.row)"
+ <el-button
+ v-if="scope.row.sendState == 2"
+ size="medium"
+ type="text"
+ @click="stop(scope.row)"
><span class="button-zt"
><i class="el-icon-circle-plus-outline"></i>鏆傚仠浠诲姟</span
></el-button
@@ -716,13 +729,28 @@
deletefn() {},
// 浠诲姟鍙戣捣
sponsor(row) {
- console.log(row,'浠诲姟淇℃伅');
+ console.log(row, "浠诲姟淇℃伅");
if (row.sendState != 2) {
this.TaskOperation.taskId = row.taskid;
this.TaskOperation.sendState = 2;
- TaskTemplateSendExecution(this.TaskOperation).then((res) => {});
+ TaskTemplateSendExecution(this.TaskOperation).then((res) => {
+ this.getList();
+ });
}
},
+ // 绔嬪嵆鎵ц
+ immediateExecution(row) {
+ console.log(row, "浠诲姟淇℃伅");
+ if (row.sendState != 2) {
+ this.TaskOperation.taskId = row.taskid;
+ this.TaskOperation.sendState = 2;
+ this.TaskOperation.sendType = 2;
+ TaskTemplateSendExecution(this.TaskOperation).then((res) => {
+ this.getList();
+ });
+ }
+ },
+
// 渚濈収鏂板
newAdd(row) {
TaskTemplateSendExecution().then((res) => {});
@@ -732,7 +760,9 @@
if (row.sendState == 2) {
this.TaskOperation.taskId = row.taskId;
this.TaskOperation.sendState = 3;
- TaskTemplateSendExecution().then((res) => {});
+ TaskTemplateSendExecution().then((res) => {
+ this.getList();
+ });
}
},
@@ -891,6 +921,12 @@
border-radius: 1px;
color: #ffffff;
}
+.button-lj {
+ background: #e9614f;
+ padding: 5px;
+ border-radius: 1px;
+ color: #ffffff;
+}
.button-xj {
background: #815c94;
padding: 5px;
--
Gitblit v1.9.3