mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-09-09 18:59:26 +08:00
fix: 一级部门不能修改上级部门
This commit is contained in:
@@ -40,6 +40,9 @@ const columns: Columns = [
|
|||||||
field: 'parentId',
|
field: 'parentId',
|
||||||
type: 'tree-select',
|
type: 'tree-select',
|
||||||
data: deptList,
|
data: deptList,
|
||||||
|
hide: (form) => {
|
||||||
|
return form.parentId === 0
|
||||||
|
},
|
||||||
props: {
|
props: {
|
||||||
allowClear: true,
|
allowClear: true,
|
||||||
allowSearch: true,
|
allowSearch: true,
|
||||||
|
Reference in New Issue
Block a user