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: [