From c6111c7d12a866232f6d206e282b2e6a8c4688a8 Mon Sep 17 00:00:00 2001 From: "xinxin.wu" Date: Tue, 13 Aug 2024 16:05:53 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E7=94=A8=E4=BE=8B):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=B5=8B=E8=AF=95=E7=94=A8=E4=BE=8B=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E7=94=A8=E4=BE=8B=E6=89=B9=E9=87=8F=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E6=88=90=E5=91=98=E6=B8=85=E7=A9=BA=E9=BB=98=E8=AE=A4=E9=80=89?= =?UTF-8?q?=E4=B8=AD=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/batchEditModal.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/case-management/caseManagementFeature/components/batchEditModal.vue b/frontend/src/views/case-management/caseManagementFeature/components/batchEditModal.vue index 55d7486267..ca6bc1ebd5 100644 --- a/frontend/src/views/case-management/caseManagementFeature/components/batchEditModal.vue +++ b/frontend/src/views/case-management/caseManagementFeature/components/batchEditModal.vue @@ -142,14 +142,20 @@ const currentAttrs = totalAttrs.value.filter((item: any) => item.fieldId === form.value.selectedAttrsId); formRules.value = []; formRules.value = currentAttrs.map((item: CustomAttributes) => { + let formValue: string | string[] = item.defaultValue; + // 如果包含成员将默认成员清空重新设置 + const memberType = ['MEMBER', 'MULTIPLE_MEMBER']; + if (val && formValue.includes('CREATE_USER') && memberType.includes(val)) { + formValue = val === 'MEMBER' ? '' : []; + } return { type: val, name: item.fieldId, label: 'caseManagement.featureCase.batchUpdate', - value: item.defaultValue, + value: formValue, options: item.options, props: { - modelValue: item.defaultValue, + modelValue: formValue, options: item.options, disabled: !form.value.selectedAttrsId, },