From 3a09fb29a6bb50e8d35fc48e85a316c980d95c01 Mon Sep 17 00:00:00 2001 From: mk <2403457699@qq.com> Date: Tue, 4 Jun 2024 18:21:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B1=85=E6=B0=91=E8=80=81=E5=B9=B4=E4=BA=BA?= =?UTF-8?q?=E9=9C=80=E6=B1=82=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/resiExpand/editExpand.vue | 49 ++++++++++++++++++- src/views/components/resiExpand/index.vue | 35 +++++++++++-- 2 files changed, 78 insertions(+), 6 deletions(-) diff --git a/src/views/components/resiExpand/editExpand.vue b/src/views/components/resiExpand/editExpand.vue index a9e705273..16f4d5ab4 100644 --- a/src/views/components/resiExpand/editExpand.vue +++ b/src/views/components/resiExpand/editExpand.vue @@ -19,7 +19,7 @@ @@ -211,11 +211,56 @@ export default { }, methods: { handleFormChange(pid,id,type){ + console.log(pid,id,type,'拓展组件'); + console.log(this.formList); this.changPid = pid; this.changId = id; this.changType = type; nextTick(1000) this.$emit('submitExpand', this.form,{changId:this.changId,changPid:this.changPid,changType:this.changType}) + // let index = this.formList.findIndex(item=>item.formId === "oldPeopleDto") + if (pid === 'oldPeopleDto' && id === 'oldPeopleCategories') { + this.formList.forEach((item,index) => { + item.form[0].children.forEach(async (itemC,indexC) => { + if (itemC.formName === "oldPeopleCategories") { + await nextTick(500) + if (itemC.value.findIndex(itemK => itemK === "liveAloneFlag") != -1) { + itemC.opction.forEach(itemJ => { + if (itemJ.value === "emptyNesterFlag") { + itemJ.disabled = true; + this.form[pid].resideSituation = 'duju' + item.form[0].children[1].disabled = true; + this.$forceUpdate() + } else { + itemJ.disabled = false; + this.$forceUpdate() + } + }) + } else if (itemC.value.findIndex(itemK => itemK === "emptyNesterFlag") != -1) { + itemC.opction.forEach(itemJ => { + if (itemJ.value === "liveAloneFlag") { + itemJ.disabled = true; + this.form[pid].resideSituation = 'kongchao' + item.form[0].children[1].disabled = true; + this.$forceUpdate() + + } else { + itemJ.disabled = false; + this.$forceUpdate() + } + }) + } else { + this.form[pid].resideSituation = 'duju' + item.form[0].children[1].disabled = false; + itemC.opction.forEach(itemJ => { + itemJ.disabled = false; + }) + this.$forceUpdate() + } + } + }) + }) + } }, checkNumberInput(itemj, itemk) { if (this.form[itemj][itemk]) { diff --git a/src/views/components/resiExpand/index.vue b/src/views/components/resiExpand/index.vue index 0b401c6d7..4e0cb5b38 100644 --- a/src/views/components/resiExpand/index.vue +++ b/src/views/components/resiExpand/index.vue @@ -17,9 +17,9 @@ + class="list_item_width_1" @change="handelChangeSelsect(itemj.id,itemk.formName)" :disabled="itemk.disabled"> + :value="items.value" > @@ -43,10 +43,10 @@