From f1d0ce11bdb197784b1d3a3f83874250e0b29fa6 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期二, 29 十月 2024 17:46:26 +0800
Subject: [PATCH] 测试完成
---
src/views/patient/propaganda/particty.vue | 116 +++++++++++++++++++++++++++++----------------------------
1 files changed, 59 insertions(+), 57 deletions(-)
diff --git a/src/views/patient/propaganda/particty.vue b/src/views/patient/propaganda/particty.vue
index 782a240..586d12d 100644
--- a/src/views/patient/propaganda/particty.vue
+++ b/src/views/patient/propaganda/particty.vue
@@ -70,16 +70,34 @@
/>
</el-form-item>
<el-form-item label="鏈嶅姟褰㈠紡">
- <el-checkbox-group v-model="checkList">
+ <el-checkbox-group
+ v-model="checkList"
+ @change="handleCheckedCitiesChange"
+ >
<el-checkbox
v-for="(item, index) in checkboxlist"
:key="index"
:label="item.value"
+ @change="checkboxChange($event, item.value)"
>
{{ item.label }}</el-checkbox
>
</el-checkbox-group>
</el-form-item>
+ <div class="xinz-infs">
+ <el-form-item label="鏈嶅姟鎵ц椤哄簭" prop="daytime">
+ <el-tag
+ :key="tag.label"
+ type="success"
+ v-for="(tag, index) in foncheckList"
+ closable
+ :disable-transitions="false"
+ @close="handleClosetag(tag)"
+ >
+ ({{index+1}}){{ tag.label }}
+ </el-tag>
+ </el-form-item>
+ </div>
<el-form-item label="鏄惁闀挎湡" prop="longTask">
<el-radio-group v-model="form.longTask">
<el-radio :label="0">鏅�氫换鍔�</el-radio>
@@ -349,7 +367,7 @@
</div>
<!-- 浠诲姟璇︽儏 -->
<div v-if="Editprogress == 2">
- <el-alert title="鍦ㄦ湰闃舵閫夋嫨瀹f暀鐥呬汉" type="success" effect="dark">
+ <el-alert title="鍦ㄦ湰闃舵閫夋嫨鐥呬汉" type="success" effect="dark">
</el-alert>
<div class="leftvlue-jbxx">
<div class="examine-jic">
@@ -919,6 +937,7 @@
{ label: "鍑洪櫌鏃ユ湡", width: "150", prop: "inhosptime" },
{ label: "鎮h��", width: "", prop: "name" },
{ label: "韬唤璇�", width: "200", prop: "idcardno" },
+ { label: "鐢佃瘽鍙风爜", width: "180", prop: "telcode" },
{ label: "鎬у埆", width: "", prop: "sex" },
{ label: "骞撮緞", width: "", prop: "age" },
{ label: "璐d换鎶ゅ+", width: "", prop: "nurseName" },
@@ -931,6 +950,7 @@
{ label: "鍑洪櫌鏃ユ湡", width: "150", prop: "endtime" },
{ label: "鎮h��", width: "", prop: "name" },
{ label: "韬唤璇�", width: "200", prop: "sfzh" },
+ { label: "鐢佃瘽鍙风爜", width: "180", prop: "telcode" },
{ label: "鎬у埆", width: "", prop: "sex" },
{ label: "骞撮緞", width: "", prop: "age" },
{ label: "鍑洪櫌澶╂暟", width: "", prop: "endDay" },
@@ -977,6 +997,12 @@
pageSize: 10,
},
checkList: [],
+ foncheckList: [],
+ formatvalue: {
+ format1: "",
+ format2: "",
+ format3: "",
+ },
deliverytopqueryParams: {
pageNum: 1, //
pageSize: 10,
@@ -1052,7 +1078,7 @@
SelectPatientslist: [],
form: {
patTaskRelevances: [],
- sendType: 1,
+ sendType: 3,
longTask: 0,
templatename: "",
templateid: null,
@@ -1230,7 +1256,6 @@
value: "1",
label: "浜哄伐",
},
-
{
value: "2",
label: "绾歌川",
@@ -1444,7 +1469,6 @@
this.objyl.suitway = this.objyl.suitway.split(",");
this.questionList = res.data.ivrLibaTemplateScriptVOList;
this.getillness(row.id);
- console.log(res.data, "11");
this.Variablehandling(res.data.ivrLibaTemplateScriptVOList, 1);
this.previewtf = true;
}
@@ -1504,6 +1528,7 @@
}
});
});
+
const Aarr = Variablist.filter(
(obj, index, self) =>
index ===
@@ -1526,6 +1551,7 @@
{ label: "鍑洪櫌鏃ユ湡", width: "150", prop: "endtime" },
{ label: "鎮h��", width: "", prop: "name" },
{ label: "韬唤璇�", width: "200", prop: "idcardno" },
+ { label: "鐢佃瘽鍙风爜", width: "180", prop: "telcode" },
{ label: "鎬у埆", width: "", prop: "sex" },
{ label: "骞撮緞", width: "", prop: "age" },
{ label: "鍑洪櫌澶╂暟", width: "", prop: "endDay" },
@@ -1539,6 +1565,7 @@
{ label: "鍏ラ櫌鏃ユ湡", width: "150", prop: "starttime" },
{ label: "鎮h��", width: "", prop: "name" },
{ label: "韬唤璇�", width: "200", prop: "idcardno" },
+ { label: "鐢佃瘽鍙风爜", width: "180", prop: "telcode" },
{ label: "鎬у埆", width: "", prop: "sex" },
{ label: "骞撮緞", width: "", prop: "age" },
{ label: "鍑洪櫌澶╂暟", width: "", prop: "endDay" },
@@ -1881,14 +1908,14 @@
if (this.form.templateid) {
deleteTaskparticty(this.form.templateid).then((res) => {
if (res.code == 200) {
- Taskparticty(this.objyl).then((response) => {
- this.previewtf = false;
- this.form.libtemplateid = this.objyl.id;
- this.form.templateid = response.data;
- this.putbelongDepts(response.data);
- this.form.templatename = this.objyl.templateName;
- this.$modal.msgSuccess("閫夋嫨妯℃澘鎴愬姛");
- });
+ Taskparticty(this.objyl).then((response) => {
+ this.previewtf = false;
+ this.form.libtemplateid = this.objyl.id;
+ this.form.templateid = response.data;
+ this.putbelongDepts(response.data);
+ this.form.templatename = this.objyl.templateName;
+ this.$modal.msgSuccess("閫夋嫨妯℃澘鎴愬姛");
+ });
}
});
} else {
@@ -1923,33 +1950,24 @@
}
});
},
- // 澶勭悊鏈嶅姟褰㈠紡
- formatFn(type) {
- let list = [];
- let formlist = [];
- if (type == 1) {
- this.preachform.forEach((item) => {
- this.checkList.forEach((obj) => {
- if (item.label == obj) {
- list.push(item.value);
- }
- });
- });
- console.log(list, "list");
- this.form.preachform = list.join(",");
- } else {
- console.log(this.form.preachform, "this.form.preachform");
- formlist = this.form.preachform.split(",");
- console.log(11);
- this.preachform.forEach((item) => {
- formlist.forEach((obj) => {
- if (item.value == obj) {
- list.push(item.label);
- }
- });
- });
- this.checkList = list;
- }
+ checkboxChange(checked, value){
+
+ },
+ // 鏈嶅姟褰㈠紡閫夊彇
+ handleCheckedCitiesChange(row) {
+ console.log(row, "鏈嶅姟");
+ this.foncheckList = this.checkboxlist.filter((obj) =>
+ row.includes(obj.value)
+ );
+ },
+ // 鏈嶅姟褰㈠紡鍒犻櫎
+ handleClosetag(tag) {
+ console.log(tag, "tag");
+ console.log(this.foncheckList, "foncheckList");
+ this.checkList = this.checkList.filter((item) => item != tag.value);
+ this.foncheckList = this.foncheckList.filter(obj => obj.value !== tag.value);
+ console.log(this.checkList, "checkList");
+
},
// 绉戝澶勭悊
Departmenttreatment() {
@@ -2063,23 +2081,7 @@
margin-left: 10px;
}
}
-// .leftvlue-jbxx {
-// margin-bottom: 50px;
-// font-size: 20px;
-// span {
-// position: absolute;
-// right: 80px;
-// }
-// .demo-cascader {
-// margin-right: 20px;
-// }
-// .PreviewTemplate {
-// color: #02a7f0;
-// cursor: pointer;
-// font-size: 20px;
-// margin: 0 20px;
-// }
-// }
+
.preview-left {
margin: 20px;
// margin: 20px;
--
Gitblit v1.9.3