|
@@ -1,71 +1,241 @@
|
|
import { BasicColumn, FormSchema } from '/@/components/Table';
|
|
import { BasicColumn, FormSchema } from '/@/components/Table';
|
|
import { requestMagicApi } from '/@/api/magicApi';
|
|
import { requestMagicApi } from '/@/api/magicApi';
|
|
-export const TableColumns: BasicColumn[] = [
|
|
|
|
|
|
+import { getMajorSetOption } from '/@/api/userMagic';
|
|
|
|
+import { getDataOption } from '/@/api/system/dic';
|
|
|
|
+export const tableColumns: BasicColumn[] = [
|
|
{
|
|
{
|
|
title: '毕业学校',
|
|
title: '毕业学校',
|
|
- dataIndex: 's',
|
|
|
|
|
|
+ dataIndex: 'graduateSchool',
|
|
|
|
+ align: 'left',
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '学生姓名',
|
|
title: '学生姓名',
|
|
- dataIndex: 'studentName',
|
|
|
|
|
|
+ dataIndex: 'name',
|
|
|
|
+ align: 'left',
|
|
|
|
+ width: 100,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- title: '姓名',
|
|
|
|
- dataIndex: 'sex',
|
|
|
|
|
|
+ title: '性别',
|
|
|
|
+ dataIndex: 'genderCn',
|
|
|
|
+ align: 'left',
|
|
|
|
+ width: 80,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '身份证号码',
|
|
title: '身份证号码',
|
|
- dataIndex: 'idCard',
|
|
|
|
|
|
+ dataIndex: 'credentialNumber',
|
|
|
|
+ align: 'left',
|
|
|
|
+ width: 150,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '身高(CM)',
|
|
title: '身高(CM)',
|
|
dataIndex: 'height',
|
|
dataIndex: 'height',
|
|
|
|
+ align: 'left',
|
|
|
|
+ width: 100,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '体重(KG)',
|
|
title: '体重(KG)',
|
|
dataIndex: 'weight',
|
|
dataIndex: 'weight',
|
|
|
|
+ align: 'left',
|
|
|
|
+ width: 100,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '成绩',
|
|
title: '成绩',
|
|
dataIndex: 'score',
|
|
dataIndex: 'score',
|
|
|
|
+ align: 'left',
|
|
|
|
+ width: 80,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- title: '初中毕业班级',
|
|
|
|
- dataIndex: 'grade',
|
|
|
|
|
|
+ title: '毕业班级',
|
|
|
|
+ dataIndex: 'graduateClass',
|
|
|
|
+ align: 'left',
|
|
|
|
+ width: 80,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '学生来源',
|
|
title: '学生来源',
|
|
dataIndex: 'source',
|
|
dataIndex: 'source',
|
|
|
|
+ align: 'left',
|
|
|
|
+ width: 100,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '住宿类型',
|
|
title: '住宿类型',
|
|
- dataIndex: 'source',
|
|
|
|
|
|
+ dataIndex: 'stduyStatusCn',
|
|
|
|
+ align: 'left',
|
|
|
|
+ width: 100,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '手机号',
|
|
title: '手机号',
|
|
- dataIndex: 'source',
|
|
|
|
|
|
+ dataIndex: 'mobile',
|
|
|
|
+ align: 'left',
|
|
|
|
+ width: 100,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '第一志愿',
|
|
title: '第一志愿',
|
|
- dataIndex: 'source',
|
|
|
|
|
|
+ dataIndex: 'firstAmbition',
|
|
|
|
+ align: 'left',
|
|
|
|
+ width: 120,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '第二志愿',
|
|
title: '第二志愿',
|
|
- dataIndex: 'source',
|
|
|
|
|
|
+ dataIndex: 'secondAmbition',
|
|
|
|
+ align: 'left',
|
|
|
|
+ width: 120,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '班级状态',
|
|
title: '班级状态',
|
|
- dataIndex: 'source',
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- title: '操作',
|
|
|
|
- dataIndex: 'action',
|
|
|
|
|
|
+ dataIndex: 'status',
|
|
|
|
+ align: 'left',
|
|
width: 100,
|
|
width: 100,
|
|
- fixed: 'right',
|
|
|
|
- slots: { customRender: 'action' },
|
|
|
|
|
|
+ customRender: ({ record }) => {
|
|
|
|
+ return record.status === 1 ? '已分配' : '未分配';
|
|
|
|
+ },
|
|
},
|
|
},
|
|
];
|
|
];
|
|
|
|
+
|
|
export const formSchema: FormSchema[] = [
|
|
export const formSchema: FormSchema[] = [
|
|
|
|
+ {
|
|
|
|
+ label: '学生姓名',
|
|
|
|
+ field: 'name',
|
|
|
|
+ required: true,
|
|
|
|
+ colProps: { span: 8 },
|
|
|
|
+ component: 'Input',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '性别',
|
|
|
|
+ field: 'gender',
|
|
|
|
+ required: true,
|
|
|
|
+ colProps: { span: 8 },
|
|
|
|
+ component: 'ApiSelect',
|
|
|
|
+ componentProps: {
|
|
|
|
+ api: getDataOption,
|
|
|
|
+ params: { code: 'gender' },
|
|
|
|
+ getPopupContainer: () => document.body,
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '身份证号',
|
|
|
|
+ field: 'credentialNumber',
|
|
|
|
+ required: true,
|
|
|
|
+ colProps: { span: 8 },
|
|
|
|
+ component: 'Input',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '身高',
|
|
|
|
+ field: 'height',
|
|
|
|
+ required: true,
|
|
|
|
+ colProps: { span: 8 },
|
|
|
|
+ component: 'Input',
|
|
|
|
+ componentProps: {
|
|
|
|
+ suffix: 'CM',
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '体重',
|
|
|
|
+ field: 'weight',
|
|
|
|
+ required: true,
|
|
|
|
+ colProps: { span: 8 },
|
|
|
|
+ component: 'Input',
|
|
|
|
+ componentProps: {
|
|
|
|
+ suffix: 'KG',
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '手机号',
|
|
|
|
+ field: 'mobile',
|
|
|
|
+ required: true,
|
|
|
|
+ colProps: { span: 8 },
|
|
|
|
+ component: 'Input',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '家长联系电话',
|
|
|
|
+ field: 'gradeId',
|
|
|
|
+ required: true,
|
|
|
|
+ colProps: { span: 8 },
|
|
|
|
+ component: 'Input',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '毕业学校',
|
|
|
|
+ field: 'graduateSchool',
|
|
|
|
+ required: true,
|
|
|
|
+ colProps: { span: 8 },
|
|
|
|
+ component: 'Input',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '毕业班级',
|
|
|
|
+ field: 'graduateClass',
|
|
|
|
+ required: true,
|
|
|
|
+ colProps: { span: 8 },
|
|
|
|
+ component: 'Input',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '学生来源',
|
|
|
|
+ field: 'source',
|
|
|
|
+ required: true,
|
|
|
|
+ colProps: { span: 8 },
|
|
|
|
+ component: 'Input',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '家庭地址',
|
|
|
|
+ field: 'gradeId',
|
|
|
|
+ colProps: { span: 16 },
|
|
|
|
+ component: 'Input',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '第一志愿',
|
|
|
|
+ field: 'firstAmbition',
|
|
|
|
+ required: true,
|
|
|
|
+ colProps: { span: 8 },
|
|
|
|
+ component: 'ApiSelect',
|
|
|
|
+ componentProps: {
|
|
|
|
+ api: getMajorSetOption,
|
|
|
|
+ getPopupContainer: () => document.body,
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '第二志愿',
|
|
|
|
+ field: 'secondAmbition',
|
|
|
|
+ required: true,
|
|
|
|
+ colProps: { span: 8 },
|
|
|
|
+ component: 'ApiSelect',
|
|
|
|
+ componentProps: {
|
|
|
|
+ api: getMajorSetOption,
|
|
|
|
+ getPopupContainer: () => document.body,
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '专业调配',
|
|
|
|
+ field: 'isAdjust',
|
|
|
|
+ required: true,
|
|
|
|
+ colProps: { span: 8 },
|
|
|
|
+ component: 'Select',
|
|
|
|
+ componentProps: {
|
|
|
|
+ options: [
|
|
|
|
+ { label: '否', value: 0 },
|
|
|
|
+ { label: '是', value: 1 },
|
|
|
|
+ ],
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '住宿类型',
|
|
|
|
+ field: 'stduyStatus',
|
|
|
|
+ required: true,
|
|
|
|
+ colProps: { span: 8 },
|
|
|
|
+ component: 'ApiSelect',
|
|
|
|
+ componentProps: {
|
|
|
|
+ api: getDataOption,
|
|
|
|
+ params: { code: 'stduy_status' },
|
|
|
|
+ getPopupContainer: () => document.body,
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '成绩',
|
|
|
|
+ field: 'score',
|
|
|
|
+ required: true,
|
|
|
|
+ colProps: { span: 8 },
|
|
|
|
+ component: 'InputNumber',
|
|
|
|
+ },
|
|
|
|
+];
|
|
|
|
+
|
|
|
|
+export const formDivisionSchema: FormSchema[] = [
|
|
{
|
|
{
|
|
label: '年级',
|
|
label: '年级',
|
|
field: 'gradeId',
|
|
field: 'gradeId',
|
|
@@ -128,35 +298,102 @@ export const formSchema: FormSchema[] = [
|
|
colProps: { span: 24 },
|
|
colProps: { span: 24 },
|
|
},
|
|
},
|
|
];
|
|
];
|
|
-export const searchSchema: FormSchema[] = [
|
|
|
|
|
|
+export const searchFormSchema: FormSchema[] = [
|
|
{
|
|
{
|
|
field: 'name',
|
|
field: 'name',
|
|
label: '学生姓名',
|
|
label: '学生姓名',
|
|
component: 'Input',
|
|
component: 'Input',
|
|
- colProps: { span: 6 },
|
|
|
|
|
|
+ colProps: { span: 8 },
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- field: 'icCard',
|
|
|
|
|
|
+ field: 'credentialNumber',
|
|
label: '身份证号',
|
|
label: '身份证号',
|
|
component: 'Input',
|
|
component: 'Input',
|
|
- colProps: { span: 6 },
|
|
|
|
|
|
+ colProps: { span: 8 },
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- field: 'export',
|
|
|
|
|
|
+ field: 'isImportScore',
|
|
label: '成绩导入',
|
|
label: '成绩导入',
|
|
component: 'Select',
|
|
component: 'Select',
|
|
componentProps: {
|
|
componentProps: {
|
|
options: [
|
|
options: [
|
|
- {
|
|
|
|
- label: '未导入',
|
|
|
|
- value: '0',
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- label: '已导入',
|
|
|
|
- value: '1',
|
|
|
|
- },
|
|
|
|
|
|
+ { label: '未导入', value: '0' },
|
|
|
|
+ { label: '已导入', value: '1' },
|
|
|
|
+ ],
|
|
|
|
+ },
|
|
|
|
+ colProps: { span: 8 },
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ field: 'firstAmbition',
|
|
|
|
+ label: '一志愿专业',
|
|
|
|
+ component: 'ApiSelect',
|
|
|
|
+ componentProps: {
|
|
|
|
+ api: getMajorSetOption,
|
|
|
|
+ getPopupContainer: () => document.body,
|
|
|
|
+ },
|
|
|
|
+ colProps: { span: 8 },
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ field: 'secondAmbition',
|
|
|
|
+ label: '二志愿专业',
|
|
|
|
+ component: 'ApiSelect',
|
|
|
|
+ componentProps: {
|
|
|
|
+ api: getMajorSetOption,
|
|
|
|
+ getPopupContainer: () => document.body,
|
|
|
|
+ },
|
|
|
|
+ colProps: { span: 8 },
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ field: 'isAdjust',
|
|
|
|
+ label: '专业调配',
|
|
|
|
+ component: 'Select',
|
|
|
|
+ componentProps: {
|
|
|
|
+ options: [
|
|
|
|
+ { label: '否', value: '0' },
|
|
|
|
+ { label: '是', value: '1' },
|
|
|
|
+ ],
|
|
|
|
+ },
|
|
|
|
+ colProps: { span: 8 },
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ field: '[startDate,endDate]',
|
|
|
|
+ label: '添加时间',
|
|
|
|
+ component: 'RangePicker',
|
|
|
|
+ componentProps: {
|
|
|
|
+ getPopupContainer: () => document.body,
|
|
|
|
+ format: 'YYYY-MM-DD HH:mm:ss',
|
|
|
|
+ placeholder: ['开始时间', '结束时间'],
|
|
|
|
+ showTime: { format: 'HH:mm:ss' },
|
|
|
|
+ },
|
|
|
|
+ colProps: { span: 16 },
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ field: 'graduateSchool',
|
|
|
|
+ label: '毕业学校',
|
|
|
|
+ component: 'Input',
|
|
|
|
+ colProps: { span: 8 },
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ field: 'gender',
|
|
|
|
+ label: '性别',
|
|
|
|
+ component: 'ApiSelect',
|
|
|
|
+ componentProps: {
|
|
|
|
+ api: getDataOption,
|
|
|
|
+ params: { code: 'gender' },
|
|
|
|
+ getPopupContainer: () => document.body,
|
|
|
|
+ },
|
|
|
|
+ colProps: { span: 8 },
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ field: 'status',
|
|
|
|
+ label: '班级状态',
|
|
|
|
+ component: 'Select',
|
|
|
|
+ componentProps: {
|
|
|
|
+ options: [
|
|
|
|
+ { label: '未分配', value: '0' },
|
|
|
|
+ { label: '已分配', value: '1' },
|
|
],
|
|
],
|
|
},
|
|
},
|
|
- colProps: { span: 6 },
|
|
|
|
|
|
+ colProps: { span: 8 },
|
|
},
|
|
},
|
|
];
|
|
];
|