/** * 添加共保企业 */ import React, { Component } from "react"; import { Alert, Button, Form, Modal, message, Badge, Tabs, Popover, notification, Input, Table } from "antd"; import st from "styled-components"; import { getComListByProvince } from '../../../../services/api'; @Form.create() export default class AddShareTask extends Component { constructor(props, context) { super(props, context); this.state = { dataList: [], keyWord: '', paramsInit: false, //参数是否准备好 selectedRows: null, }; this.setParentState = this.props.setParentState; } componentDidMount() { } _getComListByProvince(keyWord) { getComListByProvince({ keyWord }).then(res => { if (res.retType === '0') { this.setState({ dataList: res.data }) } }) } //必选框的标致 mustLabel() { return ( * ) } render() { const columns = [{ title: "企业名称", dataIndex: "comName", key: "comName" }, { title: "统一社会信用代码", dataIndex: "comCerNo", key: "comCerNo", }] return ( { this.props.changeSelectValue(this.state.selectedRows) }} onCancel={() => { this.setParentState({ // comContractList: selectedRows, shareTaskVisble: false }); // this.props.onChangeStatus(false) }} > { this.setState({ selectedRows, selectedRowKeys }); }, selectedRowKeys: this.state.selectedRowKeys }} >
); } } const Btns = st.div` margin: 10px; >button{ margin-left: 10px; &:first-child{ margin-left: 0; } } `;