From cfdf1a18c2568bf38e8c5449ffdd0e190596d66e Mon Sep 17 00:00:00 2001 From: liaozetao <1107136310@qq.com> Date: Fri, 22 Dec 2023 18:46:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=AF=A6=E6=83=85=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/msg/UserChatMsgRecordView.vue | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/views/msg/UserChatMsgRecordView.vue b/src/views/msg/UserChatMsgRecordView.vue index aec6b07..2d7b630 100644 --- a/src/views/msg/UserChatMsgRecordView.vue +++ b/src/views/msg/UserChatMsgRecordView.vue @@ -191,9 +191,6 @@ export default { var toUid = currentData.toUid; $('#fromUid').val(fromUid); $('#toUid').val(toUid); - let firstTouchTime = ''; - let isInitiative = 0; - let chatMsgNum = 0; $.ajax({ type: "get", url: "/admin/userChatMsgRecord/getDetail", @@ -204,18 +201,17 @@ export default { startTime: $('#startTime').val(), endTime: $('#endTime').val(), }, - async: false, success: function (json) { apiResult(json); let data = json.data; if (data) { - firstTouchTime = data.firstTouchTime; - isInitiative = data.isInitiative; - chatMsgNum = data.chatMsgNum; + let firstTouchTime = data.firstTouchTime; + let isInitiative = data.isInitiative; + let chatMsgNum = data.chatMsgNum; + $('#modalLabel').html(fromNick + '(' + fromErBanNo + ')与' + toNick + '(' + toErBanNo + ')的聊天记录 首次接触时间:' + firstTouchTime + ' 首次接触情况:' + (isInitiative ? '被动回复' : '主动发起') + ' 聊天条目数:' + chatMsgNum); } } }); - $('#modalLabel').html(fromNick + '(' + fromErBanNo + ')与' + toNick + '(' + toErBanNo + ')的聊天记录 首次接触时间:' + firstTouchTime + ' 首次接触情况:' + (isInitiative ? '被动回复' : '主动发起') + ' 聊天条目数:' + chatMsgNum); $('#detailTable').bootstrapTable('destroy'); $('#detailTable').bootstrapTable({ columns: [