fix(项目设置): 修复模版关联问题
This commit is contained in:
parent
d68f283578
commit
4f327535b4
|
@ -448,7 +448,9 @@
|
||||||
// 处理表单数据格式
|
// 处理表单数据格式
|
||||||
const getFieldOptionList = () => {
|
const getFieldOptionList = () => {
|
||||||
totalTemplateField.value = getTotalFieldOptionList(totalTemplateField.value as DefinedFieldItem[]);
|
totalTemplateField.value = getTotalFieldOptionList(totalTemplateField.value as DefinedFieldItem[]);
|
||||||
|
if (!isEdit.value) {
|
||||||
selectData.value = totalTemplateField.value.filter((item) => item.internal);
|
selectData.value = totalTemplateField.value.filter((item) => item.internal);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// 获取字段列表数据
|
// 获取字段列表数据
|
||||||
|
@ -665,9 +667,7 @@
|
||||||
selectData.value = [];
|
selectData.value = [];
|
||||||
totalTemplateField.value = [];
|
totalTemplateField.value = [];
|
||||||
await getClassifyField();
|
await getClassifyField();
|
||||||
if (!isEdit.value) {
|
|
||||||
getFieldOptionList();
|
getFieldOptionList();
|
||||||
}
|
|
||||||
if (isEdit.value) {
|
if (isEdit.value) {
|
||||||
getTemplateInfo();
|
getTemplateInfo();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue