|
@@ -138,6 +138,13 @@ export const searchFormSchema: FormSchema[] = [
|
|
getPopupContainer: () => document.body,
|
|
getPopupContainer: () => document.body,
|
|
api: requestMagicApi,
|
|
api: requestMagicApi,
|
|
params: { url: 'baseData/classroom/option' },
|
|
params: { url: 'baseData/classroom/option' },
|
|
|
|
+ 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 },
|
|
},
|
|
},
|
|
@@ -190,6 +197,13 @@ export const searchFormSchema: FormSchema[] = [
|
|
getPopupContainer: () => document.body,
|
|
getPopupContainer: () => document.body,
|
|
api: requestMagicApi,
|
|
api: requestMagicApi,
|
|
params: { url: 'baseData/user/list?type=1' },
|
|
params: { url: 'baseData/user/list?type=1' },
|
|
|
|
+ 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 },
|
|
},
|
|
},
|
|
@@ -279,6 +293,13 @@ export const formSchema: FormSchema[] = [
|
|
getPopupContainer: () => document.body,
|
|
getPopupContainer: () => document.body,
|
|
api: requestMagicApi,
|
|
api: requestMagicApi,
|
|
params: { url: 'baseData/classroom/option' },
|
|
params: { url: 'baseData/classroom/option' },
|
|
|
|
+ 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: 12 },
|
|
},
|
|
},
|
|
@@ -335,6 +356,13 @@ export const formSchema: FormSchema[] = [
|
|
getPopupContainer: () => document.body,
|
|
getPopupContainer: () => document.body,
|
|
api: requestMagicApi,
|
|
api: requestMagicApi,
|
|
params: { url: 'baseData/user/list?type=1' },
|
|
params: { url: 'baseData/user/list?type=1' },
|
|
|
|
+ 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: 12 },
|
|
},
|
|
},
|