diff --git a/src/views/system/dept/DeptAddModal.vue b/src/views/system/dept/DeptAddModal.vue index c3b009aa..c30e549c 100644 --- a/src/views/system/dept/DeptAddModal.vue +++ b/src/views/system/dept/DeptAddModal.vue @@ -40,6 +40,9 @@ const columns: Columns = [ field: 'parentId', type: 'tree-select', data: deptList, + hide: (form) => { + return form.parentId === 0 + }, props: { allowClear: true, allowSearch: true,