import React, { Component } from 'react'; import st from 'styled-components'; import { connect } from 'dva'; import { withRouter } from 'dva/router'; import { Input, Button, Alert, Popover, Select } from 'antd'; // import $modal from '../../../../utils/modal'; import $nModal from '../../../../utils/modal/nModal'; import tablePage from '../../../../utils/hoc/tablePage'; import DepartSelect from '../../../../components/user/DepartSelect'; import { taskPerJointlyCardBatchNotice } from '../../../../services/apiSmartCard'; // import ExcelButtonOline from '../../../../components/ExcelButtonOline'; import columnFun from './columns'; import { excelButtonHOC } from '../../../../components/ExcelButtonOline'; const { Option } = Select; @connect(state => ({ global: state.global })) @tablePage() @withRouter export default class NotOpen extends Component { constructor(props, context) { super(props, context); this.state = { selectedRows: [], selectedRowKeys: [] }; } componentDidMount() { } // 表格渲染 renderOrderList = () => { const columns = columnFun.call(this); const { PageTable, isInit } = this.props; if (!isInit) return; return ( { this.setState({ selectedRows, selectedRowKeys }); }, selectedRowKeys: this.state.selectedRowKeys }} pagination={{ showTotal: total => `总共 ${total} 条` }} // scroll={{ x: '2400px' }} dateChange={(e) => { this.setState({ selectedRows: [], selectedRowKeys: [] }); }} /> ); }; render() { const { SearchForm, Form } = this.props; const { getFieldDecorator } = this.props.form; // const TreeSelecter = departSelecter(TreeSelect); return (
您可在此页面查看企业下有持保安员资格证且未开通保安员证联名卡的人员,可对人员进行发送站内信,告知其尽快申请开通。
} type="warning" showIcon style={{ marginBottom: '15px' }} /> { // 单选逻辑 // if (/^\-1/.test(values.departId)) { // values.departId = '-1'; // } else { // values.departId = values.departId.split('-')[0]; // } // 多选逻辑 values.departIds = values.departIds.map(({value}) => { if(/^\-1/.test(value)) { return '-1'; }else { return value.split('-')[0]; } }).join(','); // console.log(departId) return values; }} > <> {/* {getFieldDecorator('keyword', { initialValue: '' })( )} */} {getFieldDecorator('name', { initialValue: '' })( )} {getFieldDecorator('mobilePhone', { initialValue: '' })( )} {getFieldDecorator('idCardNo', { initialValue: '' })( )} {getFieldDecorator('departIds', { initialValue: [] // initialValue: '' })( )} {getFieldDecorator('sex', { initialValue: '' })( )} {/* 搜索后可导出结果}> */} 点击搜索后可导出结果}> { excelButtonHOC({ // disabled: !this.props.clicked, disabled: this.state.total == 0, type: 'primary', method: 'GET', params: this.props.searchData, apiurl: "/task/per-jointly-card/export-no-open-jointly-per", downloadname: this.props.global.companyInfo.comName + "_未开通联名卡人员", children: '导出筛选结果' }, Button) } {/* 表格 */} {this.renderOrderList()} ); } } const Btns = st.div` margin-top: 15px; button { margin-right: 15px; } `;