From b5520008f36d18f56daaa81cfce3298472771806 Mon Sep 17 00:00:00 2001 From: zxc <1272811460@qq.com> Date: Thu, 25 Aug 2022 17:03:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../communityService/worklog/workLogForm.vue | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/views/modules/communityService/worklog/workLogForm.vue b/src/views/modules/communityService/worklog/workLogForm.vue index 223120606..8d3fdeb06 100644 --- a/src/views/modules/communityService/worklog/workLogForm.vue +++ b/src/views/modules/communityService/worklog/workLogForm.vue @@ -30,10 +30,7 @@ label-width="150px" style="display: block" prop="serviceType"> - { - if (s.serviceType === this.formData.serviceType){ - this.disabled = s.enabled - } - }) this.getGridList(type) this.formType = type if (type === 'edit'){ this.formData = row this.getDemandUserList(this.formData.gridId) + this.serviceTypeList.forEach(s => { + if (s.serviceType === this.formData.serviceType){ + this.disabled = s.enabled === 1 ? true : false + } + }) + if (!this.disabled){ + this.formData.serviceType = '' + } } this.endLoading() }, @@ -324,6 +324,7 @@ export default { resetData () { this.demandUserList = [] this.optionsG = [] + this.disabled = false this.formData = { serviceType: 0, gridId: '',