import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '年份',
    align: "center",
    dataIndex: 'year'
  },
  {
    title: '门类代码',
    align: "center",
    dataIndex: 'categoryCode'
  },
  {
    title: '门类名称',
    align: "center",
    dataIndex: 'categoryName'
  },
  {
    title: '学科代码',
    align: "center",
    dataIndex: 'subjectCode'
  },
  {
    title: '学科领域',
    align: "center",
    dataIndex: 'disciplineField'
  },
  {
    title: '学位性质',
    align: "center",
    dataIndex: 'degreeNature'
  },
  {
    title: '专业代码',
    align: "center",
    dataIndex: 'majorCode'
  },
  {
    title: '专业名称',
    align: "center",
    dataIndex: 'majorName'
  },
  {
    title: '研究方向',
    align: "center",
    dataIndex: 'researchDirection'
  },
  {
    title: '院校编码',
    align: "center",
    dataIndex: 'schoolMasterCode'
  },
  {
    title: '院校名称',
    align: "center",
    dataIndex: 'schoolName'
  },
  {
    title: '所在地',
    align: "center",
    dataIndex: 'location'
  },
  {
    title: '研究生院',
    align: "center",
    dataIndex: 'graduateSchool'
  },
  {
    title: '自划线',
    align: "center",
    dataIndex: 'selfMarking'
  },
  {
    title: '校博士点',
    align: "center",
    dataIndex: 'schoolDoctoralProgram'
  },
  {
    title: '博士专业',
    align: "center",
    dataIndex: 'doctoralMajor'
  },
  {
    title: '第四轮学科评估',
    align: "center",
    dataIndex: 'fourthRoundSubjectEvaluation'
  },
  {
    title: '双一流学科',
    align: "center",
    dataIndex: 'doubleFirstClassDisciplines'
  },
  {
    title: '考试方式',
    align: "center",
    dataIndex: 'examinationMethods'
  },
  {
    title: '院系所',
    align: "center",
    dataIndex: 'departmentsAndFaculties'
  },
  {
    title: '学习方式',
    align: "center",
    dataIndex: 'learningStyle'
  },
  {
    title: '指导教师',
    align: "center",
    dataIndex: 'teacher'
  },
  {
    title: '拟招生人数',
    align: "center",
    dataIndex: 'intendedEnrollment'
  },
  {
    title: '接收退役',
    align: "center",
    dataIndex: 'acceptRetirement'
  },
  {
    title: '详细链接',
    align: "center",
    dataIndex: 'detailedLink'
  },
  {
    title: '备注',
    align: "center",
    dataIndex: 'detail'
  },
  {
    title: '政治',
    align: "center",
    dataIndex: 'politics'
  },
  {
    title: '外语',
    align: "center",
    dataIndex: 'foreignLanguage'
  },
  {
    title: '业务课一',
    align: "center",
    dataIndex: 'businessCourse1'
  },
  {
    title: '业务课二',
    align: "center",
    dataIndex: 'businessCourse2'
  },
];

//查询数据
export const searchFormSchema: FormSchema[] = [
];

//表单数据
export const formSchema: FormSchema[] = [
  {
    label: '年份',
    field: 'year',
    component: 'Input',
  },
  {
    label: '门类代码',
    field: 'categoryCode',
    component: 'Input',
  },
  {
    label: '门类名称',
    field: 'categoryName',
    component: 'Input',
  },
  {
    label: '学科代码',
    field: 'subjectCode',
    component: 'Input',
  },
  {
    label: '学科领域',
    field: 'disciplineField',
    component: 'Input',
  },
  {
    label: '学位性质',
    field: 'degreeNature',
    component: 'Input',
  },
  {
    label: '专业代码',
    field: 'majorCode',
    component: 'Input',
  },
  {
    label: '专业名称',
    field: 'majorName',
    component: 'Input',
  },
  {
    label: '研究方向',
    field: 'researchDirection',
    component: 'Input',
  },
  {
    label: '院校编码',
    field: 'schoolMasterCode',
    component: 'Input',
  },
  {
    label: '院校名称',
    field: 'schoolName',
    component: 'Input',
  },
  {
    label: '所在地',
    field: 'location',
    component: 'Input',
  },
  {
    label: '研究生院',
    field: 'graduateSchool',
    component: 'Input',
  },
  {
    label: '自划线',
    field: 'selfMarking',
    component: 'Input',
  },
  {
    label: '校博士点',
    field: 'schoolDoctoralProgram',
    component: 'Input',
  },
  {
    label: '博士专业',
    field: 'doctoralMajor',
    component: 'Input',
  },
  {
    label: '第四轮学科评估',
    field: 'fourthRoundSubjectEvaluation',
    component: 'Input',
  },
  {
    label: '双一流学科',
    field: 'doubleFirstClassDisciplines',
    component: 'Input',
  },
  {
    label: '考试方式',
    field: 'examinationMethods',
    component: 'Input',
  },
  {
    label: '院系所',
    field: 'departmentsAndFaculties',
    component: 'Input',
  },
  {
    label: '学习方式',
    field: 'learningStyle',
    component: 'Input',
  },
  {
    label: '指导教师',
    field: 'teacher',
    component: 'Input',
  },
  {
    label: '拟招生人数',
    field: 'intendedEnrollment',
    component: 'Input',
  },
  {
    label: '接收退役',
    field: 'acceptRetirement',
    component: 'Input',
  },
  {
    label: '详细链接',
    field: 'detailedLink',
    component: 'Input',
  },
  {
    label: '备注',
    field: 'detail',
    component: 'Input',
  },
  {
    label: '政治',
    field: 'politics',
    component: 'Input',
  },
  {
    label: '外语',
    field: 'foreignLanguage',
    component: 'Input',
  },
  {
    label: '业务课一',
    field: 'businessCourse1',
    component: 'Input',
  },
  {
    label: '业务课二',
    field: 'businessCourse2',
    component: 'Input',
  },
	// TODO 主键隐藏字段，目前写死为ID
  {
    label: '',
    field: 'id',
    component: 'Input',
    show: false,
  },
];
