From 7386c564c24ad6cf95e2fccbbba070288aa03ddc Mon Sep 17 00:00:00 2001 From: 13176889840 <13176889840@163.com> Date: Wed, 20 Apr 2022 15:10:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=98=AF=E5=90=A6=E5=87=BA=E7=A7=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/components/editResi.vue | 9 +++++++++ src/views/components/resiForm.vue | 9 +++++---- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/src/views/components/editResi.vue b/src/views/components/editResi.vue index 8459e87c..4a2fdff2 100644 --- a/src/views/components/editResi.vue +++ b/src/views/components/editResi.vue @@ -75,6 +75,7 @@ item.value === val); + if(item && item.type == '1'){ + this.form.IS_TENANT = '1' + console.log('item-----', item) + } else this.form.IS_TENANT = '0' + }, handlerMuscForm () { let arr = [] this.addList.forEach(item => { diff --git a/src/views/components/resiForm.vue b/src/views/components/resiForm.vue index 9ebcf9c7..eeaaedc0 100644 --- a/src/views/components/resiForm.vue +++ b/src/views/components/resiForm.vue @@ -554,10 +554,11 @@ export default { }, // 为了实现根据房屋类型改版是否租户的需求 handleChangeH(val){ - let item = this.optionsH.find(item => item.value===val); - if(item){ - // this.form.IS_TENANT = '1'; - } + let item = this.optionsH.find(item => item.value === val); + if(item && item.type == '1'){ + this.form.IS_TENANT = '1' + console.log('item-----', item) + } else this.form.IS_TENANT = '0' }, // 监听基础form handleChangeForm (val) {