|
@@ -332,51 +332,51 @@ export const formSchema: FormSchema[] = [
|
|
|
},
|
|
|
colProps: { span: 12 },
|
|
|
},
|
|
|
- {
|
|
|
- label: '使用年级',
|
|
|
- field: 'gradeId',
|
|
|
- component: 'ApiSelect',
|
|
|
- componentProps: {
|
|
|
- api: requestMagicApi,
|
|
|
- params: { url: '/baseData/grade/option' },
|
|
|
- },
|
|
|
- colProps: { span: 12 },
|
|
|
- },
|
|
|
- {
|
|
|
- label: '使用班级',
|
|
|
- field: 'classId',
|
|
|
- required: true,
|
|
|
- component: 'ApiSelect',
|
|
|
- componentProps: ({ formModel }) => {
|
|
|
- return {
|
|
|
- api: requestMagicApi,
|
|
|
- params: {
|
|
|
- url: `educational/class/gradeid?grade_id=${formModel.gradeId ? formModel.gradeId : ''}`,
|
|
|
- },
|
|
|
- showSearch: true,
|
|
|
- mode: 'multiple',
|
|
|
- // 搜索参考
|
|
|
- filterOption: (input, option) => {
|
|
|
- return (
|
|
|
- option?.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 ||
|
|
|
- option?.value.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
- );
|
|
|
- },
|
|
|
- };
|
|
|
- },
|
|
|
- colProps: { span: 12 },
|
|
|
- },
|
|
|
- {
|
|
|
- label: '使用学期',
|
|
|
- field: 'baseSemesterId',
|
|
|
- component: 'ApiSelect',
|
|
|
- required: true,
|
|
|
- componentProps: {
|
|
|
- api: requestMagicApi,
|
|
|
- params: { url: 'baseData/semester/option' },
|
|
|
- },
|
|
|
- colProps: { span: 12 },
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // label: '使用年级',
|
|
|
+ // field: 'gradeId',
|
|
|
+ // component: 'ApiSelect',
|
|
|
+ // componentProps: {
|
|
|
+ // api: requestMagicApi,
|
|
|
+ // params: { url: '/baseData/grade/option' },
|
|
|
+ // },
|
|
|
+ // colProps: { span: 12 },
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // label: '使用班级',
|
|
|
+ // field: 'classId',
|
|
|
+ // required: true,
|
|
|
+ // component: 'ApiSelect',
|
|
|
+ // componentProps: ({ formModel }) => {
|
|
|
+ // return {
|
|
|
+ // api: requestMagicApi,
|
|
|
+ // params: {
|
|
|
+ // url: `educational/class/gradeid?grade_id=${formModel.gradeId ? formModel.gradeId : ''}`,
|
|
|
+ // },
|
|
|
+ // showSearch: true,
|
|
|
+ // mode: 'multiple',
|
|
|
+ // // 搜索参考
|
|
|
+ // filterOption: (input, option) => {
|
|
|
+ // return (
|
|
|
+ // option?.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 ||
|
|
|
+ // option?.value.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
+ // );
|
|
|
+ // },
|
|
|
+ // };
|
|
|
+ // },
|
|
|
+ // colProps: { span: 12 },
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // label: '使用学期',
|
|
|
+ // field: 'baseSemesterId',
|
|
|
+ // component: 'ApiSelect',
|
|
|
+ // required: true,
|
|
|
+ // componentProps: {
|
|
|
+ // api: requestMagicApi,
|
|
|
+ // params: { url: 'baseData/semester/option' },
|
|
|
+ // },
|
|
|
+ // colProps: { span: 12 },
|
|
|
+ // },
|
|
|
];
|
|
|
export const searchFormSchema: FormSchema[] = [
|
|
|
{
|