From 86ba36b2522c9967521c7b571f67ce388920e4c0 Mon Sep 17 00:00:00 2001 From: 13176889840 <13176889840@163.com> Date: Thu, 9 Dec 2021 14:57:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E6=8E=AA=E6=96=BD=E7=AE=A1?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/communityService/measure/index.vue | 7 ++++--- src/views/modules/visual/communityParty/community.vue | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/views/modules/communityService/measure/index.vue b/src/views/modules/communityService/measure/index.vue index e1104966..e060509e 100644 --- a/src/views/modules/communityService/measure/index.vue +++ b/src/views/modules/communityService/measure/index.vue @@ -663,7 +663,8 @@ export default { }, handleDemandChange(val) { - console.log('val', val) + console.log('val', val, this.selectDemandUser) + this.selectDemandUser = val.label this.form.demandUserName = val.demandUserName this.form.demandUserMobile = val.demandUserMobile this.form.demandUserId = val.demandUserId @@ -727,7 +728,7 @@ export default { this.disabled = disabled } if (addType == 'look') { - this.finishServiceTime = [row.serviceStartTime, row.serviceEndTime] + this.finishServiceTime = row.serviceStartTime && [row.serviceStartTime, row.serviceEndTime] || '' } if (addType == 'appoint' && row.serviceType) { await this.getServiceuserList(row.serviceType) @@ -738,7 +739,7 @@ export default { if (item.value === row.categoryCode) this.form.categoryCode = [row.categoryCode] }) this.demandUserList.forEach(item => { - if (item.demandUserId == row.demandUserId) this.selectDemandUser = item + if (item.demandUserId == row.demandUserId) this.selectDemandUser = item.label }) } diff --git a/src/views/modules/visual/communityParty/community.vue b/src/views/modules/visual/communityParty/community.vue index 8840068d..1a2c1a3e 100644 --- a/src/views/modules/visual/communityParty/community.vue +++ b/src/views/modules/visual/communityParty/community.vue @@ -199,11 +199,11 @@ export default { this.visibleLoading = false }, async loadUnit () { - const url = "/heart/icpartyunit/option" + const url = "/heart/icresidemanddict/subcodelist" // const url = "http://yapi.elinkservice.cn/mock/245/heart/icpartyunit/option" let params = { - agencyId: this.agencyId + parentCategoryCode: '' } const { data, code, msg } = await requestPost(url, params)