fix(系统设置): 新增自定义字段失败问题

--bug=1037271 --user=王旭 【系统设置】组织-模板-新增字段-新增整数类型数字字段失败 https://www.tapd.cn/55049933/s/1481659
This commit is contained in:
WangXu10 2024-03-27 12:00:31 +08:00 committed by Craftsman
parent 35d5c3f5ae
commit 5f59d2cfdc
1 changed files with 3 additions and 3 deletions

View File

@ -97,7 +97,7 @@
<a-form-item <a-form-item
v-if="fieldForm.type === 'NUMBER'" v-if="fieldForm.type === 'NUMBER'"
field="selectFormat" field="selectNumber"
:label="t('system.orgTemplate.numberFormat')" :label="t('system.orgTemplate.numberFormat')"
asterisk-position="end" asterisk-position="end"
> >
@ -200,7 +200,7 @@
const fieldForm = ref<AddOrUpdateField>({ ...initFieldForm }); const fieldForm = ref<AddOrUpdateField>({ ...initFieldForm });
const isEdit = ref<boolean>(false); const isEdit = ref<boolean>(false);
const selectFormat = ref<FormItemType>(); // const selectFormat = ref<FormItemType>(); //
const selectNumber = ref<FormItemType>(); // const selectNumber = ref<FormItemType>('INT'); //
const isMultipleSelectMember = ref<boolean | undefined>(false); // const isMultipleSelectMember = ref<boolean | undefined>(false); //
const fieldType = ref<FormItemType>(); // const fieldType = ref<FormItemType>(); //
@ -289,7 +289,7 @@
} }
// //
if (selectNumber.value) { if (formCopy.type === 'NUMBER') {
formCopy.type = selectNumber.value; formCopy.type = selectNumber.value;
} }