import React, { Component } from 'react'; import st from 'styled-components'; import { connect } from 'dva'; import { withRouter } from 'dva/router'; import { Input, Button, Select, Alert, Modal } from 'antd'; import tablePage from '../../../../utils/hoc/tablePage'; import { getConfigBayzgzSb } from '../../../../services/api'; import '../../declaration.less'; import columnFun from './columns'; const { Option } = Select; @connect(state => ({ global: state.global, companyInfo: state.global.companyInfo })) @tablePage() @withRouter export default class UnSubmits extends Component { constructor(props, context) { super(props, context); this.state = { //抽屉 drawerVisble: false, isNanNiCode:false,//是否是南宁地区码 }; } componentDidMount() { this.__getConfigBayzgzSb() } // 判断是否是北京地区(北京地区隐藏劳动合同、户籍类型、户籍所在地三个字段) checkBeijinCode() { let regProvince = String(this.props.companyInfo.regProvince); return regProvince && regProvince.indexOf('110') == 0 } // 判断是否为商洛地区 checkSRAreaCode = () => { let regCity = String(this.props.companyInfo.regCity); return regCity && regCity.indexOf('611000') == 0 } checkAreaCode() { return this.state.dataListAreaCode && (String(this.state.dataListAreaCode).indexOf('6106') == 0) } //获取保安员指南 __getConfigBayzgzSb() { getConfigBayzgzSb().then( res => { if (res.retType === '0') { this.setState({ declareNotice: res.data.declareNotice }) } } ) } // 表格渲染 _renderList = () => { const columns = columnFun.call(this, this.checkAreaCode(),this.checkBeijinCode()); const { PageTable, isInit } = this.props; if (!isInit) return; return ( { console.log(data) this.setState({ dataListAreaCode: data.other?data.other.areaCode:'', isNanNiCode: data.other? data.other.areaCode.toString().indexOf('4501') == 0 : false, }) }} /> ); }; render() { const { SearchForm, Form } = this.props; const { getFieldDecorator } = this.props.form; return (
只有激活状态为已激活且认证状态为已认证的才可以进行报名。如有未激活或未认证的请及时联系对应人员前往app进行激活/认证。
报名前请仔细阅读 { Modal.info({ className: 'anbao-modal', maskClosable: true, // title: '保安员资格考试报名办理指南', content: (
) }); }}>《保安员资格考试报名办理指南》,了解相关章程及规定。
} type="warning" showIcon style={{ marginBottom: '15px' }} /> {/* */} { return values; }} > <> {getFieldDecorator('keyWord', { initialValue: '' })( )} {getFieldDecorator('personType', { initialValue: '' })( )} {getFieldDecorator('init', { initialValue: '' })( )} {getFieldDecorator('identityAuthState', { initialValue: '' })( )} {getFieldDecorator('departName', { initialValue: '' })( )} {this.checkBeijinCode()?'': } {/* 表格 */} {this._renderList()} {/* 修改弹窗 */} {/* { this.setState({ personApplyId: '' }); }} /> */}
); } } const Btns = st.div` margin-top: 15px; button { margin-right: 15px; } `;