This commit is contained in:
FLL
2025-09-05 14:20:28 +08:00
parent 45d7ae177a
commit 724cb63fc8

View File

@@ -2,7 +2,7 @@ import type { FormSchemaGetter } from '#/adapter/form';
import type { VxeGridProps } from '#/adapter/vxe-table'; import type { VxeGridProps } from '#/adapter/vxe-table';
import {getDictOptions} from "#/utils/dict"; import {getDictOptions} from "#/utils/dict";
import {renderDict} from "#/utils/render"; import {renderDict} from "#/utils/render";
import {personList} from '#/api/property/resident/person' import {resident_unitList,} from '#/api/property/resident/unit';
export const querySchema: FormSchemaGetter = () => [ export const querySchema: FormSchemaGetter = () => [
{ {
@@ -138,7 +138,7 @@ export const modalSchema: FormSchemaGetter = () => [
rules: 'required', rules: 'required',
}, },
{ {
label: '所属公司', label: '所属单位',
fieldName: 'visitorUnit', fieldName: 'visitorUnit',
component: 'Input', component: 'Input',
rules: 'required', rules: 'required',
@@ -160,10 +160,10 @@ export const modalSchema: FormSchemaGetter = () => [
fieldName: 'interviewedUnit', fieldName: 'interviewedUnit',
component: 'ApiSelect', component: 'ApiSelect',
componentProps: { componentProps: {
api: personList, api: resident_unitList,
resultField: 'rows', resultField: 'rows',
labelField: 'unitName', labelField: 'name',
valueField: 'unitName', valueField: 'name',
placeholder: '请选择邀约单位', placeholder: '请选择邀约单位',
}, },
rules: 'required', rules: 'required',