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:
+ )
+ } 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 (
+