Browse Source

feat:修改新生基本信息

DESKTOP-USV654P\pc 8 months ago
parent
commit
916b1cae97
1 changed files with 9 additions and 4 deletions
  1. 9 4
      src/views/educational/basicInformation/components/data.config.ts

+ 9 - 4
src/views/educational/basicInformation/components/data.config.ts

@@ -52,7 +52,7 @@ export const tableColumns: BasicColumn[] = [
   },
   {
     title: '学生来源',
-    dataIndex: 'source',
+    dataIndex: 'sourceCn',
     align: 'left',
     width: 100,
   },
@@ -147,7 +147,7 @@ export const formSchema: FormSchema[] = [
   },
   {
     label: '家长联系电话',
-    field: 'gradeId',
+    field: 'familyMobile',
     required: true,
     colProps: { span: 8 },
     component: 'Input',
@@ -171,11 +171,16 @@ export const formSchema: FormSchema[] = [
     field: 'source',
     required: true,
     colProps: { span: 8 },
-    component: 'Input',
+    component: 'ApiSelect',
+    componentProps: {
+      getPopupContainer: () => document.body,
+      api: getDataOption,
+      params: { code: 'student_type' },
+    },
   },
   {
     label: '家庭地址',
-    field: 'gradeId',
+    field: 'familyAddress',
     colProps: { span: 16 },
     component: 'Input',
   },