123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463 |
- import { requestMagicApi } from '/@/api/magicApi';
- import { getDataOption } from '/@/api/system/dic';
- import { getClassOption, getMajorSetOption } from '/@/api/userMagic';
- import { BasicColumn, FormSchema } from '/@/components/Table';
- export const table2Columns: BasicColumn[] = [
- {
- title: '专业方向',
- dataIndex: 'majorSetId',
- align: 'left',
- width: 250,
- editRow: true,
- editRule: true,
- editComponent: 'ApiSelect',
- editComponentProps: {
- api: getMajorSetOption,
- getPopupContainer: () => document.body,
- },
- },
- {
- title: '班级名称',
- dataIndex: 'name',
- align: 'left',
- editRow: true,
- editRule: true,
- editComponent: 'Input',
- },
- {
- title: '班级人数',
- dataIndex: 'number',
- align: 'left',
- width: 80,
- editRow: true,
- editRule: true,
- editComponent: 'InputNumber',
- editComponentProps: {
- min: 0,
- },
- },
- {
- title: '班主任',
- dataIndex: 'teacherId',
- align: 'left',
- editRow: true,
- editRule: true,
- editComponent: 'ApiSelect',
- editComponentProps: {
- api: requestMagicApi,
- params: { url: 'baseData/user/list?type=1' },
- getPopupContainer: () => document.body,
- },
- width: 200,
- },
- {
- title: '固定教室',
- dataIndex: 'classroomId',
- align: 'left',
- editRow: true,
- editRule: true,
- editComponent: 'ApiSelect',
- editComponentProps: {
- api: requestMagicApi,
- params: { url: 'baseData/classroom/option' },
- getPopupContainer: () => document.body,
- },
- width: 150,
- },
- {
- title: '是否订单班',
- dataIndex: 'isOrderClass',
- align: 'left',
- width: 100,
- editRow: true,
- editComponent: 'Checkbox',
- editValueMap: (value) => {
- return value ? '是' : '否';
- },
- },
- {
- title: '分班排序',
- dataIndex: 'sortCode',
- align: 'left',
- width: 80,
- editRow: true,
- editRule: true,
- editComponent: 'InputNumber',
- editComponentProps: {
- min: 0,
- },
- },
- ];
- export const table3Columns: BasicColumn[] = [
- {
- title: '专业方向',
- dataIndex: 'majorSetName',
- align: 'left',
- width: 250,
- },
- {
- title: '第一志愿报名数',
- dataIndex: 'firstAmbitionCount',
- align: 'left',
- width: 150,
- },
- {
- title: '第二志愿报名数',
- dataIndex: 'secondAmbitionCount',
- align: 'left',
- width: 150,
- },
- {
- title: '分班班级',
- dataIndex: 'name',
- align: 'left',
- },
- {
- title: '班级人数',
- dataIndex: 'number',
- align: 'left',
- width: 80,
- },
- {
- title: '分班排序',
- dataIndex: 'sortCode',
- align: 'left',
- width: 80,
- },
- {
- title: '限制身高大于(cm)',
- dataIndex: 'height',
- align: 'left',
- width: 150,
- },
- {
- title: '限制成绩高于(分)',
- dataIndex: 'score',
- align: 'left',
- width: 150,
- },
- {
- title: '满足人数',
- dataIndex: 'satisfyCount',
- width: 80,
- },
- {
- title: '剩余人数',
- dataIndex: 'surplusCount',
- width: 80,
- },
- ];
- export const table4Columns: BasicColumn[] = [
- {
- title: '学号',
- dataIndex: 'credentialNumber',
- align: 'left',
- },
- {
- title: '姓名',
- dataIndex: 'name',
- align: 'left',
- width: 120,
- },
- {
- title: '性别',
- dataIndex: 'genderCn',
- align: 'left',
- width: 80,
- },
- {
- title: '毕业学校',
- dataIndex: 'graduateSchool',
- align: 'left',
- width: 180,
- },
- {
- title: '毕业班级',
- dataIndex: 'graduateClass',
- align: 'left',
- width: 120,
- },
- {
- title: '住宿类型',
- dataIndex: 'stduyStatusCn',
- align: 'left',
- width: 100,
- },
- {
- title: '身高',
- dataIndex: 'height',
- align: 'left',
- width: 80,
- },
- {
- title: '体重',
- dataIndex: 'weight',
- align: 'left',
- width: 80,
- },
- {
- title: '成绩',
- dataIndex: 'score',
- align: 'left',
- width: 120,
- },
- {
- title: '班级名称',
- dataIndex: 'className',
- align: 'left',
- width: 120,
- },
- {
- title: '班主任',
- dataIndex: 'teacherName',
- align: 'left',
- width: 120,
- },
- ];
- export const searchForm4Schema: FormSchema[] = [
- {
- field: 'credentialNumber',
- label: '学号',
- component: 'Input',
- colProps: { span: 8 },
- },
- {
- field: 'name',
- label: '姓名',
- component: 'Input',
- colProps: { span: 8 },
- },
- {
- field: 'graduateSchool',
- label: '毕业学校',
- component: 'Input',
- colProps: { span: 8 },
- },
- {
- field: 'graduateClass',
- label: '毕业班级',
- component: 'Input',
- colProps: { span: 8 },
- },
- {
- field: 'stduyStatus',
- label: '就读方式',
- component: 'ApiSelect',
- componentProps: {
- getPopupContainer: () => document.body,
- api: getDataOption,
- params: { code: 'stduy_status' },
- },
- colProps: { span: 8 },
- },
- {
- field: 'status',
- label: '班级状态',
- component: 'Select',
- componentProps: {
- getPopupContainer: () => document.body,
- options: [
- { label: '未分班', value: '0' },
- { label: '已分班', value: '' },
- ],
- },
- colProps: { span: 8 },
- },
- {
- field: 'className',
- label: '班级',
- component: 'Input',
- componentProps: {
- getPopupContainer: () => document.body,
- api: getClassOption,
- },
- colProps: { span: 8 },
- },
- ];
- export const form4Schema: FormSchema[] = [
- {
- field: 'studentIds',
- label: '调整学生',
- component: 'Input',
- colProps: { span: 24 },
- slot: 'studentIds',
- },
- {
- field: 'bandingTaskClassId',
- label: '调到班级',
- component: 'Select',
- colProps: { span: 24 },
- componentProps: {
- getPopupContainer: () => document.body,
- },
- },
- ];
- export const table5Columns: BasicColumn[] = [
- {
- title: '专业方向',
- dataIndex: 'majorSetName',
- align: 'left',
- },
- {
- title: '班级名称',
- dataIndex: 'name',
- align: 'left',
- width: 120,
- },
- {
- title: '班主任',
- dataIndex: 'teacherName',
- align: 'left',
- width: 80,
- },
- {
- title: '固定教室',
- dataIndex: 'classroomName',
- align: 'left',
- width: 180,
- },
- {
- title: '是否订单班',
- dataIndex: 'isOrdeClass',
- align: 'left',
- width: 120,
- },
- {
- title: '班级人数',
- dataIndex: 'number',
- align: 'left',
- width: 100,
- },
- {
- title: '男生人数',
- dataIndex: 'maleCount',
- align: 'left',
- width: 80,
- },
- {
- title: '女生人数',
- dataIndex: 'femaleCount',
- align: 'left',
- width: 80,
- },
- {
- title: '住校人数',
- dataIndex: 'stayCount',
- align: 'left',
- width: 120,
- },
- {
- title: '走读人数',
- dataIndex: 'notStayCount',
- align: 'left',
- width: 120,
- },
- ];
- export const tableSatisfyColumns: BasicColumn[] = [
- {
- title: '毕业学校',
- dataIndex: 'graduateSchool',
- align: 'left',
- width: 180,
- },
- {
- title: '学生姓名',
- dataIndex: 'name',
- align: 'left',
- width: 120,
- },
- {
- title: '性别',
- dataIndex: 'genderCn',
- align: 'left',
- width: 80,
- },
- {
- title: '身份证号',
- dataIndex: 'credentialNumber',
- align: 'left',
- },
- {
- title: '身高(cm)',
- dataIndex: 'height',
- align: 'left',
- width: 80,
- },
- {
- title: '体重(kg)',
- dataIndex: 'weight',
- align: 'left',
- width: 80,
- },
- {
- title: '成绩',
- dataIndex: 'score',
- align: 'left',
- width: 120,
- },
- {
- title: '毕业班级',
- dataIndex: 'graduateClass',
- align: 'left',
- width: 120,
- },
- {
- title: '学生来源',
- dataIndex: 'source',
- align: 'left',
- width: 100,
- },
- {
- title: '住宿类型',
- dataIndex: 'stduyStatusCn',
- align: 'left',
- width: 100,
- },
- {
- title: '手机号',
- dataIndex: 'mobile',
- align: 'left',
- width: 120,
- },
- {
- title: '第一志愿',
- dataIndex: 'firstAmbition',
- align: 'left',
- width: 120,
- },
- {
- title: '第二志愿',
- dataIndex: 'secondAmbition',
- align: 'left',
- width: 120,
- },
- ];
- export const table6Columns: BasicColumn[] = [
- {
- title: '专业方向',
- dataIndex: 'majorSetName',
- align: 'left',
- width: 250,
- },
- {
- title: '限制身高大于(cm)',
- dataIndex: 'height',
- align: 'left',
- width: 150,
- },
- {
- title: '限制成绩高于(分)',
- dataIndex: 'score',
- align: 'left',
- width: 150,
- },
- ];
|