import React, { Component } from 'react';
import st from 'styled-components';
import { connect } from 'dva';
import {
Button,
Alert,
Popover,
Input,
Select,
DatePicker
} from 'antd';
import { withRouter } from 'dva/router';
import columnFun from './columns';
import store from 'store';
import SubDrawer from './SubDrawer';
import tablePage from '../../../../utils/hoc/tablePage';
const { RangePicker } = DatePicker;
const { Option } = Select;
const dateFormat = 'YYYY-MM-DD';
@connect(state => ({
global: state.global
}))
@tablePage({ type: 'bkt' })
@withRouter
export default class Submitted extends Component {
constructor(props, context) {
super(props, context);
this.state = {
//抽屉
drawerVisble: false,
personApplyId: '', //当前选中的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' }}
/>
{
// values
const { applyDate, payDate } = values;
// 报名时间
if(applyDate.length == 2) {
values.applyStartDate = applyDate[0].format(dateFormat);
values.applyEndDate = applyDate[1].format(dateFormat);
}else {
values.applyStartDate = '';
values.applyEndDate = '';
}
Reflect.deleteProperty(values, 'applyDate');
// 缴费时间
if(payDate.length == 2) {
values.payStartDate = payDate[0].format(dateFormat);
values.payEndDate = payDate[1].format(dateFormat);
}else {
values.payStartDate = '';
values.payEndDate = '';
}
Reflect.deleteProperty(values, 'payDate');
return values;
}}
>
<>
{getFieldDecorator('keyword', {
initialValue: ''
})(
)}
{getFieldDecorator('applyStatus', {
initialValue: ''
})(
)}
{getFieldDecorator('backgroundStatus', {
initialValue: ''
})(
)}
{getFieldDecorator('orderStatus', {
initialValue: ''
})(
)}
{getFieldDecorator('materialApproveStatus', {
initialValue: ''
})(
)}
{getFieldDecorator('trackLearnStatus', {
initialValue: ''
})(
)}
{getFieldDecorator('applyDate', {
initialValue: []
})(
)}
{getFieldDecorator('payDate', {
initialValue: []
})(
)}
>
搜索后可导出搜索结果}>
{/* 表格 */}
{this.renderOrderList()}
{/* 修改弹窗 */}
{
this.setState({
personApplyId: ''
});
}}
/>
);
}
}
const Btns = st.div`
margin-top: 15px;
button {
margin-right: 15px;
}
`;