mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-01-24 10:33:50 +08:00
fix(dept): no parentDept can edit parentDept (#3255)
This commit is contained in:
parent
71c3fea88a
commit
2142506ce5
@ -69,7 +69,11 @@ export const formSchema: FormSchema[] = [
|
||||
field: 'parentDept',
|
||||
label: '上级部门',
|
||||
component: 'TreeSelect',
|
||||
|
||||
ifShow({ values }) {
|
||||
const { deptName, parentDept } = values;
|
||||
// Hide without a parentDept when editing
|
||||
return parentDept || (!deptName && !parentDept);
|
||||
},
|
||||
componentProps: {
|
||||
fieldNames: {
|
||||
label: 'deptName',
|
||||
|
Loading…
Reference in New Issue
Block a user