import React, { Component } from 'react'; import { connect } from 'dva'; import { Input, Button, DatePicker, Table, Modal, message, Tooltip, Alert } from 'antd'; import PTable from "../../../components/Pro/PTable"; import * as ajax from "../../../services/api"; import "./less/report.less" import ManagementAdd from './ManagementAdd'; import ManagementChange from './ManagementChange'; import ManagementChangeReport from './ManagementChangeReport'; import AddManagementlist from './AddManagementlist'; const confirm = Modal.confirm; export default class ManagementBasic extends Component { constructor(props, context) { super(props, context); this.state = { open: false, open2: false, pageParm: { // comId: 1, pageSize: "10", pageNumber: "1", }, forceUpdate: false, visibleDetail: false, visibleChangeReport: false, visibleDetailMore: false, comManagerId: '00', name: '', sex: '', idCardType: '', idCardNo: '', positionName: '', telephone: '', } } // 表格渲染 renderOrderList = () => { const columns = [ { title: '姓名', dataIndex: 'name', key: 'name', }, { title: '性别', dataIndex: 'sexName', key: 'sexName', }, { title: '证件类型', dataIndex: 'idCardTypeName', key: 'idCardTypeName', }, { title: '证件号', dataIndex: 'idCardNo', key: 'idCardNo', }, { title: '职务', dataIndex: 'positionName', key: 'positionName', }, { title: '联系方式', dataIndex: 'telephone', key: 'telephone', }, { title: "操作", key: 'yu', render: (text, record) => (
{ // this.props.props.history.push(`/enterprise/reported/managementadd/${record.comManagerId}`); this.setState({ comManagerId: record.comManagerId, open: true }); }}>修改 删除
) }, ]; return ( ); }; //table 数据变化 dateTableChange = (data) => { // console.log('data', data); }; // 点击查看展示信息弹窗 clickHandlerView = (orderID) => { console.log(orderID); this.setState({ checkModal: true, }); // this.checkMessageTitle(orderID); }; //删除 showDeleteConfirm = (orderID) => { console.log(orderID); let _this = this; confirm({ title: '是否删除所选信息,删除后无法找回。是否确认删除?', okText: '确认', cancelText: '取消', onOk() { _this.orderDelete(orderID); }, onCancel() { console.log('Cancel'); }, }); }; // 订单删除 orderDelete = (orderID) => { ajax.comStockDeleteManageById({ comManagerId: orderID }).then((data) => { this.setState({ forceUpdate: true }); }); }; callbackChangeReport = () => { this.setState({ visibleChangeReport: false, visibleDetailMore: true, comManagerId: '00', }); // this.ajaxInsPage(); this.setState({ forceUpdate: true }); }; callbackChangeReportClose = () => { this.setState({ visibleChangeReport: false }); // this.ajaxInsPage(); this.setState({ forceUpdate: true }); }; callback = () => { this.setState({ open: false, open2: false }); // this.ajaxInsPage(); this.setState({ forceUpdate: true }); }; callbackMore = () => { this.setState({ visibleDetailMore: false }); // this.ajaxInsPage(); this.setState({ forceUpdate: true }); }; // 调用方法 onRef = (ref) => { this.child = ref; }; resetFrom = () => { this.child.resetFrom(); console.log('1111111111>>>'); }; render() { let display = { display: "block" }; if (this.state.visibleDetail || this.state.visibleDetailMore || this.state.visibleChangeReport) { display = { display: "none" }; } return (
注:根据监管要求,至少需要上报企业法人、总经理、副总经理级别的管理层人员信息,部门经理级别按照规定上报。
} type="warning" showIcon style={{ marginBottom: '15px' }} />
{this.renderOrderList()}
{this.state.visibleChangeReport && } { this.setState({ open }); }} /> { this.setState({ open2 }); }} /> {this.state.visibleDetailMore && } ); } }