diff --git a/src/components/customField/AddForm.vue b/src/components/customField/AddForm.vue index 86150307..86cb0356 100644 --- a/src/components/customField/AddForm.vue +++ b/src/components/customField/AddForm.vue @@ -215,7 +215,6 @@ :getPopupContainer="triggerNode=> triggerNode.parentNode" style="width: 100%" :tree-data="optionsData[item.dbFieldName]" - :replaceFields="{children:'children', title:'name', key:'id', value: 'itemValue'}" tree-checkable treeCheckStrictly :placeholder="$t('pleaseSelect')+item.dbFieldTxt" @@ -403,8 +402,7 @@ export default { this.$set(this.optionsData, item.dbFieldName, res.result) } }) - } - if (item.fieldShowType === FieldType.TREE.value && item.dictId) { + }else if (item.fieldShowType === FieldType.TREE.value && item.dictId) { getFormDictTreeList({ dictId: item.dictId }).then(res => { if (res.success) { this.$set(this.optionsData, item.dbFieldName, res.result)