From d7194ba43928c56045c074edf3212fa8b62cb206 Mon Sep 17 00:00:00 2001 From: LiaoYijun Date: Tue, 8 Nov 2022 10:39:23 +0800 Subject: [PATCH 1/6] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=AE=A2=E6=9C=8D?= =?UTF-8?q?=E5=9C=B0=E6=8E=A5=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.js | 3 + src/charts/AgentGroup.js | 126 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 129 insertions(+) create mode 100644 src/charts/AgentGroup.js diff --git a/src/App.js b/src/App.js index 3a4e687..eab9625 100644 --- a/src/App.js +++ b/src/App.js @@ -13,6 +13,7 @@ import Customer_care_potential from "./charts/Customer_care_potential"; import Customer_care_regular from "./charts/Customer_care_regular"; import Wechat_session from "./charts/Wechat_session"; import WhatsApp_session from "./charts/WhatsApp_session"; +import AgentGroup from "./charts/AgentGroup"; import Credit_card_bill from "./views/Credit_card_bill"; import exchange_rate from "./charts/ExchangeRate"; import Sale from "./views/Sale"; @@ -53,6 +54,7 @@ const App = () => { { key: 33, label: 在华客户 }, { key: 34, label: 微信会话存档 }, { key: 35, label: WhatsApp会话存档 }, + { key: 36, label: 地接社接团 }, ], }, { @@ -95,6 +97,7 @@ const App = () => { } /> } /> } /> + } /> }> } /> diff --git a/src/charts/AgentGroup.js b/src/charts/AgentGroup.js new file mode 100644 index 0000000..b4a92c7 --- /dev/null +++ b/src/charts/AgentGroup.js @@ -0,0 +1,126 @@ +import React, {Component} from 'react'; +import {Row, Col, List, Avatar, Space, Pagination, Button} from 'antd'; +import { + ContainerOutlined, CarryOutOutlined, + SmileOutlined, TagsOutlined, GlobalOutlined, + SearchOutlined, +} from '@ant-design/icons'; +import {stores_Context} from '../config' +import {Line} from "@ant-design/charts"; +import {observer} from 'mobx-react'; +import 'moment/locale/zh-cn'; +import DatePickerCharts from './DatePickerCharts' + +class AgentGroup extends Component { + + static contextType = stores_Context; + constructor(props) { + super(props); + } + + componentDidMount() { + console.info('AgentGroup.componentDidMount'); + const {wechatStore} = this.context; + wechatStore.fetchWechatUserList(); + } + + handleUserClick(user) { + const {wechatStore} = this.context; + wechatStore.fetchContactList(user); + } + handleContactClick(contact) { + const {wechatStore} = this.context; + wechatStore.fetchChatMsgList(contact, 0, 20); + } + handlePageChanged(page, pageSize) { + const {wechatStore} = this.context; + wechatStore.fetchChatMsgList(wechatStore.selectedContact, page, pageSize); + } + + renderMsgItem(chatMsg) { + const msgDate = new Date(chatMsg.msgtime); + const msgDateText = msgDate.toLocaleDateString() + ' ' + msgDate.toLocaleTimeString(); + return ( + + } + title={chatMsg.from_name} + description={msgDateText} + /> + {this.renderMsgContent(chatMsg)} + + ) + } + + renderMsgContent(chatMsg) { + if (chatMsg.msgtype === 'file') { + return ( + {chatMsg.content.filename} + ) + } else if (chatMsg.msgtype === 'image') { + return ( + {chatMsg.msgid} + ) + } else if (chatMsg.msgtype === 'text') { + return ( + <>{chatMsg.content.text} + ) + } else if (chatMsg.msgtype === 'link') { + return ( + {chatMsg.content.title} + ) + } else { + return ( + <>未知消息[{chatMsg.msgtype}] + ) + } + } + + render() { + const {dashboard_store} = this.context; + const orders_data = dashboard_store.orders_data; + const line_config = { + data: orders_data.data, + padding: 'auto', + xField: 'ApplyDate', + yField: 'orderCount', + seriesField: 'WebCode', + xAxis: { + type: 'timeCat', + }, + smooth: true, + legend: { + position: 'right-top', + title: { + text: '总合计 ' + orders_data.data.reduce((a, b) => a + b.orderCount, 0), + }, + itemMarginBottom: 12,//垂直间距 + itemValue: { + formatter: (text, item) => { + const items = orders_data.data.filter((d) => d.WebCode === item.value);//按站点筛选 + return items.length ? items.reduce((a, b) => a + b.orderCount, 0) : '';//计算总数 + }, + }, + }, + } + + return ( +
+

全网站订单数统计

+
+ + + + +
+
+ +
+ ); + } + +} + +export default observer(AgentGroup); \ No newline at end of file From 6bc9ad3eae29194b8ccfa89d7559e9048c872d1a Mon Sep 17 00:00:00 2001 From: LiaoYijun Date: Wed, 9 Nov 2022 15:21:19 +0800 Subject: [PATCH 2/6] =?UTF-8?q?=E5=88=9D=E6=AD=A5=E5=AE=8C=E6=88=90?= =?UTF-8?q?=E5=AE=A2=E6=9C=8D=E6=95=B0=E6=8D=AE=E7=BB=9F=E8=AE=A1=E7=95=8C?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/charts/AgentGroup.js | 168 ++++++++++++++------------------- src/stores/CustomerServices.js | 163 ++++++++++++++++++++++++++++++++ src/stores/Index.js | 3 +- 3 files changed, 237 insertions(+), 97 deletions(-) create mode 100644 src/stores/CustomerServices.js diff --git a/src/charts/AgentGroup.js b/src/charts/AgentGroup.js index b4a92c7..2168ff4 100644 --- a/src/charts/AgentGroup.js +++ b/src/charts/AgentGroup.js @@ -1,15 +1,17 @@ import React, {Component} from 'react'; -import {Row, Col, List, Avatar, Space, Pagination, Button} from 'antd'; +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 DatePickerCharts from './DatePickerCharts' +import moment from "moment"; +import locale from 'antd/es/date-picker/locale/zh_CN'; class AgentGroup extends Component { @@ -20,105 +22,79 @@ class AgentGroup extends Component { componentDidMount() { console.info('AgentGroup.componentDidMount'); - const {wechatStore} = this.context; - wechatStore.fetchWechatUserList(); - } - - handleUserClick(user) { - const {wechatStore} = this.context; - wechatStore.fetchContactList(user); - } - handleContactClick(contact) { - const {wechatStore} = this.context; - wechatStore.fetchChatMsgList(contact, 0, 20); - } - handlePageChanged(page, pageSize) { - const {wechatStore} = this.context; - wechatStore.fetchChatMsgList(wechatStore.selectedContact, page, pageSize); - } - - renderMsgItem(chatMsg) { - const msgDate = new Date(chatMsg.msgtime); - const msgDateText = msgDate.toLocaleDateString() + ' ' + msgDate.toLocaleTimeString(); - return ( - - } - title={chatMsg.from_name} - description={msgDateText} - /> - {this.renderMsgContent(chatMsg)} - - ) - } - - renderMsgContent(chatMsg) { - if (chatMsg.msgtype === 'file') { - return ( - {chatMsg.content.filename} - ) - } else if (chatMsg.msgtype === 'image') { - return ( - {chatMsg.msgid} - ) - } else if (chatMsg.msgtype === 'text') { - return ( - <>{chatMsg.content.text} - ) - } else if (chatMsg.msgtype === 'link') { - return ( - {chatMsg.content.title} - ) - } else { - return ( - <>未知消息[{chatMsg.msgtype}] - ) - } + const {customerServicesStore} = this.context; + customerServicesStore.fetchAgentList(); } render() { - const {dashboard_store} = this.context; - const orders_data = dashboard_store.orders_data; - const line_config = { - data: orders_data.data, - padding: 'auto', - xField: 'ApplyDate', - yField: 'orderCount', - seriesField: 'WebCode', - xAxis: { - type: 'timeCat', - }, - smooth: true, - legend: { - position: 'right-top', - title: { - text: '总合计 ' + orders_data.data.reduce((a, b) => a + b.orderCount, 0), - }, - itemMarginBottom: 12,//垂直间距 - itemValue: { - formatter: (text, item) => { - const items = orders_data.data.filter((d) => d.WebCode === item.value);//按站点筛选 - return items.length ? items.reduce((a, b) => a + b.orderCount, 0) : '';//计算总数 - }, - }, - }, - } + 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%" }} /> + + + + ); } } diff --git a/src/stores/CustomerServices.js b/src/stores/CustomerServices.js new file mode 100644 index 0000000..8030cf2 --- /dev/null +++ b/src/stores/CustomerServices.js @@ -0,0 +1,163 @@ +import {makeAutoObservable, runInAction} from "mobx" +import * as config from "../config"; +import * as req from '../utils/request'; + +class CustomerServices { + + constructor(rootStore) { + this.rootStore = rootStore; + makeAutoObservable(this); + } + + fetchAgentList() { + + req.fetchJSON(config.HT_HOST + '/service-web/QueryData/GetAgentGroupInfoALL?DateType=applyDate&Date1=2022-08-01&Date2=2022-08-31%2023:59&OldDate1=2022-07-01&OldDate2=2022-07-31%2023:59') + .then(json => { + console.info(json); + if (json.errcode === 0) { + runInAction(() => { + this.agentList = json.result1; + }); + } + }); + + + + req.fetchJSON(config.HT_HOST + '/service-web/QueryData/GetAgentGroupInfo?VEI_SN=1262&DateType=applyDate&Date1=2022-08-01&Date2=2022-08-31%2023:59&OldDate1=2022-07-01&OldDate2=2022-07-31%2023:59') + .then(json => { + console.info(json); + if (json.errcode === 0) { + runInAction(() => { + this.groupList = json.result1; + }); + } + }); + } + + fetchGroupListByAgent() { + + req.fetchJSON(config.HT_HOST + '/service-web/QueryData/GetAgentGroupInfo?VEI_SN=1262&DateType=applyDate&Date1=2022-08-01&Date2=2022-08-31%2023:59&OldDate1=2022-07-01&OldDate2=2022-07-31%2023:59') + .then(json => { + console.info(json); + if (json.errcode === 0) { + runInAction(() => { + this.groupList = json.result1; + }); + } + }); + } + + groupList = [{ + EOI_ObjSN: 1, + GRI_SN: '---', + GRI_Name: 0, + COLI_PersonNum: 0, + COLI_Days: 0, + PassCity: 0, + VendorName: 0, + GuideName: '-', + Good: 0, + Bad: '-', + ECI_Content: '-', + totalcost: 0, + key: 1 + }]; + + groupListColumns = [ + { + title: '团名', + dataIndex: 'GRI_Name' + }, + { + title: '人数', + dataIndex: 'COLI_PersonNum' + }, + { + title: '天数', + dataIndex: 'COLI_Days' + }, + { + title: '经过城市', + dataIndex: 'PassCity' + }, + { + title: '地接社名称', + dataIndex: 'VendorName' + }, + { + title: '导游', + dataIndex: 'GuideName' + }, + { + title: '好评', + dataIndex: 'Good' + }, + { + title: '差评', + dataIndex: 'Bad' + }, + { + title: '评论内容', + dataIndex: 'ECI_Content' + }, + { + title: '交易额', + dataIndex: 'totalcost' + } + ]; + + agentList = [{ + EOI_ObjSN: 1, + VendorName: '---', + GroupCount: 0, + PersonNum: 0, + GroupDays: 0, + totalcost: 0, + GoodCount: 0, + GoodRate: '-', + BadCount: 0, + BadRate: '-', + key: 1 + }]; + + agentListColumns = [ + { + title: '地接社名称', + dataIndex: 'VendorName' + }, + { + title: '团数', + dataIndex: 'GroupCount' + }, + { + title: '人数', + dataIndex: 'PersonNum' + }, + { + title: '团天数', + dataIndex: 'GroupDays' + }, + { + title: '交易额', + dataIndex: 'totalcost' + }, + { + title: '好评数', + dataIndex: 'GoodCount' + }, + { + title: '好评率', + dataIndex: 'GoodRate' + }, + { + title: '差评数', + dataIndex: 'BadCount' + }, + { + title: '差评率', + dataIndex: 'BadRate' + } + ]; +} + +export default CustomerServices; \ No newline at end of file diff --git a/src/stores/Index.js b/src/stores/Index.js index cd5a43c..47b66b8 100644 --- a/src/stores/Index.js +++ b/src/stores/Index.js @@ -9,7 +9,7 @@ import FinancialStore from "./FinancialStore"; import SaleStore from "./SaleStore"; import WechatStore from "./Wechat"; import WhatsAppStore from "./WhatsApp"; - +import CustomerServicesStore from "./CustomerServices"; class Index { constructor() { @@ -23,6 +23,7 @@ class Index { this.sale_store = new SaleStore(this); this.wechatStore = new WechatStore(this); this.whatsAppStore = new WhatsAppStore(this); + this.customerServicesStore = new CustomerServicesStore(this); makeAutoObservable(this); } From b9712ced0c812262c1ce498e3ae4e3ace044e02a Mon Sep 17 00:00:00 2001 From: LiaoYijun Date: Wed, 9 Nov 2022 16:58:41 +0800 Subject: [PATCH 3/6] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=97=A5=E6=9C=9F?= =?UTF-8?q?=E9=80=89=E6=8B=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/charts/AgentGroup.js | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/src/charts/AgentGroup.js b/src/charts/AgentGroup.js index 2168ff4..76894cd 100644 --- a/src/charts/AgentGroup.js +++ b/src/charts/AgentGroup.js @@ -11,7 +11,7 @@ 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'; +import zhCNlocale from 'antd/es/date-picker/locale/zh_CN'; class AgentGroup extends Component { @@ -35,25 +35,20 @@ class AgentGroup extends Component { return ( <> - - - + {console.info(dates)}} @@ -80,8 +75,6 @@ class AgentGroup extends Component { 统计 - - From 67fe520aad0440e236daeaf2bc457b8956c7d8ac Mon Sep 17 00:00:00 2001 From: LiaoYijun Date: Thu, 10 Nov 2022 10:37:27 +0800 Subject: [PATCH 4/6] =?UTF-8?q?=E5=AE=8C=E6=88=90=E6=97=A5=E6=9C=9F?= =?UTF-8?q?=E8=8C=83=E5=9B=B4=E9=80=89=E6=8B=A9=E5=92=8C=E6=97=A5=E6=9C=9F?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/charts/AgentGroup.js | 46 ++++++++++++++++++++++++++----- src/stores/CustomerServices.js | 49 +++++++++++++++++++++++----------- 2 files changed, 72 insertions(+), 23 deletions(-) diff --git a/src/charts/AgentGroup.js b/src/charts/AgentGroup.js index 76894cd..16932b3 100644 --- a/src/charts/AgentGroup.js +++ b/src/charts/AgentGroup.js @@ -16,14 +16,24 @@ import zhCNlocale from 'antd/es/date-picker/locale/zh_CN'; class AgentGroup extends Component { static contextType = stores_Context; + + state = { + selectedRowKeys: [], + }; + constructor(props) { super(props); } componentDidMount() { console.info('AgentGroup.componentDidMount'); - const {customerServicesStore} = this.context; - customerServicesStore.fetchAgentList(); + // const {customerServicesStore} = this.context; + // customerServicesStore.fetchAgentList(); + } + + handleSearchClick() { + const {customerServicesStore} = this.context; + customerServicesStore.fetchAgentList(); } render() { @@ -32,12 +42,14 @@ class AgentGroup extends Component { const agentListColumns = customerServicesStore.agentListColumns; const groupList = customerServicesStore.groupList; const groupListColumns = customerServicesStore.groupListColumns; + const {startDate, endDate, dateType} = customerServicesStore; + const { selectedRowKeys } = this.state; return ( <> - customerServicesStore.selectDateType(value)}> 走团日期 @@ -50,8 +62,8 @@ class AgentGroup extends Component { {console.info(dates)}} + value={[startDate, endDate]} + onChange={(dates) => {customerServicesStore.selectDateRange(dates[0], dates[1])}} ranges={{ '本周': [moment().startOf('week'), moment().endOf('week')], '上周': [moment().startOf('week').subtract(7, 'days'), moment().endOf('week').subtract(7, 'days')], @@ -70,7 +82,7 @@ class AgentGroup extends Component { icon={} loading={false} onClick={() => { - console.info('click...'); + this.handleSearchClick(); }}> 统计 @@ -78,7 +90,27 @@ class AgentGroup extends Component { -
record.key} loading={false} pagination={false} scroll={{ x: "100%" }} /> +
record.key} + loading={false} + pagination={false} + scroll={{ x: "100%" }} + // rowSelection={{ + // type: 'radio', + // selectedRowKeys, + // onChange: (selectedRowKeys) => { + // console.info({ selectedRowKeys }); + // }, + // }} + onRow={(agent) => ({ + onClick: () => { + customerServicesStore.selectAgent(agent); + }, + })} + /> diff --git a/src/stores/CustomerServices.js b/src/stores/CustomerServices.js index 8030cf2..5fbacff 100644 --- a/src/stores/CustomerServices.js +++ b/src/stores/CustomerServices.js @@ -1,17 +1,23 @@ import {makeAutoObservable, runInAction} from "mobx" +import moment from "moment"; import * as config from "../config"; import * as req from '../utils/request'; class CustomerServices { constructor(rootStore) { - this.rootStore = rootStore; - makeAutoObservable(this); + this.rootStore = rootStore; + this.startDate = moment().startOf('week').subtract(7, 'days'); + this.endDate = moment().endOf('week').subtract(7, 'days'); + this.startDateString = this.startDate.format(config.DATE_FORMAT); + this.endDateString = this.endDate.format(config.DATE_FORMAT) + '%2023:59'; + this.dateType = 'startDate'; + makeAutoObservable(this); } fetchAgentList() { - req.fetchJSON(config.HT_HOST + '/service-web/QueryData/GetAgentGroupInfoALL?DateType=applyDate&Date1=2022-08-01&Date2=2022-08-31%2023:59&OldDate1=2022-07-01&OldDate2=2022-07-31%2023:59') + req.fetchJSON(config.HT_HOST + '/service-web/QueryData/GetAgentGroupInfoALL?DateType=' + this.dateType + '&Date1=' + this.startDateString + '&Date2=' + this.endDateString + '&OldDate1=' + this.startDateString + '&OldDate2=' + this.endDateString) .then(json => { console.info(json); if (json.errcode === 0) { @@ -20,23 +26,11 @@ class CustomerServices { }); } }); - - - - req.fetchJSON(config.HT_HOST + '/service-web/QueryData/GetAgentGroupInfo?VEI_SN=1262&DateType=applyDate&Date1=2022-08-01&Date2=2022-08-31%2023:59&OldDate1=2022-07-01&OldDate2=2022-07-31%2023:59') - .then(json => { - console.info(json); - if (json.errcode === 0) { - runInAction(() => { - this.groupList = json.result1; - }); - } - }); } fetchGroupListByAgent() { - req.fetchJSON(config.HT_HOST + '/service-web/QueryData/GetAgentGroupInfo?VEI_SN=1262&DateType=applyDate&Date1=2022-08-01&Date2=2022-08-31%2023:59&OldDate1=2022-07-01&OldDate2=2022-07-31%2023:59') + req.fetchJSON(config.HT_HOST + '/service-web/QueryData/GetAgentGroupInfo?VEI_SN=' + this.selectedAgent.EOI_ObjSN + '&DateType=' + this.dateType + '&Date1=' + this.startDateString + '&Date2=' + this.endDateString + '&OldDate1=' + this.startDateString + '&OldDate2=' + this.endDateString) .then(json => { console.info(json); if (json.errcode === 0) { @@ -46,6 +40,29 @@ class CustomerServices { } }); } + + selectDateRange(startDate, endDate) { + this.startDate = startDate; + this.endDate = endDate; + this.startDateString = startDate.format(config.DATE_FORMAT); + this.endDateString = endDate.format(config.DATE_FORMAT) + '%2023:59'; + } + + selectDateType(dateType) { + this.dateType = dateType; + } + + selectAgent(agent) { + this.selectedAgent = agent; + this.fetchGroupListByAgent(); + } + + startDate; + endDate; + startDateString; + endDateString; + dateType; + selectedAgent; groupList = [{ EOI_ObjSN: 1, From 124185c40ed34dae7c9b52d47291d519072d4757 Mon Sep 17 00:00:00 2001 From: LiaoYijun Date: Thu, 10 Nov 2022 15:54:02 +0800 Subject: [PATCH 5/6] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=A0=87=E9=A2=98?= =?UTF-8?q?=E5=92=8C=E9=97=B4=E8=B7=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/charts/AgentGroup.js | 15 +++++---------- src/stores/CustomerServices.js | 1 + 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/src/charts/AgentGroup.js b/src/charts/AgentGroup.js index 16932b3..3eeee52 100644 --- a/src/charts/AgentGroup.js +++ b/src/charts/AgentGroup.js @@ -1,5 +1,5 @@ import React, {Component} from 'react'; -import {Row, Col, List, Avatar, Space, DatePicker, Button, Select, Table} from 'antd'; +import {Row, Col, List, Typography, Space, DatePicker, Button, Select, Table} from 'antd'; import { ContainerOutlined, CarryOutOutlined, SmileOutlined, TagsOutlined, GlobalOutlined, @@ -43,10 +43,10 @@ class AgentGroup extends Component { const groupList = customerServicesStore.groupList; const groupListColumns = customerServicesStore.groupListColumns; const {startDate, endDate, dateType} = customerServicesStore; - const { selectedRowKeys } = this.state; return ( <> +
{ - // console.info({ selectedRowKeys }); - // }, - // }} onRow={(agent) => ({ onClick: () => { customerServicesStore.selectAgent(agent); @@ -115,13 +109,14 @@ class AgentGroup extends Component { + {customerServicesStore.selectedAgent.VendorName}
record.key} loading={false} pagination={false} scroll={{ x: "100%" }} /> + ); } - } export default observer(AgentGroup); \ No newline at end of file diff --git a/src/stores/CustomerServices.js b/src/stores/CustomerServices.js index 5fbacff..5a4c295 100644 --- a/src/stores/CustomerServices.js +++ b/src/stores/CustomerServices.js @@ -12,6 +12,7 @@ class CustomerServices { this.startDateString = this.startDate.format(config.DATE_FORMAT); this.endDateString = this.endDate.format(config.DATE_FORMAT) + '%2023:59'; this.dateType = 'startDate'; + this.selectedAgent = {VendorName: '请选择地接社'}; makeAutoObservable(this); } From 4c19571d2456b2205925e0ececa61f226143ec57 Mon Sep 17 00:00:00 2001 From: LiaoYijun Date: Fri, 11 Nov 2022 16:40:31 +0800 Subject: [PATCH 6/6] =?UTF-8?q?=E8=B0=83=E6=95=B4=E7=95=8C=E9=9D=A2?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/charts/AgentGroup.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/charts/AgentGroup.js b/src/charts/AgentGroup.js index 3eeee52..da31769 100644 --- a/src/charts/AgentGroup.js +++ b/src/charts/AgentGroup.js @@ -47,7 +47,7 @@ class AgentGroup extends Component { return ( <> - +