| | |
| | | import { BasicColumn, FormSchema } from '/@/components/Table'; |
| | | import { BasicColumn, FormSchema } from '@/components/Table'; |
| | | import { h } from 'vue'; |
| | | import { Tag } from 'ant-design-vue'; |
| | | |
| | |
| | | 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', |
| | | key: 'id', |
| | | value: 'id', |
| | | }, |
| | | getPopupContainer: () => document.body, |