From df21bfb0065ec44c06cd9d3fcd3dc41582cc91a9 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期二, 16 七月 2024 15:44:36 +0800
Subject: [PATCH] 测试完成
---
src/views/followvisit/tasklist/index.vue | 25 +++++++++++++++++++++++--
src/App.vue | 3 ++-
2 files changed, 25 insertions(+), 3 deletions(-)
diff --git a/src/App.vue b/src/App.vue
index 897936f..7bbc5ed 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -22,7 +22,8 @@
};
},
created() {
- console.log(this.routers);
+ this.routertf = this.$route.param5;
+ console.log(this.routertf);
if (
this.routers == "outsideChainxj" ||
this.routers == "outsideChain" ||
diff --git a/src/views/followvisit/tasklist/index.vue b/src/views/followvisit/tasklist/index.vue
index 516f7a8..1945b3c 100644
--- a/src/views/followvisit/tasklist/index.vue
+++ b/src/views/followvisit/tasklist/index.vue
@@ -280,7 +280,7 @@
</div>
<div
style="font-size: 18px; margin-bottom: 20px"
- v-if="taskform.showDate[0]"
+ v-if="taskform.showDate"
>
鎵ц鏃ユ湡锛�<span
style="font-size: 18px; color: #2376b7; margin-bottom: 20px"
@@ -657,6 +657,7 @@
getTasklist(this.topqueryParams).then((response) => {
this.userList = response.rows;
this.total = response.total;
+ this.$forceUpdate();
this.loading = false;
});
},
@@ -796,6 +797,7 @@
sponsor(row) {
console.log(row, "浠诲姟淇℃伅");
this.taskform = row;
+ console.log(12);
if (this.taskform.showDate && this.taskform.sendType != 2) {
this.taskform.showDate = this.taskform.showDate.split(",");
}
@@ -814,8 +816,27 @@
} else {
this.taskform.showTimeNoon = [];
}
- if (row.sendState != 2) {
+ if (this.taskform.sendState != 2 && this.taskform.sendType != 2) {
this.taskformVisible = true;
+ } else if (this.taskform.sendState != 2 && this.taskform.sendType == 2) {
+ this.TaskOperation.taskId = row.taskid;
+ this.TaskOperation.sendState = 2;
+ this.TaskOperation.sendType = 2;
+ this.$modal
+ .confirm(
+ '褰撳墠閫変腑浠诲姟鍚嶇О涓�"' +
+ row.taskName +
+ '"鐨勬暟鎹」涓虹珛鍗虫墽琛屼换鍔★紝鍙戣捣鎵ц鍚庝笉鍙挙鍥烇紒鏄惁缁х画'
+ )
+ .then(() => {
+ TaskTemplateSendExecution(this.TaskOperation).then((res) => {
+ if (res.code == 200) {
+ this.getList();
+ this.$modal.msgSuccess("浠诲姟宸茬珛鍗虫墽琛�");
+ }
+ });
+ })
+ .catch(() => {});
} else {
this.$modal.msgError("浠诲姟宸插彂璧凤紝涓嶅彲鍐嶆鍙戣捣");
}
--
Gitblit v1.9.3