|
@@ -279,7 +279,16 @@ export const formSchema: FormSchema[] = [
|
|
return {
|
|
return {
|
|
getPopupContainer: () => document.body,
|
|
getPopupContainer: () => document.body,
|
|
api: requestMagicApi,
|
|
api: requestMagicApi,
|
|
- params: { url: 'student/class/list', query: { classId: formModel.classIds } },
|
|
|
|
|
|
+ params: { url: 'student/class/list', query: { class_id: formModel.classIds } },
|
|
|
|
+ labelField: 'name',
|
|
|
|
+ valueField: 'userId',
|
|
|
|
+ showSearch: true,
|
|
|
|
+ filterOption: (input: string, option: any) => {
|
|
|
|
+ return (
|
|
|
|
+ option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 ||
|
|
|
|
+ option.value.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
+ );
|
|
|
|
+ },
|
|
};
|
|
};
|
|
},
|
|
},
|
|
ifShow: ({ values }) => {
|
|
ifShow: ({ values }) => {
|