显示国籍中文和显示额外信息

修复引用大小写问题
main
Ycc 8 months ago
parent 228b6e4aec
commit 4fd740dc6a

File diff suppressed because it is too large Load Diff

@ -4,6 +4,7 @@ import dayjs from 'dayjs'
import { ReadIcon, DeliverIcon, SentIcon, WaitingIcon, FailedIcon } from '@/components/Icons'
import { MessageTwoTone } from '@ant-design/icons'
import useCustomerRelationStore from '@/stores/CustomerRelationStore'
import CountryInfo2 from '@/assets/CountryInfo2.json'
const { RangePicker } = DatePicker
const { Option } = Select
@ -18,6 +19,12 @@ const statusIconMap = {
default: <WaitingIcon title='waiting' />,
}
// ID
const countryMap = CountryInfo2.reduce((map, item) => {
map[item.COI2_COI_SN] = item.COI2_Country;
return map;
}, {});
const Index = () => {
const { loading, tasksList, fetchSearchTasks } = useCustomerRelationStore()
@ -143,8 +150,8 @@ const Index = () => {
{ title: '团号', dataIndex: 'crt_coli_id', key: 'crt_coli_id' },
{ title: '客人', dataIndex: 'crt_mei_firstname', key: 'crt_mei_firstname', render: (text, record) => record.crt_mei_firstname + ' ' + record.crt_mei_lastname },
{ title: '时区', dataIndex: 'crt_coi2_country', key: 'crt_coi2_country' },
{ title: '国籍', dataIndex: 'crt_mei_country', key: 'crt_mei_country' },
{ title: '国籍', dataIndex: 'crt_mei_country', key: 'crt_mei_country',render: (sn) => countryMap[sn] || sn },
{ title: '附加信息', dataIndex: 'crt_add_info', key: 'crt_add_info' },
{
title: '状态',
dataIndex: 'crt_status',
@ -160,6 +167,7 @@ const Index = () => {
},
{ title: '发送时间', dataIndex: 'crt_send_datetime', key: 'crt_send_datetime', sorter: (a, b) => dayjs(a.crt_send_datetime).unix() - dayjs(b.crt_send_datetime).unix() },
{ title: '模板', dataIndex: 'crt_template', key: 'crt_template' },
{ title: 'WhatsApp', dataIndex: 'crt_whatsapp', key: 'crt_whatsapp' },
{
title: '会话',

@ -5,7 +5,7 @@ import { Flex, Segmented, Tree, Typography, Layout, Splitter, Button, Tooltip, B
import { useEffect, useMemo, useState, useRef } from 'react'
import EmailDetailInline from '../Conversations/Online/Components/EmailDetailInline'
import OrderProfile from '@/components/OrderProfile'
import Mailbox from './components/Mailbox'
import Mailbox from './components/MailBox'
import useConversationStore from '@/stores/ConversationStore';
import { MailboxDirIcon } from './components/MailboxDirIcon'
import { useVisibilityState } from '@/hooks/useVisibilityState'

Loading…
Cancel
Save