import React, { Component } from 'react'; import { Modal, message, Alert } from "antd"; import { } from '../../../services/api'; import PTable from '../../../components/Pro/PTable'; export default class DeleteShiftsModal extends Component { constructor(props, context) { super(props, context); this.state = { total: 0 } } componentWillReceiveProps(props) { } componentDidMount() { } render() { return ( this.props.setState({ deleteVisible: false })} okText="移除" onOk={() => { if(this.state.selectedRows) { this.props.onOk && this.props.onOk(this.state.selectedRows, () => { this.setState({ selectedRowKeys:null, selectedRows:null, }); }); }else { message.error("你还没选中班次"); } }} > { !!this.props.comTaskId && { this.setState({ selectedRows, selectedRowKeys }); }, selectedRowKeys: this.state.selectedRowKeys || [] }} dateChange={({total}) => { this.setState({ total }); }} /> } ); } }