import { ContentConfig } from "/@/components/PageContent";
import { httpList, httpStatus, httpDelete } from "/@/api/parameter/company";
import { renderStatus } from "/@/utils/column-helper";
import { STATUS_OPTIONS } from "/@/config/status";

const columns = [
  // {
  //   prop: "id",
  //   label: "ID"
  // },
  {
    prop: "title",
    label: "公司名称"
  },

  {
    prop: "status",
    label: "状态",
    width: "100px",
    ...renderStatus(STATUS_OPTIONS)
  },
  {
    prop: "contacts",
    label: "联系人",
    width: "100px"
  },
  {
    prop: "mobile",
    label: "联系方式",
    width: "120px"
  },
  {
    prop: "addtime",
    label: "创建时间",
    width: "140px"
  },

  {
    label: "操作",
    fixed: "right",
    width: 160,
    slot: "operation"
  }
];

const contentConfig: ContentConfig = {
  title: "企业管理",
  columns,
  apis: {
    httpList,
    httpStatus,
    httpDelete
  }
};

export default contentConfig;
