import { Popconfirm } from "antd";
export default function() {
  return [
    {
      title: "企业名称",
      dataIndex: "comName",
      key: "comName"
    },
    {
      title: "统一社会信用代码",
      dataIndex: "comCerNo",
      key: "comCerNo"
    },
    {
      title: "操作",
      dataIndex: "action",
      key: "action",
      render: (text, record) => {
        return (
          <span>
            {this.props.readOnly ? (
              <span>-</span>
            ) : (
              <Popconfirm
                overlayClassName="change-clock-pop"
                title="确定删除?"
                onConfirm={() => {
                  this.removeTask([record]);
                }}
                // onCancel={cancel}
                okText="确定"
                cancelText="取消"
              >
                <a href="javascript:void(0)" style={{ color: "red" }}>
                  删除
                </a>
              </Popconfirm>
            )}
          </span>
        );
      }
    }
  ];
}
