From ac81fb3987197f43b8384567d992502d53ab96b3 Mon Sep 17 00:00:00 2001 From: Ycc Date: Wed, 16 Apr 2025 16:45:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BC=9A=E8=AF=9D=E9=93=BE?= =?UTF-8?q?=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/stores/AuthStore.js | 4 ++-- src/views/customer_relation/index.jsx | 15 ++++++++++++--- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/src/stores/AuthStore.js b/src/stores/AuthStore.js index 2bd5d37..7f01a06 100644 --- a/src/stores/AuthStore.js +++ b/src/stores/AuthStore.js @@ -157,8 +157,8 @@ const useAuthStore = create(devtools((set, get) => ({ }, loadUserSession: () => { - //let sessionData = window.sessionStorage.getItem('GLOBAL_SALES_LOGIN_USER') - let sessionData ='{"userId":"155","userIdStr":"155","emailList":[],"whatsAppBusiness":"+8617607730395","whatsAppNo":null,"username":"尹诚诚","avatarUrl":"https://static-legacy.dingtalk.com/media/lADPBE1XYG_HAcDNAgDNAgA_512_512.jpg","mobile":"+86-18507832160","email":"ycc@hainatravel.com","openId":"K8BNXMf8ESSr1DzLVUrX7wiEiE","accountList":[{"OPI_SN":155,"OPI_Code":"YCC","OPI_NameCN":"尹诚诚","OPI_DEI_SN":1,"OPI_NameEN":"Yin Chengcheng"}]}' + let sessionData = window.sessionStorage.getItem('GLOBAL_SALES_LOGIN_USER') + //let sessionData ='{"userId":"155","userIdStr":"155","emailList":[],"whatsAppBusiness":"+8617607730395","whatsAppNo":null,"username":"尹诚诚","avatarUrl":"https://static-legacy.dingtalk.com/media/lADPBE1XYG_HAcDNAgDNAgA_512_512.jpg","mobile":"+86-18507832160","email":"ycc@hainatravel.com","openId":"K8BNXMf8ESSr1DzLVUrX7wiEiE","accountList":[{"OPI_SN":155,"OPI_Code":"YCC","OPI_NameCN":"尹诚诚","OPI_DEI_SN":1,"OPI_NameEN":"Yin Chengcheng"}]}' // if (window.location.hostname === '202.103.68.93' && window.location.port === '4173' && isEmpty(sessionData)) { // sessionData = `{"userId":"383","userIdStr":"383,609","emailList":[{"opi_sn":383,"mat_sn":760,"email":"lyj@asiahighlights.com","default":false,"backup":false},{"opi_sn":383,"mat_sn":759,"email":"lyj@chinahighlights.com","default":true,"backup":false},{"opi_sn":383,"mat_sn":758,"email":"lyj@hainatravel.com","default":false,"backup":false}],"username":"廖一军","avatarUrl":"https://static-legacy.dingtalk.com/media/lALPBDDrhXr716HNAoDNAoA_640_640.png","mobile":"+86-18777396951","email":"lyj@hainatravel.com","whatsAppBusiness":"8617458471254","openId":"iioljiPmZ4RPoOYpkFiSn7IKAiEiE","accountList":[{"OPI_SN":383,"OPI_Code":"LYJ","OPI_NameCN":"廖一军","OPI_DEI_SN":7,"OPI_NameEN":"Jimmy Liow"},{"OPI_SN":609,"OPI_Code":"LYJAH","OPI_NameCN":"廖一军(ah)","OPI_DEI_SN":28,"OPI_NameEN":"Jimmy Liow"}]}` 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 (