update AddForm
This commit is contained in:
@@ -215,7 +215,6 @@
|
|||||||
:getPopupContainer="triggerNode=> triggerNode.parentNode"
|
:getPopupContainer="triggerNode=> triggerNode.parentNode"
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
:tree-data="optionsData[item.dbFieldName]"
|
:tree-data="optionsData[item.dbFieldName]"
|
||||||
:replaceFields="{children:'children', title:'name', key:'id', value: 'itemValue'}"
|
|
||||||
tree-checkable
|
tree-checkable
|
||||||
treeCheckStrictly
|
treeCheckStrictly
|
||||||
:placeholder="$t('pleaseSelect')+item.dbFieldTxt"
|
:placeholder="$t('pleaseSelect')+item.dbFieldTxt"
|
||||||
@@ -403,8 +402,7 @@ export default {
|
|||||||
this.$set(this.optionsData, item.dbFieldName, res.result)
|
this.$set(this.optionsData, item.dbFieldName, res.result)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}else if (item.fieldShowType === FieldType.TREE.value && item.dictId) {
|
||||||
if (item.fieldShowType === FieldType.TREE.value && item.dictId) {
|
|
||||||
getFormDictTreeList({ dictId: item.dictId }).then(res => {
|
getFormDictTreeList({ dictId: item.dictId }).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$set(this.optionsData, item.dbFieldName, res.result)
|
this.$set(this.optionsData, item.dbFieldName, res.result)
|
||||||
|
|||||||
Reference in New Issue
Block a user