import { BasicColumn } from '/@/components/Table';
import { FormSchema } from '/@/components/Table';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '外包商属性',
    align: 'left',
    dataIndex: 'name',
    width: 280,
  },
];

// 查询数据
// export const searchFormSchema: FormSchema[] = [
//   {
//     label: '风险级别',
//     field: 'risk_level',
//     component: 'Input',
//   },
//   {
//     label: '风险维度',
//     field: 'risk_dimension',
//     component: 'Input',
//   },
// ];

export const formSchema: FormSchema[] = [
  {
    label: '属性名称',
    field: 'name',
    component: 'Input',
    // colProps: { lg: 12 },
    // itemProps: { labelCol: { xs: { span: 24 }, sm: { span: 6 } }, wrapperCol: { xs: { span: 24 }, sm: { span: 18 } } },
  },
];

export const formRelationSchema: FormSchema[] = [
  {
    label: '外包商分级',
    field: 'wbLevel',
    component: 'JDictSelectTag',
    componentProps: {
      dictCode: 'wb_level',
    },
    colProps: { span: 24 },
    required:true,
  },
  {
    label: '外包商服务',
    field: 'wbServiceTp',
    component: 'JDictSelectTag',
    componentProps: {
      dictCode: 'wb_service_tp',
      //mode: 'multiple',
    },
    required:true,
    colProps: { span: 24 },
  },
  {
    label: '服务场所',
    field: 'wbWorkplaceTp',
    component: 'JDictSelectTag',
    componentProps: {
      dictCode: 'wb_workplace_tp',
    },
    colProps: { span: 24 },
    required:true,
  },
];
