|
@@ -20,6 +20,12 @@ export const formStudentSchema: FormSchema[] = [
|
|
},
|
|
},
|
|
colProps: { span: 12 },
|
|
colProps: { span: 12 },
|
|
},
|
|
},
|
|
|
|
+ {
|
|
|
|
+ field: 'studentName',
|
|
|
|
+ label: '姓名',
|
|
|
|
+ component: 'Input',
|
|
|
|
+ colProps: { span: 12 },
|
|
|
|
+ },
|
|
{
|
|
{
|
|
label: '行政班',
|
|
label: '行政班',
|
|
field: 'classId',
|
|
field: 'classId',
|
|
@@ -29,9 +35,16 @@ export const formStudentSchema: FormSchema[] = [
|
|
getPopupContainer: () => document.body,
|
|
getPopupContainer: () => document.body,
|
|
api: requestMagicApi,
|
|
api: requestMagicApi,
|
|
params: { url: `educational/class/gradeid?grade_id=${formModel.gradeId}` },
|
|
params: { url: `educational/class/gradeid?grade_id=${formModel.gradeId}` },
|
|
|
|
+ showSearch: true,
|
|
|
|
+ filterOption: (input: string, option: any) => {
|
|
|
|
+ return (
|
|
|
|
+ option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 ||
|
|
|
|
+ option.value.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
+ );
|
|
|
|
+ },
|
|
};
|
|
};
|
|
},
|
|
},
|
|
- colProps: { span: 12 },
|
|
|
|
|
|
+ colProps: { span: 24 },
|
|
},
|
|
},
|
|
{
|
|
{
|
|
label: '性别',
|
|
label: '性别',
|
|
@@ -57,12 +70,6 @@ export const formStudentSchema: FormSchema[] = [
|
|
},
|
|
},
|
|
colProps: { span: 12 },
|
|
colProps: { span: 12 },
|
|
},
|
|
},
|
|
- {
|
|
|
|
- field: 'studentName',
|
|
|
|
- label: '姓名',
|
|
|
|
- component: 'Input',
|
|
|
|
- colProps: { span: 12 },
|
|
|
|
- },
|
|
|
|
];
|
|
];
|
|
|
|
|
|
const DataList = await requestMagicApi({ url: 'baseData/dormitory/info' } as any);
|
|
const DataList = await requestMagicApi({ url: 'baseData/dormitory/info' } as any);
|
|
@@ -93,6 +100,13 @@ export const formRoomSchema: FormSchema[] = [
|
|
return { label: item.officeBuildName, value: item.officeBuildId };
|
|
return { label: item.officeBuildName, value: item.officeBuildId };
|
|
}),
|
|
}),
|
|
params: { url: 'baseData/dormitory/info' },
|
|
params: { url: 'baseData/dormitory/info' },
|
|
|
|
+ showSearch: true,
|
|
|
|
+ filterOption: (input: string, option: any) => {
|
|
|
|
+ return (
|
|
|
|
+ option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 ||
|
|
|
|
+ option.value.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
+ );
|
|
|
|
+ },
|
|
onChange: (e) => {
|
|
onChange: (e) => {
|
|
if (!e) {
|
|
if (!e) {
|
|
formModel.floorNumber = undefined;
|
|
formModel.floorNumber = undefined;
|
|
@@ -172,6 +186,13 @@ export const formRoomSchema: FormSchema[] = [
|
|
api: requestMagicApi,
|
|
api: requestMagicApi,
|
|
params: { url: 'educational/class/option' },
|
|
params: { url: 'educational/class/option' },
|
|
getPopupContainer: () => document.body,
|
|
getPopupContainer: () => document.body,
|
|
|
|
+ showSearch: true,
|
|
|
|
+ filterOption: (input: string, option: any) => {
|
|
|
|
+ return (
|
|
|
|
+ option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 ||
|
|
|
|
+ option.value.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
+ );
|
|
|
|
+ },
|
|
},
|
|
},
|
|
colProps: { span: 8 },
|
|
colProps: { span: 8 },
|
|
},
|
|
},
|