-
+
@@ -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();