fix(系统设置): 新增自定义字段失败问题
--bug=1037271 --user=王旭 【系统设置】组织-模板-新增字段-新增整数类型数字字段失败 https://www.tapd.cn/55049933/s/1481659
This commit is contained in:
parent
35d5c3f5ae
commit
5f59d2cfdc
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue