diff --git a/src/views/ChatHistory.jsx b/src/views/ChatHistory.jsx index 10c072d..96106c0 100644 --- a/src/views/ChatHistory.jsx +++ b/src/views/ChatHistory.jsx @@ -33,7 +33,7 @@ const Index = (props) => { const getConversationsList = async () => { setConversationsListLoading(true); - const params = flush(pick(formValues, ['opisn', 'whatsapp_id', 'search', 'from_date', 'end_date', 'coli_id', 'lasttime'])); + const params = flush(pick(formValues, ['opisn', 'whatsapp_id', 'search', 'from_date', 'end_date', 'coli_id', 'lasttime', 'mtype', 'mchannel'])); const data = await fetchConversationsSearch({ ...params, ...pageParam, pagesize: CONVERSATION_PAGE_SIZE }); setConversationsListLoading(false); setConversationsList(conversationsList.concat(data)); diff --git a/src/views/Conversations/History/SearchForm.jsx b/src/views/Conversations/History/SearchForm.jsx index 961f4ac..0315086 100644 --- a/src/views/Conversations/History/SearchForm.jsx +++ b/src/views/Conversations/History/SearchForm.jsx @@ -1,6 +1,6 @@ /* eslint-disable react/display-name */ import { memo } from 'react'; -import { Form, Flex, Input, Button, DatePicker } from 'antd'; +import { Form, Flex, Input, Button, DatePicker, Select } from 'antd'; import SearchInput from '@/components/SearchInput'; import { isNotEmpty } from '@/utils/commons'; import { fetchSalesAgentWithDD as fetchSalesAgent, fetchCustomerList } from '@/actions/CommonActions'; @@ -39,6 +39,22 @@ const SearchForm = memo(function ({ initialValues, onSubmit, onReset }) { + + +