diff --git a/src/views/customer_relation/index.jsx b/src/views/customer_relation/index.jsx index 20407fb..283cd93 100644 --- a/src/views/customer_relation/index.jsx +++ b/src/views/customer_relation/index.jsx @@ -1,4 +1,5 @@ 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 useCustomerRelationStore from '@/stores/CustomerRelationStore' @@ -75,12 +76,20 @@ const Index = () => { { title: '发送时间', dataIndex: 'crt_send_datetime', key: 'crt_send_datetime' }, { title: '模板', dataIndex: 'crt_template', key: 'crt_template' }, { title: 'WhatsApp', dataIndex: 'crt_whatsapp', key: 'crt_whatsapp' }, - { title: '会话ID', dataIndex: 'crt_conversation_id', key: 'crt_conversation_id' }, - { title: '消息ID', dataIndex: 'crt_message_id', key: 'crt_message_id' }, + { + title: '会话', + dataIndex: 'crt_conversation_id', + key: 'crt_conversation_id', + render: (text, record) => { + if (text) { + return 查看会话 + } + }, + }, + // { title: '消息ID', dataIndex: 'crt_message_id', key: 'crt_message_id' }, // { title: '邮箱', dataIndex: 'crt_mei_maillist', key: 'crt_mei_maillist' }, // { title: '创建时间', dataIndex: 'ct_datetime', key: 'ct_datetime' }, // { title: '客人国家', dataIndex: 'crt_mei_country', key: 'crt_mei_country' }, - ] return (