优化
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user