update 树形字典修改

This commit is contained in:
赵霄
2023-09-13 11:41:24 +08:00
parent a75812fd2f
commit 78ccb24a20
2 changed files with 5 additions and 2 deletions
+2 -2
View File
@@ -240,7 +240,7 @@ import { FieldType } from '../../enums/commonEnums'
import JMultipleDatePicker from '../JMultipleDatePicker'
import UserSelection from '../selection/UserSelection'
import { getAction } from '../../api/manage.js'
import { getDictTreeList } from '../../api/api.js'
import { getFormDictTreeList } from '../../api/api.js'
export default {
name: 'AddForm',
@@ -416,7 +416,7 @@ export default {
})
}
if (item.fieldShowType === FieldType.TREE.value && item.dictId) {
getDictTreeList({ dictId: item.dictId }).then(res => {
getFormDictTreeList({ dictId: item.dictId }).then(res => {
if (res.success) {
this.$set(this.optionsData, item.dbFieldName, res.result)
}