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: 'professionalCategory'
   },
   {
    title: '学历层次',
    align:"center",
    dataIndex: 'educationalLevel'
   },
   {
    title: '批次',
    align:"center",
    dataIndex: 'batch'
   },
   {
    title: '文科/理科',
    align:"center",
    dataIndex: 'category'
   },
   {
    title: '文化成绩分数',
    align:"center",
    dataIndex: 'culturalScore'
   },
   {
    title: '专业成绩分数',
    align:"center",
    dataIndex: 'specialScore'
   },
   {
    title: '文化成绩分数校考',
    align:"center",
    dataIndex: 'culturalScoreXk'
   },
   {
    title: '专业成绩分数校考',
    align:"center",
    dataIndex: 'specialScoreXk'
   },
];
//查询数据
export const searchFormSchema: FormSchema[] = [
];
//表单数据
export const formSchema: FormSchema[] = [
  {
    label: '年份',
    field: 'year',
    component: 'Input',
  },
  {
    label: '专业类别',
    field: 'professionalCategory',
    component: 'Input',
  },
  {
    label: '学历层次',
    field: 'educationalLevel',
    component: 'Input',
  },
  {
    label: '批次',
    field: 'batch',
    component: 'Input',
  },
  {
    label: '文科/理科',
    field: 'category',
    component: 'Input',
  },
  {
    label: '文化成绩分数',
    field: 'culturalScore',
    component: 'InputNumber',
  },
  {
    label: '专业成绩分数',
    field: 'specialScore',
    component: 'InputNumber',
  },
  {
    label: '文化成绩分数校考',
    field: 'culturalScoreXk',
    component: 'InputNumber',
  },
  {
    label: '专业成绩分数校考',
    field: 'specialScoreXk',
    component: 'InputNumber',
  },
	// TODO 主键隐藏字段，目前写死为ID
	{
	  label: '',
	  field: 'id',
	  component: 'Input',
	  show: false
	},
];



/**
* 流程表单调用这个方法获取formSchema
* @param param
*/
export function getBpmFormSchema(_formData): FormSchema[]{
  // 默认和原始表单保持一致 如果流程中配置了权限数据，这里需要单独处理formSchema
  return formSchema;
}