From 527a5d27c5b7b171bb3b330a82a0d49f2163ae79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=97=AB=E6=99=93=E8=8C=B9?= <1935832701@qq.com> Date: Thu, 27 Jun 2024 09:21:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=B7=AF=E5=BE=84=E8=8A=82?= =?UTF-8?q?=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/ManageNodeInformation/index.vue | 16 +++- .../system/ManageNodeInformation/indexjs.js | 86 ++++++++++++++----- .../system/editorialSpecialization/index.vue | 6 +- src/views/system/specialDiseaseNode/index.vue | 11 ++- 4 files changed, 90 insertions(+), 29 deletions(-) diff --git a/src/views/system/ManageNodeInformation/index.vue b/src/views/system/ManageNodeInformation/index.vue index c8e5599..cef1f83 100644 --- a/src/views/system/ManageNodeInformation/index.vue +++ b/src/views/system/ManageNodeInformation/index.vue @@ -488,7 +488,10 @@ > -
+
问卷模板: - --> + + + { + // console.log(e,'e') + // }) + // // if (newValue == "NOT_SEND_MESSAGE") { + // // this.form.phoneMessageTemplateId = ""; + // // this.form.phoneMessageTemplateName = ""; + // // } + // }, + // deep: true, + // }, }, mounted() { // this.form = this.lists[0].list[0]; @@ -437,21 +451,11 @@ export default { optiononditionOperator() { var dictType = "trigger_condition_operator"; getAgencytype(dictType).then((res) => { + console.log(res, 'redsssssssss') this.optionstriggerConditionOperator = res.data; }); }, - // 包含或等号接口 - handlelist() { - var dictType = "trigger_condition_operator"; - getList(dictType, this.dictDataType).then((res) => { - this.optionstriggerConditionOperator = res.data; - console.log( - this.optionstriggerConditionOperator, - " this.optionstriggerConditionOperator " - ); - }); - }, // 包含 changetriggerLogic(e, index) { @@ -475,11 +479,24 @@ export default { this.dictDataType = this.optionsname.find( (el) => el.dictValue == e ).dictDataType; + this.handlelist(); + this.openlist.triggerConditionList[index].dictDataType = this.optionsname.find((el) => el.dictValue == e).dictDataType; - this.handlelist(); }, + // 包含或等号接口 + handlelist() { + var dictType = "trigger_condition_operator"; + getList(dictType, this.dictDataType).then((res) => { + console.log(res.data, 'res') + this.optionstriggerConditionOperator = res.data; + // console.log( + // this.optionstriggerConditionOperator, + // " this.optionstriggerConditionOperator " + // ); + }); + }, // 且或 changetriggerLogicsname(e, index) { this.openlist.triggerConditionList[index].triggerLogic = e; @@ -494,6 +511,19 @@ export default { }); this.infolist(); }, + changehos() { + // this.$message.error('1111111111') + // this.$message.error('应该选择${conf.accept}类型的文件') + this.$alert('这是一段内容', '标题名称', { + confirmButtonText: '确定', + callback: action => { + this.$message({ + type: 'info', + message: `action: ${action}` + }); + } + }); + }, // 展示触发条件 infolist() { this.routeId = this.$route.query.id; @@ -504,10 +534,13 @@ export default { p.dictDataType = this.optionsname.find( (el) => el.dictValue == p.triggerConditionCode )?.dictDataType; - var dictType = p.triggerConditionCode; - getAgencytype(dictType).then((res) => { - this.ConditionValue = res.data; - }); + // var dictType = p.triggerConditionCode; + // getAgencytype(dictType).then((res) => { + // this.ConditionValue = res.data; + this.optiononditionOperator(); + + // }); + // console.log(this.ConditionValue,'ConditionValueConditionValueConditionValueConditionValue') // this.handlelist(); @@ -517,7 +550,6 @@ export default { // this.optionstriggerConditionOperator = res.data; // }); }); - this.optiononditionOperator(); if (res.data.length == 1) { // 回显一条时 this.updata = res.data[0]; @@ -557,6 +589,8 @@ export default { // 编辑接口 infolistname() { this.routeId = this.$route.query.id; + this.optionstriggerConditionOperator = [] + triggerConditionList(this.routeId).then((res) => { this.openlist.triggerConditionList = res.data; this.openlist.triggerConditionList.forEach((o) => { @@ -564,16 +598,22 @@ export default { o.dictDataType = this.optionsname.find( (el) => el.dictValue == o.triggerConditionCode )?.dictDataType; + // console.log(o.dictDataType, 'dictDataTypedictDataTypedictDataTypedictDataType') + var dictType = "trigger_condition_operator"; + + getList(dictType, o.dictDataType).then((res) => { + this.optionstriggerConditionOperator = res.data; + setTimeout(() => { + this.optionstriggerConditionOperator = [] + + }, 30); + }); + var dictType = o.triggerConditionCode; getAgencytype(dictType).then((res) => { + // console.log(res, 'ressssssss') this.ConditionValue = res.data; }); - // if (o.triggerConditionCode.includes("SEX")) { - // var dictType = "SEX"; - // getAgencytype(dictType).then((res) => { - // this.ConditionValue = res.data; - // }); - // } }); this.$set(this.updata, "suitRange", this.openlist.suitRange); }); diff --git a/src/views/system/editorialSpecialization/index.vue b/src/views/system/editorialSpecialization/index.vue index 83e2067..3214992 100644 --- a/src/views/system/editorialSpecialization/index.vue +++ b/src/views/system/editorialSpecialization/index.vue @@ -432,7 +432,7 @@ export default { this.info(); this.infolist(); this.infolistoptionslistS(); - this.optiononditionOperator(); + // this.optiononditionOperator(); this.optiononditionOperators(); }, watch: {}, @@ -453,11 +453,15 @@ export default { }, // 包含 changetriggerLogic(e, index) { + // if (this.updata.triggerConditionList[index].triggerConditionOperator=='') { + // this.$message('请先选择第一个') + // } else { this.updata.triggerConditionList[index].triggerConditionOperatorName = this.optionstriggerConditionOperator.find( (el) => el.dictValue == e ).dictLabel; this.updata.triggerConditionList[index].triggerConditionValue = null; + // } }, // 诊断 changetriggerConditionName(e, index) { diff --git a/src/views/system/specialDiseaseNode/index.vue b/src/views/system/specialDiseaseNode/index.vue index 1b2a5e0..2148f78 100644 --- a/src/views/system/specialDiseaseNode/index.vue +++ b/src/views/system/specialDiseaseNode/index.vue @@ -322,7 +322,10 @@ >
-
+
问卷模板: