diff --git a/src/App.js b/src/App.js
index 4c35fb9..57de4f9 100644
--- a/src/App.js
+++ b/src/App.js
@@ -56,14 +56,6 @@ const App = () => {
{ key: 35, label: WhatsApp会话存档 },
],
},
- {
- key: 3,
- label: "客服",
- icon: ,
- children: [
- { key: 36, label: 地接社接团 },
- ],
- },
{
key: 4,
label: "财务",
@@ -73,6 +65,14 @@ const App = () => {
{ key: 42, label: 汇率 },
],
},
+ {
+ key: 6,
+ label: "客服",
+ icon: ,
+ children: [
+ { key: 61, label: 地接社接团 },
+ ],
+ }
];
return (
diff --git a/src/charts/AgentGroup.js b/src/charts/AgentGroup.js
index da31769..761bdc2 100644
--- a/src/charts/AgentGroup.js
+++ b/src/charts/AgentGroup.js
@@ -47,8 +47,8 @@ class AgentGroup extends Component {
return (
<>
-
-
+
+
-
+
-
+
}
diff --git a/src/stores/CustomerServices.js b/src/stores/CustomerServices.js
index 5a4c295..af0d42d 100644
--- a/src/stores/CustomerServices.js
+++ b/src/stores/CustomerServices.js
@@ -141,39 +141,56 @@ class CustomerServices {
agentListColumns = [
{
title: '地接社名称',
- dataIndex: 'VendorName'
+ dataIndex: 'VendorName',
+ render: (text) => {text}
},
{
title: '团数',
- dataIndex: 'GroupCount'
+ dataIndex: 'GroupCount',
+ defaultSortOrder: 'descend',
+ sorter: (a, b) => a.GroupCount - b.GroupCount
},
{
title: '人数',
- dataIndex: 'PersonNum'
+ dataIndex: 'PersonNum',
+ defaultSortOrder: 'descend',
+ sorter: (a, b) => a.PersonNum - b.PersonNum
},
{
title: '团天数',
- dataIndex: 'GroupDays'
+ dataIndex: 'GroupDays',
+ defaultSortOrder: 'descend',
+ sorter: (a, b) => a.GroupDays - b.GroupDays
},
{
title: '交易额',
- dataIndex: 'totalcost'
+ dataIndex: 'totalcost',
+ defaultSortOrder: 'descend',
+ sorter: (a, b) => a.totalcost - b.totalcost
},
{
title: '好评数',
- dataIndex: 'GoodCount'
+ dataIndex: 'GoodCount',
+ defaultSortOrder: 'descend',
+ sorter: (a, b) => a.GoodCount - b.GoodCount
},
{
title: '好评率',
- dataIndex: 'GoodRate'
+ dataIndex: 'GoodRate',
+ defaultSortOrder: 'descend',
+ sorter: (a, b) => parseInt(a.GoodRate) - parseInt(b.GoodRate)
},
{
title: '差评数',
- dataIndex: 'BadCount'
+ dataIndex: 'BadCount',
+ defaultSortOrder: 'descend',
+ sorter: (a, b) => a.BadCount - b.BadCount
},
{
title: '差评率',
- dataIndex: 'BadRate'
+ dataIndex: 'BadRate',
+ defaultSortOrder: 'descend',
+ sorter: (a, b) => parseInt(a.BadRate) - parseInt(b.BadRate)
}
];
}