From fa52d9db7cd28142edc3046c1d69532792e1bc45 Mon Sep 17 00:00:00 2001 From: Ycc Date: Sat, 19 Apr 2025 12:12:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=B6=88=E6=81=AF=E7=8A=B6?= =?UTF-8?q?=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/customer_relation/index.jsx | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) 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} } }, },