|
|
@ -137,12 +137,12 @@
|
|
|
|
const opts = computed(() => store.state.chat.opts);
|
|
|
|
const opts = computed(() => store.state.chat.opts);
|
|
|
|
|
|
|
|
|
|
|
|
// 统计
|
|
|
|
// 统计
|
|
|
|
const summaryVisible = ref(true);
|
|
|
|
const summaryVisible = ref(false);
|
|
|
|
const summary = ref({
|
|
|
|
const summary = ref({
|
|
|
|
historyTimes: 96,
|
|
|
|
historyTimes: 0,
|
|
|
|
historyCount: 88,
|
|
|
|
historyCount: 0,
|
|
|
|
todayTimes: 10,
|
|
|
|
todayTimes: 0,
|
|
|
|
todayCount: 8,
|
|
|
|
todayCount: 0,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
// 会话
|
|
|
|
// 会话
|
|
|
@ -157,7 +157,7 @@
|
|
|
|
const handleChangeSession = (id) => {
|
|
|
|
const handleChangeSession = (id) => {
|
|
|
|
store.commit('chat/setCurrentSession', id);
|
|
|
|
store.commit('chat/setCurrentSession', id);
|
|
|
|
store.dispatch('chat/querySessionMessage');
|
|
|
|
store.dispatch('chat/querySessionMessage');
|
|
|
|
handleReadMessage();
|
|
|
|
store.dispatch('chat/submitRead');
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// 聊天
|
|
|
|
// 聊天
|
|
|
@ -176,9 +176,6 @@
|
|
|
|
proxy.$message.warning('发送消息不能为空');
|
|
|
|
proxy.$message.warning('发送消息不能为空');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
const handleReadMessage = () => {
|
|
|
|
|
|
|
|
store.dispatch('chat/submitRead');
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 转移会话
|
|
|
|
// 转移会话
|
|
|
|
const transferVisible = ref(false);
|
|
|
|
const transferVisible = ref(false);
|
|
|
|