|
|
|
@ -12,10 +12,10 @@ import zhCNlocale from 'antd/es/date-picker/locale/zh_CN';
|
|
|
|
|
|
|
|
|
|
const AgentList = () => {
|
|
|
|
|
|
|
|
|
|
const { customerServicesStore } = useContext(stores_Context);
|
|
|
|
|
const {customerServicesStore} = useContext(stores_Context);
|
|
|
|
|
const agentList = customerServicesStore.agentList;
|
|
|
|
|
const agentListColumns = customerServicesStore.agentListColumns;
|
|
|
|
|
const { startDate, endDate, dateType } = customerServicesStore;
|
|
|
|
|
const {startDate, endDate, dateType, inProgress} = customerServicesStore;
|
|
|
|
|
|
|
|
|
|
const handleSearchClick = () => {
|
|
|
|
|
customerServicesStore.fetchAgentList();
|
|
|
|
@ -57,7 +57,7 @@ const AgentList = () => {
|
|
|
|
|
<Button
|
|
|
|
|
type="primary"
|
|
|
|
|
icon={<SearchOutlined />}
|
|
|
|
|
loading={false}
|
|
|
|
|
loading={inProgress}
|
|
|
|
|
onClick={() => {
|
|
|
|
|
handleSearchClick();
|
|
|
|
|
}}>
|
|
|
|
@ -73,7 +73,7 @@ const AgentList = () => {
|
|
|
|
|
columns={agentListColumns}
|
|
|
|
|
size="small"
|
|
|
|
|
rowKey={(record) => record.key}
|
|
|
|
|
loading={false}
|
|
|
|
|
loading={inProgress}
|
|
|
|
|
pagination={false}
|
|
|
|
|
scroll={{ x: "100%" }}
|
|
|
|
|
/>
|
|
|
|
|