From f6ac8a4357825cb3a45f1031f13d748f7f2e501a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BE=89?= <814457906@qq.com> Date: Thu, 18 Jul 2024 15:42:59 +0800 Subject: [PATCH] xg --- .../system/ManuallyCreatingTasks/index.vue | 28 ++++--------------- 1 file changed, 6 insertions(+), 22 deletions(-) diff --git a/src/views/system/ManuallyCreatingTasks/index.vue b/src/views/system/ManuallyCreatingTasks/index.vue index 8741fd4..7f24170 100644 --- a/src/views/system/ManuallyCreatingTasks/index.vue +++ b/src/views/system/ManuallyCreatingTasks/index.vue @@ -437,12 +437,12 @@ export default { this.infolistoptionslistS(); this.optiononditionOperators(); this.optiononditionOperator(); - this.formInline = this.list[0]; this.updata.signPatientRecordId = this.$route.query.signPatientRecordId; this.updata.patientId = this.$route.query.patientId; this.updata.patientName = this.$route.query.patientName; this.updata.departmentId = this.$route.query.departmentId; this.updata.departmentName = this.$route.query.departmentName; + this.formInline = this.list[0]; }, mounted() { this.getMaxTableHeight() @@ -562,24 +562,17 @@ export default { var dictType = "text_message_remind"; getAgencytype(dictType).then((res) => { this.optionslist = res.data; - // this.taskinfo(); }); }, infolistMESSAGE() { var dictType = "redial_times"; getAgencytype(dictType).then((res) => { this.optionslisttime = res.data; - // this.taskinfo(); }); }, changeoptions(e) { - this.parentDictCode = this.options.find( - (el) => el.dictValue == e - ).dictCode; - this.changelisy(); - }, - changelisy() { - list(this.parentDictCode).then((res) => { + let parentDictCode = this.options.find((el) => el.dictValue == e).dictCode; + list(parentDictCode).then((res) => { this.parentDictCodelist = res.rows; }); }, @@ -661,20 +654,12 @@ export default { this.formInline = item; this.listindex = index; }, - additem(item) { - if (this.parentDictCode) { - list(this.parentDictCode).then((res) => { - res.rows.forEach((e) => { - this.list.forEach((el) => { - el.routeNodeName = e.dictValue; - }); - }); - }); - } + additem() { + let routeNodeName = this.parentDictCodelist.length > 0 ? this.parentDictCodelist[0].dictValue : "" this.list.push({ routeNodeDay: "", taskNodeType: "", - routeNodeName: "", + routeNodeName: routeNodeName, // questionExpirationDate: 7, questionInfoId: "", questionnaireName: "", @@ -695,7 +680,6 @@ export default { }, changephoneDialMethod(e) { if (e == 'AI') { - // this.form.templateId='' this.formInline.phoneId = '' this.formInline.phoneTemplateName = '' } else if (e == 'COMMON') {