|
|
|
@ -1,4 +1,4 @@
|
|
|
|
|
import React, {Component} from 'react';
|
|
|
|
|
import React, {useContext} from 'react';
|
|
|
|
|
import { Row, Col, Typography, Space, DatePicker, Button, Select, Table } from 'antd';
|
|
|
|
|
import {
|
|
|
|
|
SearchOutlined,
|
|
|
|
@ -10,30 +10,17 @@ import 'moment/locale/zh-cn';
|
|
|
|
|
import moment from "moment";
|
|
|
|
|
import zhCNlocale from 'antd/es/date-picker/locale/zh_CN';
|
|
|
|
|
|
|
|
|
|
class AgentList extends Component {
|
|
|
|
|
const AgentList = () => {
|
|
|
|
|
|
|
|
|
|
static contextType = stores_Context;
|
|
|
|
|
|
|
|
|
|
constructor(props) {
|
|
|
|
|
super(props);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
componentDidMount() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
handleSearchClick() {
|
|
|
|
|
const {customerServicesStore} = this.context;
|
|
|
|
|
customerServicesStore.fetchAgentList();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
render() {
|
|
|
|
|
const {customerServicesStore} = this.context;
|
|
|
|
|
const { customerServicesStore } = useContext(stores_Context);
|
|
|
|
|
const agentList = customerServicesStore.agentList;
|
|
|
|
|
const agentListColumns = customerServicesStore.agentListColumns;
|
|
|
|
|
const groupList = customerServicesStore.groupList;
|
|
|
|
|
const groupListColumns = customerServicesStore.groupListColumns;
|
|
|
|
|
const { startDate, endDate, dateType } = customerServicesStore;
|
|
|
|
|
|
|
|
|
|
const handleSearchClick = () => {
|
|
|
|
|
customerServicesStore.fetchAgentList();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<>
|
|
|
|
|
<Space direction="vertical" style={{ width: '100%' }}>
|
|
|
|
@ -72,7 +59,7 @@ class AgentList extends Component {
|
|
|
|
|
icon={<SearchOutlined />}
|
|
|
|
|
loading={false}
|
|
|
|
|
onClick={() => {
|
|
|
|
|
this.handleSearchClick();
|
|
|
|
|
handleSearchClick();
|
|
|
|
|
}}>
|
|
|
|
|
统计
|
|
|
|
|
</Button>
|
|
|
|
@ -96,6 +83,5 @@ class AgentList extends Component {
|
|
|
|
|
</>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default observer(AgentList);
|