diff --git a/src/views/jsxt/refereeList/menuReplay.vue b/src/views/jsxt/refereeList/menuReplay.vue index bbec85e7e..ac52d9992 100644 --- a/src/views/jsxt/refereeList/menuReplay.vue +++ b/src/views/jsxt/refereeList/menuReplay.vue @@ -71,10 +71,10 @@ export default { } }, beforeDestroy() { - if (this.isPlaying) { - endPlaying({}).then(res=>{ - }); - } + // if (this.isPlaying) { + endPlaying({}).then(res=>{ + }); + // } }, methods:{ back() { diff --git a/src/views/newMap/jointTrainingNew/chatView/chatBox.vue b/src/views/newMap/jointTrainingNew/chatView/chatBox.vue index 3ce1aeedd..ae42ab8a1 100644 --- a/src/views/newMap/jointTrainingNew/chatView/chatBox.vue +++ b/src/views/newMap/jointTrainingNew/chatView/chatBox.vue @@ -2,7 +2,7 @@
- +
@@ -19,7 +19,7 @@
- +
@@ -56,6 +56,7 @@ import ChatCreateGroup from './chatCreateGroup'; import ChatTooltip from './chatTooltip'; import RecordRTC from 'recordrtc'; import {uploadAudioFileNew, quitCoversition} from '@/api/chat'; +import { getSessionStorage } from '@/utils/auth'; export default { name: 'ChatBox', components:{ @@ -101,6 +102,9 @@ export default { }, isButtonShow() { return this.userRole != 'ADMIN' && this.userRole != 'AUDIENCE' && this.isHasCoversition; + }, + project() { + return getSessionStorage('project'); } }, watch:{ diff --git a/src/views/newMap/jointTrainingNew/chatView/chatContent.vue b/src/views/newMap/jointTrainingNew/chatView/chatContent.vue index e793b2ed1..6b7fbe617 100644 --- a/src/views/newMap/jointTrainingNew/chatView/chatContent.vue +++ b/src/views/newMap/jointTrainingNew/chatView/chatContent.vue @@ -26,11 +26,16 @@ import {getSimulationContextListNew} from '@/api/chat'; import ConstConfig from '@/scripts/ConstConfig'; import Cookies from 'js-cookie'; + export default { props:{ currentCoversition:{ type:Object, required:true + }, + project:{ + type:String, + required:true } }, data() { @@ -73,7 +78,12 @@ export default { this.playAllAudio(); } } - + } else { + if (this.project == 'refereeJsxt') { + this.chatContentList.push(simulationText); + simulationText.name = '所有人'; + this.$emit('changeCoversition', simulationText); + } } } }, @@ -81,7 +91,7 @@ export default { this.inintData(); }, currentCoversition:function (val, old) { - if (val) { + if (val && this.project != 'refereeJsxt') { this.chatContentList = []; this.coversition = this.currentCoversition; this.inintData();