This commit is contained in:
zds
2022-11-30 12:19:46 +08:00
parent 06aed20ca8
commit 317f5ec001

View File

@@ -265,7 +265,18 @@ export default {
}
form.enabled = `${form.enabled}`
if (form.class_id != null) {
this.getSubTypes(form.id)
if (form.isTop === '0' && form.base_data_type != null) {
crudClassstandard.getClass({ base_data_type: form.base_data_type }).then(res => {
this.classes = res.content.map(function(obj) {
if (obj.hasChildren) {
obj.children = null
}
return obj
})
})
} else {
this.getSubTypes(form.id)
}
} else {
this.getClass()
}