From 2f22a2d8a80cf1e73b7627b93a1a05656f1e013a Mon Sep 17 00:00:00 2001 From: 13176889840 <13176889840@163.com> Date: Wed, 24 Nov 2021 17:31:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AD=97=E6=AE=B5=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../communityService/measure/index.vue | 29 +++++++++++-------- 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/src/views/modules/communityService/measure/index.vue b/src/views/modules/communityService/measure/index.vue index 47da7883..e1104966 100644 --- a/src/views/modules/communityService/measure/index.vue +++ b/src/views/modules/communityService/measure/index.vue @@ -58,7 +58,7 @@ - + - + + placeholder="请输入" class="input-width" maxlength="11" clearable> + @change="handleServiceChange('add', $event)"> 0) { + if (Array.isArray(this.reportTime) && this.reportTime.length > 0) { this.searchForm.reportStartTime = this.reportTime[0] this.searchForm.reportEndTime = this.reportTime[1] } - if (this.serviceTime.length > 0) { + if (Array.isArray(this.serviceTime) && this.serviceTime.length > 0) { this.searchForm.wantServiceStartTime = this.serviceTime[0] - this.searchForm.wantServiceTime = this.serviceTime[1] + this.searchForm.wantServiceEndTime = this.serviceTime[1] } this.getTableData() }, @@ -688,8 +689,12 @@ export default { } }, - handleServiceChange(val) { - this.getServiceuserList(val) + handleServiceChange(type, val) { + if (val === 'social_org') { + if (type === 'add') this.getServiceuserList(val, 'add_demand') + else this.getServiceuserList(val, 'query_demand') + } else this.getServiceuserList(val, '') + }, handleGridChange(val) { this.getDemandUserList() @@ -969,12 +974,12 @@ export default { return this.$message.error('网络错误') }) }, - async getServiceuserList(serviceType) { - if (!serviceType) return this.$message.error('服务方不能为空') + async getServiceuserList(serviceType, query) { + if (!serviceType) return false const params = { serviceName: '', serviceType: serviceType, - queryPurpose: '' + queryPurpose: query } await this.$http .post('/heart/userdemand/servicelist', params)