|
|
|
|
@ -1,4 +1,5 @@
|
|
|
|
|
import { DictEnum } from '@vben/constants';
|
|
|
|
|
import { getPopupContainer } from '@vben/utils';
|
|
|
|
|
|
|
|
|
|
import { type FormSchemaGetter, z } from '#/adapter';
|
|
|
|
|
import { getDictOptions } from '#/utils/dict';
|
|
|
|
|
@ -41,7 +42,11 @@ export const drawerSchema: FormSchemaGetter = () => [
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
component: 'TreeSelect',
|
|
|
|
|
componentProps: { class: 'w-full', placeholder: '请选择' },
|
|
|
|
|
componentProps: {
|
|
|
|
|
class: 'w-full',
|
|
|
|
|
getPopupContainer,
|
|
|
|
|
placeholder: '请选择',
|
|
|
|
|
},
|
|
|
|
|
fieldName: 'deptId',
|
|
|
|
|
label: '所属部门',
|
|
|
|
|
rules: 'selectRequired',
|
|
|
|
|
|