import React, {Component} from 'react'; import {Row, Col, List, Avatar, Space, DatePicker, Button, Select, Table} from 'antd'; import { ContainerOutlined, CarryOutOutlined, SmileOutlined, TagsOutlined, GlobalOutlined, SearchOutlined, } from '@ant-design/icons'; import {stores_Context} from '../config' import * as config from "../config"; import {Line} from "@ant-design/charts"; import {observer} from 'mobx-react'; import 'moment/locale/zh-cn'; import moment from "moment"; import locale from 'antd/es/date-picker/locale/zh_CN'; class AgentGroup extends Component { static contextType = stores_Context; constructor(props) { super(props); } componentDidMount() { console.info('AgentGroup.componentDidMount'); const {customerServicesStore} = this.context; customerServicesStore.fetchAgentList(); } render() { const {customerServicesStore} = this.context; const agentList = customerServicesStore.agentList; const agentListColumns = customerServicesStore.agentListColumns; const groupList = customerServicesStore.groupList; const groupListColumns = customerServicesStore.groupListColumns; return ( <> {console.info(dates)}} ranges={{ '本周': [moment().startOf('week'), moment().endOf('week')], '上周': [moment().startOf('week').subtract(7, 'days'), moment().endOf('week').subtract(7, 'days')], '本月': [moment().startOf('month'), moment().endOf('month')], '上个月': [moment().subtract(1, 'months').startOf('month'), moment(new Date()).subtract(1, 'months').endOf('month')], '近30天': [moment().subtract(30, 'days'), moment()], '近三个月': [moment().subtract(2, 'month').startOf('month'), moment().endOf('month')], '今年': [moment().startOf('year').subtract(1, 'month'), moment().endOf('year').subtract(1, 'month')], '去年': [moment().subtract(1, 'year').startOf('year').subtract(1, 'month'), moment().subtract(1, 'year').endOf('year').subtract(1, 'month')], }} /> record.key} loading={false} pagination={false} scroll={{ x: "100%" }} />
record.key} loading={false} pagination={false} scroll={{ x: "100%" }} /> ); } } export default observer(AgentGroup);