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: 'code'
   },
   {
    title: '检查内容',
    align:"center",
    dataIndex: 'content'
   },
   {
    title: '查看系统',
    align:"center",
    dataIndex: 'viewSystem'
   },
   {
    title: '查看制度',
    align:"center",
    dataIndex: 'viewRule'
   },
   {
    title: '查看记录',
    align:"center",
    dataIndex: 'viewRecord'
   },
   {
    title: '访谈用户',
    align:"center",
    dataIndex: 'interUser'
   },
   {
    title: '备注',
    align:"center",
    dataIndex: 'des'
   },
   {
    title: '创建人',
    align:"center",
    dataIndex: 'createUser'
   },
   {
    title: '文件ID',
    align:"center",
    dataIndex: 'fileId'
   },
   {
    title: '是否共有',
    align:"center",
    dataIndex: 'isPublic'
   },
];
//查询数据
export const searchFormSchema: FormSchema[] = [
];
//表单数据
export const formSchema: FormSchema[] = [
  {
    label: '编码',
    field: 'code',
    component: 'Input',
  },
  {
    label: '检查内容',
    field: 'content',
    component: 'Input',
  },
  {
    label: '查看系统',
    field: 'viewSystem',
    component: 'Input',
  },
  {
    label: '查看制度',
    field: 'viewRule',
    component: 'Input',
  },
  {
    label: '查看记录',
    field: 'viewRecord',
    component: 'Input',
  },
  {
    label: '访谈用户',
    field: 'interUser',
    component: 'Input',
  },
  {
    label: '备注',
    field: 'des',
    component: 'Input',
  },
  {
    label: '创建人',
    field: 'createUser',
    component: 'Input',
  },
  {
    label: '文件ID',
    field: 'fileId',
    component: 'InputNumber',
  },
  {
    label: '是否共有',
    field: 'isPublic',
    component: 'InputNumber',
  },
	// TODO 主键隐藏字段，目前写死为ID
	{
	  label: '',
	  field: 'id',
	  component: 'Input',
	  show: false
	},
];



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