feat: 历史记录: +渠道搜索

dev/2025a
Lei OT 1 week ago
parent 7ec91716a7
commit 4fb5041179

@ -40,10 +40,10 @@ const SearchForm = memo(function ({ initialValues, onSubmit, onReset }) {
<Input placeholder='关键词' allowClear />
</Form.Item>
<Form.Item label='消息渠道' name='mchannel' className='w-52'>
<Select mode='multiple' maxTagCount={0} allowClear options={[
{ key: 'waba', label: 'WA商业号', value: 'waba' },
<Select maxTagCount={0} allowClear options={[
{ key: 'WABA', label: 'WA商业号', value: 'WABA' },
{ key: 'email', label: '邮件', value: 'email' },
{ key: 'whatsapp', label: 'WhatsApp', value: 'whatsapp' },
{ key: 'wai', label: 'WhatsApp', value: 'wai' },
]} className='w-8' />
</Form.Item>
{/* <Form.Item label='' name='mtype' className='w-44'>

@ -1,5 +1,5 @@
import React, { useState, useEffect } from 'react';
import { Button, Tag, Radio, Popover, Form } from 'antd';
import { Button, Tag, Radio, Popover, Form, Space } from 'antd';
import { isEmpty, objectMapper, TagColorStyle } from '@/utils/commons';
import useConversationStore from '@/stores/ConversationStore';
import { OrderLabelDefaultOptions } from '@/stores/OrderStore';
@ -127,7 +127,7 @@ const ChatListFilter = ({ onFilterChange, activeList, ...props }) => {
setFilterOtype(e.target.value)
}}
/> */}
{tags.slice(0, 2).map((tag, ti) => (
{tags.slice(0, 3).map((tag, ti) => (
<Tag.CheckableTag
className='mb-1'
key={tag.key}
@ -190,14 +190,14 @@ const ChatListFilter = ({ onFilterChange, activeList, ...props }) => {
</Form.Item>
<Form.Item noStyle className='flex justify-center mb-0'>
<Button.Group>
<Space.Compact>
<Button onClick={onReset} type='primary' ghost>
重置
</Button>
{/* <Button htmlType='submit' type='primary'>
确定
</Button> */}
</Button.Group>
</Space.Compact>
</Form.Item>
</Form>
</>

@ -158,7 +158,7 @@ function DesktopApp() {
// },
{
key: '/chat/history',
label: <Link to='/chat/history'>聊天记录</Link>,
label: <Link to='/chat/history'>历史记录</Link>,
},
{
key: '/customer_relation/index',

Loading…
Cancel
Save