From a46348ad86f5df632c58bed5866a70f798b75d5e Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期五, 12 四月 2024 17:33:37 +0800
Subject: [PATCH] 测试完成
---
src/views/patient/propaganda/particty.vue | 48 +++++++++++++++++++++++++++---------------------
1 files changed, 27 insertions(+), 21 deletions(-)
diff --git a/src/views/patient/propaganda/particty.vue b/src/views/patient/propaganda/particty.vue
index e0b184f..d659f2a 100644
--- a/src/views/patient/propaganda/particty.vue
+++ b/src/views/patient/propaganda/particty.vue
@@ -69,6 +69,7 @@
>
<el-time-picker
is-range
+ arrow-control
@change="changeTime"
v-model="time1"
range-separator="鑷�"
@@ -85,6 +86,7 @@
>
<el-time-picker
is-range
+ arrow-control
@change="changeTime"
v-model="time2"
range-separator="鑷�"
@@ -101,6 +103,7 @@
>
<el-time-picker
is-range
+ arrow-control
@change="changeTime"
v-model="time3"
range-separator="鑷�"
@@ -641,7 +644,7 @@
getlibrarylist,
getFollowuplist,
getQtemplatelist,
- edithetask,
+ getTaskInfo,
addhetask,
gethetaskinfo,
delhetaskinfo,
@@ -824,8 +827,7 @@
created() {
this.id = this.$route.query.id;
this.form.type = this.$route.query.type;
- this.Addsubtask();
- this.Getsubtask();
+ this.Getdetails();
this.Acquisitiontype();
},
@@ -952,13 +954,12 @@
console.log(filteredArray, "瀛樺墠鍙橀噺");
this.form.textParam = this.convertFormat2ToFormat1(filteredArray);
-
if (this.form.id) {
this.form.isoperation = 2;
} else {
this.form.isoperation = 1;
}
- Editsingletask(this.form).then((response) => {
+ Editsingletask(this.form).then((res) => {
if (res.code == 200) {
if (this.form.id) {
this.$modal.msgSuccess("鏂板鎴愬姛");
@@ -1077,12 +1078,22 @@
Acknowledgereference() {
this.quote = true;
},
- // 鏂板瀛愪换鍔�
- Addsubtask() {
- this.topqueryParams.pguid = 2;
- // addsvr_prjtask(this.topqueryParams).then((res) => {
- // console.log(res);
- // });
+ // 鑾峰彇璇︽儏
+ Getdetails() {
+ if (this.id) {
+ getTaskInfo({ taskid: this.id }).then((res) => {
+ const filteredArray = "";
+ if (res.code == 200) {
+ this.form = res.data;
+ this.checkList = this.form.serviceform.split(",");
+ filteredArray = this.convertFormat1ToFormat2(this.form.textParam);
+ this.variableList = this.transitionList.concat(filteredArray);
+ } else {
+ this.$modal.msgError(res.code);
+ }
+ console.log(res);
+ });
+ }
},
// 鏂板娲鹃�佹偅鑰�
AddDispatchpatients() {
@@ -1093,16 +1104,6 @@
this.dialogVisiblepatient = false;
},
- // 鏌ヨ瀛愪换鍔″垪琛�
- Getsubtask() {
- this.topqueryParams.pguid = 2;
- console.log(this.topqueryParams, "aa");
- messagelistpatient(this.topqueryParams).then((res) => {
- this.userList = res.rows;
- this.total = res.total;
- console.log(this.userList, "ss");
- });
- },
// 鍙橀噺---------------
variableEdit(index, row) {
console.log(index, row);
@@ -1168,6 +1169,11 @@
}
}
this.form.sendTimeslot = combinedData;
+ // 灞曠ず鏁版嵁涓存椂瀛樺偍鏃ユ湡銆佹棭銆佷腑銆佹櫄
+ this.form.sendlimitabegin = this.daytime.join(",");
+ this.form.sendlimitaend = this.time1.join(",");
+ this.form.sendlimitnbegin = this.time2.join(",");
+ this.form.sendlimitnend = this.time3.join(",");
console.log(combinedData, "combinedData");
},
},
--
Gitblit v1.9.3