export const columns = [
  {
    title: '名称',
    dataIndex: 'itemName',
    resizable: true,
    width: 100,
  },
  {
    title: '代码',
    dataIndex: 'isDefault',
    resizable: true,
    width: 100,
  },
  {
    title: '值',
    dataIndex: 'itemValue',
    resizable: true,
    width: 100,
  },
  {
    title: '是否可用',
    dataIndex: 'enabledMark',
    resizable: true,
    width: 100,
  },
  {
    title: '排序号',
    dataIndex: 'sortCode',
    resizable: true,
    width: 100,
  },
  {
    title: '描述',
    dataIndex: 'description',
    resizable: true,
    width: 100,
  },
  {
    title: '分类标识',
    dataIndex: 'itemCode',
    resizable: true,
    width: 100,
  },
  {
    title: '创建时间',
    dataIndex: 'createDate',
    resizable: true,
    width: 100,
  },
  {
    title: '创建人',
    dataIndex: 'createUserName',
    resizable: true,
    width: 100,
  },
  {
    title: '最后更新时间',
    dataIndex: 'modifyDate',
    resizable: true,
    width: 100,
  },
  {
    title: '最后更新人',
    dataIndex: 'modifyUserName',
    resizable: true,
    width: 100,
  },
];
export const emptyLeftItem = {
  itemCode: '',
  itemName: '',
};
export const emptyRightItem = {
  id: '',
  itemCode: '',
  itemName: '',
  itemValue: '',
  enabledMark: '1',
  sortCode: '',
  description: '',
  typeId: '',
};
export const dataProcess = (list) => {
  return list.map((item) => {
    return {
      id: item.itemId,
      title: item.itemName,
      icon: 'home|svg',
      key: item.itemCode,
    };
  });
};
export const searchFormSchema = [
  {
    field: 'key',
    label: '关键字',
    component: 'Input',
    colProps: { span: 8 },
  },
];
