import React, { Component } from 'react';
import st from 'styled-components';
import { connect } from 'dva';
import { withRouter } from 'dva/router';
import {
Button, Alert, Popover,
Tabs,
Input,
Select,
DatePicker
} from 'antd';
import columnFun from './columns';
import SubDrawer from './SubDrawer';
import tablePage from '../../../../utils/hoc/tablePage';
import store from 'store';
import moment from 'moment';
const { TabPane } = Tabs;
const { Option } = Select;
const { RangePicker } = DatePicker;
@connect(state => ({
global: state.global
}))
@withRouter
@tablePage({ type: 'bkt' })
export default class StudentManagement extends Component {
constructor(props, context) {
super(props, context);
this.state = {
//抽屉
drawerVisble: false,
personInternLineId: '', //当前选中的id
};
}
componentDidMount() {
}
// 表格渲染
renderOrderList = () => {
const columns = columnFun.call(this);
const { PageTable, isInit } = this.props;
if (!isInit) return;
return (
);
};
render() {
const { SearchForm, Form } = this.props;
const { getFieldDecorator } = this.props.form;
return (
实习审核:本页面显示从报名公司审核通过后的学员实习记录,培训机构相关人员需要进行二次审核,审核通过后,该条实习记录才为有效,并记录实习总时长。
}
type="warning"
showIcon
style={{ marginBottom: '15px' }}
/>
{
const { date } = values;
// 实习日期
if(date.length == 2) {
values.startDate = moment(date[0]).format('YYYY-MM-DD');
values.endDate = moment(date[1]).format('YYYY-MM-DD');
}else {
values.startDate = '';
values.endDate = '';
}
Reflect.deleteProperty(values, 'date');
return values;
}}
>
<>
{getFieldDecorator('keyword', {
initialValue: ''
})(
)}
{getFieldDecorator('trainApproveStatus', {
initialValue: ''
})(
)}
{getFieldDecorator('learnName', {
initialValue: ''
})(
)}
{getFieldDecorator('date', {
initialValue: []
})(
{
// return current > moment().endOf('day')
// return current && current > moment().endOf('day')
}}
// disabledTime={}
format="YYYY-MM-DD"
/>
)}
>
{/* 搜索后可导出搜索结果} title="温馨提示:"> */}
{/* */}
{/* 表格 */}
{this.renderOrderList()}
{/* 修改弹窗 */}
{
this.setState({personInternLineId: ''});
this.props.updateTable();
}}
onClose={() => {
this.setState({personInternLineId: ''});
}}
/>
);
}
}
const Btns = st.div`
margin-top: 15px;
button {
margin-right: 15px;
}
`;