diff --git a/src/views/customer_relation/index.jsx b/src/views/customer_relation/index.jsx index 49200d7..a778ae1 100644 --- a/src/views/customer_relation/index.jsx +++ b/src/views/customer_relation/index.jsx @@ -1,12 +1,22 @@ -import React, { useState } from 'react' import { Link } from 'react-router-dom' import { Form, Input, Button, DatePicker, Select, Table } from 'antd' import dayjs from 'dayjs' +import { ReadIcon, DeliverIcon, SentIcon } from '@/components/Icons' import useCustomerRelationStore from '@/stores/CustomerRelationStore' const { RangePicker } = DatePicker const { Option } = Select +// 消息状态 +const statusIconMap = { + read: , + delivered: , + sent: , + failed: , + accepted: 🕒, + default: 🕒, +} + const Index = () => { const { loading, tasksList, fetchSearchTasks } = useCustomerRelationStore() @@ -82,7 +92,8 @@ const Index = () => { key: 'crt_conversation_id', render: (text, record) => { if (text) { - return 查看会话 ${record.msg_status} + const icon = statusIconMap[record.msg_status] || statusIconMap['default'] + return 查看会话 {icon} } }, },