上饶沙盘&江西工贸 行调界面 不展示 chatView

This commit is contained in:
fan 2021-11-12 09:43:16 +08:00
parent f270cbfb3b
commit f5cca2da38
2 changed files with 14 additions and 4 deletions

View File

@ -1,7 +1,7 @@
<template>
<div>
<status-icon v-if="$route.query.lineCode == '11' || $route.query.lineCode == '10'" ref="statusIcon" />
<demon-chat ref="chatbox" :group="group" :user-role="userRole" :offset="offset" />
<demon-chat v-if="!noChatBox" ref="chatbox" :group="group" :user-role="userRole" :offset="offset" />
<div class="display-card" :style="{top: offset+'px'}">
<el-row>
<span v-if="countTime" class="display-score">{{ $t('display.demon.trialTime') }} {{ countTime }}</span>
@ -166,6 +166,9 @@ export default {
},
isDepoltSim() {
return this.$route.query.prdType === '09';
},
noChatBox() {
return !this.project.includes('srsandbox') || !this.project.includes('jxgm');
}
},
watch: {
@ -361,14 +364,18 @@ export default {
}
}
this.userRole = userRole;
this.$refs.chatbox.clearAllData();
if (this.$refs.chatbox) {
this.$refs.chatbox.clearAllData();
}
this.$store.dispatch('training/setPrdType', this.$route.query.prdType);
this.$store.dispatch('training/setRoles', userRole);
this.$store.dispatch('training/setScriptQuit');
// this.$store.dispatch('scriptRecord/updateSimulationPause', false);
},
clearAllData() {
this.$refs.chatbox.clearAllData();
if (this.$refs.chatbox) {
this.$refs.chatbox.clearAllData();
}
},
async back() {
this.isGoback = true;

View File

@ -1,7 +1,7 @@
<template>
<div>
<status-icon v-if="statusIconShow" ref="statusIcon" />
<chat-box v-if="$route.query.type !== 'ILW'" :group="group" :user-role="userRole" />
<chat-box v-if="!noChatBox" :group="group" :user-role="userRole" />
<!-- 地图没有报错-->
<!-- 地图错误判断 -->
<div v-if="!dataError&&hasOneButton" class="display_top_draft" :style="{top: statusIconShow ? offset + 60 + 'px':offset+'px'}">
@ -197,6 +197,9 @@ export default {
},
simulationPaused() {
return this.$store.state.socket.simulationPause;
},
noChatBox() {
return this.$route.query.type === 'ILW' || !this.project.includes('srsandbox') || !this.project.includes('jxgm');
}
},
watch: {