This commit is contained in:
parent
29df30ee82
commit
ee9b7017f4
@ -143,5 +143,6 @@ export const modalSchema: FormSchemaGetter = () => [
|
||||
label: '描述',
|
||||
fieldName: 'depict',
|
||||
component: 'Textarea',
|
||||
rules: 'required',
|
||||
},
|
||||
];
|
||||
|
@ -2,6 +2,7 @@ import type { FormSchemaGetter } from '#/adapter/form';
|
||||
import type { VxeGridProps } from '#/adapter/vxe-table';
|
||||
import {getDictOptions} from "#/utils/dict";
|
||||
import {renderDict} from "#/utils/render";
|
||||
import {personList} from '#/api/property/resident/person'
|
||||
|
||||
export const querySchema: FormSchemaGetter = () => [
|
||||
{
|
||||
@ -148,10 +149,23 @@ export const modalSchema: FormSchemaGetter = () => [
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
},
|
||||
// {
|
||||
// label: '邀约单位',
|
||||
// fieldName: 'interviewedUnit',
|
||||
// component: 'Input',
|
||||
// rules: 'required',
|
||||
// },
|
||||
{
|
||||
label: '邀约单位',
|
||||
fieldName: 'interviewedUnit',
|
||||
component: 'Input',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: personList,
|
||||
resultField: 'rows',
|
||||
labelField: 'unitName',
|
||||
valueField: 'unitName',
|
||||
placeholder: '请选择邀约单位',
|
||||
},
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
|
@ -39,6 +39,7 @@ const gridOptions: VxeGridProps = {
|
||||
return await visitorManagementList({
|
||||
pageNum: page.currentPage,
|
||||
pageSize: page.pageSize,
|
||||
type:1,
|
||||
...formValues,
|
||||
// visitingBeginTime: new Date(formValues.visitingTimeRange[0]).getTime(),
|
||||
// visitingEndTime: new Date(formValues.visitingTimeRange[1]).getTime(),
|
||||
|
@ -78,7 +78,8 @@ async function handleConfirm() {
|
||||
...cloneDeep(formValues),
|
||||
visitingBeginTime: formValues.visitingTimeRange?.[0],
|
||||
visitingEndTime: formValues.visitingTimeRange?.[1],
|
||||
visitingTimeRange: undefined
|
||||
visitingTimeRange: undefined,
|
||||
type:1
|
||||
};
|
||||
// getValues获取为一个readonly的对象 需要修改必须先深拷贝一次
|
||||
// const data = cloneDeep(await formApi.getValues());
|
||||
|
@ -45,6 +45,7 @@ const gridOptions: VxeGridProps = {
|
||||
pageNum: page.currentPage,
|
||||
pageSize: page.pageSize,
|
||||
...formValues,
|
||||
type:0,
|
||||
visitingBeginTime: formValues.visitingTimeRange?.[0],
|
||||
visitingEndTime: formValues.visitingTimeRange?.[1],
|
||||
visitingTimeRange: undefined
|
||||
|
Loading…
Reference in New Issue
Block a user