fix(测试用例): 修复测试用例功能用例批量编辑成员清空默认选中类型
This commit is contained in:
parent
52899f70ce
commit
c6111c7d12
|
@ -142,14 +142,20 @@
|
||||||
const currentAttrs = totalAttrs.value.filter((item: any) => item.fieldId === form.value.selectedAttrsId);
|
const currentAttrs = totalAttrs.value.filter((item: any) => item.fieldId === form.value.selectedAttrsId);
|
||||||
formRules.value = [];
|
formRules.value = [];
|
||||||
formRules.value = currentAttrs.map((item: CustomAttributes) => {
|
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 {
|
return {
|
||||||
type: val,
|
type: val,
|
||||||
name: item.fieldId,
|
name: item.fieldId,
|
||||||
label: 'caseManagement.featureCase.batchUpdate',
|
label: 'caseManagement.featureCase.batchUpdate',
|
||||||
value: item.defaultValue,
|
value: formValue,
|
||||||
options: item.options,
|
options: item.options,
|
||||||
props: {
|
props: {
|
||||||
modelValue: item.defaultValue,
|
modelValue: formValue,
|
||||||
options: item.options,
|
options: item.options,
|
||||||
disabled: !form.value.selectedAttrsId,
|
disabled: !form.value.selectedAttrsId,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue