|
|
@@ -1,7 +1,7 @@
|
|
|
import type { VbenFormProps } from '#/adapter/form';
|
|
|
import type { VxeGridProps } from '#/adapter/vxe-table';
|
|
|
|
|
|
-import { EnumApi, UserApi } from '#/api';
|
|
|
+import { DepartmentApi, EnumApi, PostApi, UserApi } from '#/api';
|
|
|
import { formatterStatus } from '#/api/model';
|
|
|
|
|
|
export const searchFormOptions: VbenFormProps = {
|
|
|
@@ -73,15 +73,6 @@ export const formOptions: VbenFormProps = {
|
|
|
},
|
|
|
},
|
|
|
schema: [
|
|
|
- {
|
|
|
- component: 'Input',
|
|
|
- componentProps: {
|
|
|
- placeholder: '请输入组织',
|
|
|
- },
|
|
|
- fieldName: 'departmentId',
|
|
|
- label: '组织',
|
|
|
- rules: 'required',
|
|
|
- },
|
|
|
{
|
|
|
component: 'Input',
|
|
|
componentProps: {
|
|
|
@@ -162,6 +153,45 @@ export const formOptions: VbenFormProps = {
|
|
|
label: '备注',
|
|
|
formItemClass: 'col-span-2 items-baseline',
|
|
|
},
|
|
|
+ {
|
|
|
+ fieldName: 'otherinfo',
|
|
|
+ label: '其他信息',
|
|
|
+ component: 'Divider',
|
|
|
+ formItemClass: 'col-span-2 items-baseline',
|
|
|
+ hideLabel: true,
|
|
|
+ renderComponentContent: () => {
|
|
|
+ return {
|
|
|
+ default: () => {
|
|
|
+ return '其他信息';
|
|
|
+ },
|
|
|
+ };
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ component: 'ApiTreeSelect',
|
|
|
+ componentProps: {
|
|
|
+ placeholder: '请输入组织',
|
|
|
+ api: {
|
|
|
+ url: DepartmentApi.getTreeOptions,
|
|
|
+ },
|
|
|
+ showSearch: true,
|
|
|
+ },
|
|
|
+ fieldName: 'departmentId',
|
|
|
+ label: '组织',
|
|
|
+ rules: 'required',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ component: 'ApiSelect',
|
|
|
+ componentProps: {
|
|
|
+ placeholder: '请输入职位',
|
|
|
+ api: {
|
|
|
+ url: PostApi.getOptions,
|
|
|
+ },
|
|
|
+ showSearch: true,
|
|
|
+ },
|
|
|
+ fieldName: 'postId',
|
|
|
+ label: '职位',
|
|
|
+ },
|
|
|
],
|
|
|
wrapperClass: 'grid-cols-2',
|
|
|
};
|