优化详情查询

This commit is contained in:
liaozetao
2023-12-22 18:46:12 +08:00
parent 2786838883
commit fd80e00fec

View File

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