import { Popconfirm } from "antd";
export default function() {
  return [
    {
      title: "姓名",
      dataIndex: "name",
      key: "name"
    },
    {
      title: "所属企业",
      dataIndex: "comName",
      key: "comName"
    },
    {
      title: "身份证号",
      dataIndex: "idCardNo",
      key: "idCardNo"
    },
    {
      title: "手机号码",
      dataIndex: "mobilePhone",
      key: "mobilePhone"
    },
    {
      title: "保安资格证号",
      dataIndex: "bayzgzh",
      key: "bayzgzh"
    },
    {
      title: "投保状态",
      dataIndex: "tbzt",
      key: "tbzt"
    },
    {
      title: "操作",
      dataIndex: "option",
      key: "option",
      render: (text, record) => {
        return (
          <span>
            {record.isCanDelete === "1" ? (
              <Popconfirm
                overlayClassName="change-clock-pop"
                title="确定移除?"
                onConfirm={() => {
                  this._removeTempTaskPer([record]);
                }}
                // onCancel={cancel}
                okText="确定"
                cancelText="取消"
              >
                <a href="javascript:void(0)" style={{ color: "red" }}>
                  移除
                </a>
              </Popconfirm>
            ) : (
              <span style={{ color: "#cecccc" }}>移除</span>
            )}
          </span>
        );
      }
    }
  ];
}
