Skip to content

Commit

Permalink
fix: 一级部门不能修改上级部门
Browse files Browse the repository at this point in the history
  • Loading branch information
jskils authored and Charles7c committed Apr 28, 2024
1 parent 5264cf2 commit b2a1658
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/views/system/dept/DeptAddModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b2a1658

Please sign in to comment.