Merge branch 'test_dispaly' of https://git.code.tencent.com/lian-cbtc/jl-client into test_dispaly1

This commit is contained in:
fan 2022-12-02 09:54:42 +08:00
commit f02e7e1160

View File

@ -48,7 +48,7 @@ import teleRing from '@/assets/teleRing.mp3';
import ChatSetting from './chatSetting';
import ChatContent from './chatContent';
import RecordRTC from 'recordrtc';
import {sendChatAudioBase64, overSimulationConversition, getAllConversition, acceptConversitionInvite} from '@/api/chat';
import {sendChatAudioBase64, overSimulationConversition, getAllConversition, acceptConversitionInvite, sendChatText} from '@/api/chat';
import { getSessionStorage } from '@/utils/auth';
import { getSimulationMemberList, getAllSimulationUser } from '@/api/simulation';
import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler';
@ -777,14 +777,16 @@ export default {
});
},
sendText() {
// sendChatText(this.group, {content: this.textContent}).then(resp => {
// this.textContent = '';
// }).catch((error) => {
// this.$message.error('' + error.message);
// });
commitOperate(menuOperate.Conversation.Chat, {content: this.textContent}, 3).then(({valid})=>{
if (valid) {
this.textContent = '';
} else {
sendChatText(this.group, {content: this.textContent}).then(resp => {
this.textContent = '';
if (this.$store.state.trainingNew.teachMode != 'TEST_MODE') {
this.$message.warning('发送会话文字不一致,请重新发送!' );
}
});
}
}).catch((error) => {
this.$message.error('发送会话文字失败:' + error.message);