diff --git a/src/store/modules/map.js b/src/store/modules/map.js index c9b17c3c1..e2313a954 100644 --- a/src/store/modules/map.js +++ b/src/store/modules/map.js @@ -750,10 +750,12 @@ const map = { setActiveTrainList:(state) => { state.activeTrainListUpdate++; }, - resetActiveTrainList:(state) => { + resetActiveTrainList:(state, isBack) => { state.activeTrainList = []; - state.activeTrainListUpdate = 0; - state.activeTrainListChange = 0; + if (!isBack) { + state.activeTrainListUpdate = 0; + state.activeTrainListChange = 0; + } }, setDeleteCount: (state) => { state.deleteCount++; @@ -1047,8 +1049,8 @@ const map = { setActiveTrainList: ({ commit }) => { commit('setActiveTrainList'); }, - resetActiveTrainList: ({ commit }) => { - commit('resetActiveTrainList'); + resetActiveTrainList: ({ commit }, isBack) => { + commit('resetActiveTrainList', isBack); }, setUpdateCount: ({ commit }) => { commit('setUpdateCount'); diff --git a/src/store/modules/socket.js b/src/store/modules/socket.js index 4676cbcf3..85bd84fe7 100644 --- a/src/store/modules/socket.js +++ b/src/store/modules/socket.js @@ -26,8 +26,11 @@ function handle(state, data) { case 'Simulation_User': // 仿真-进出仿真消息 handleSimulationUserinfo(state, msg); // 用户进出仿真消息 break; - case 'Simulation_Script_Tip': // 仿真-聊天界面用户进出仿真消息 - handleSimulationScriptTipInfo(state, msg); // 用户进出仿真消息 + case 'Simulation_Script_Action_Tip': // 剧本提示消息 + handleSimulationScriptTipInfo(state, msg); // 剧本提示消息 + break; + case 'Simulation_Script_Action_Finish': + state.simulationScriptTipFinish++; // 剧本某一部操作完成提示 break; case 'Simulation_PlayBack_Finish': // 竞赛裁判系统裁判员回放结束推送 state.playBackFinish++; // 竞赛裁判系统裁判员回放结束推送 @@ -208,6 +211,7 @@ const socket = { roleList: [], // 设置角色信息 simulationRoleList:[], // 设置仿真的聊天角色信息 simulationScriptTip:{}, // 剧本推送提示信息 + simulationScriptTipFinish:0, // 剧本某一步完成的消息 scriptFinish:0, // 剧本执行完成提示信息 autoFaultTrigger:0, // 自动故障触发操作推送消息 scriptAction:{}, // 剧本编制添加指令的推送消息 diff --git a/src/views/newMap/chatView/chatBox.vue b/src/views/newMap/chatView/chatBox.vue index 9b417ae8a..a4c5813ae 100644 --- a/src/views/newMap/chatView/chatBox.vue +++ b/src/views/newMap/chatView/chatBox.vue @@ -50,13 +50,11 @@
{{ userString }}
创建会话 -
{{ scriptTip }}
@@ -105,10 +103,6 @@ export default { type:Array, required: true }, - scriptTip:{ - type:String, - required:true - }, isStartRecord:{ type:Boolean, required:true @@ -185,7 +179,6 @@ export default { }, // 语音录制开始 startRecording() { - this.$emit('setScriptTip', ''); const that = this; if (!this.recordSending && !this.recorders && !this.microphone) { this.$refs.chatSetting.doClose(); @@ -454,30 +447,6 @@ export default { cursor: no-drop; } -.scriptTip{ - position: absolute; - width: 260px; - padding: 10px; - background: rgb(250, 246, 3); - right: 7px; - bottom:45px; - border-radius: 5px; - font-size: 14px; - color: #000000; - z-index: 2; -} -.scriptTip::after{ - content: ''; - position: absolute; - width: 0; - height: 0; - border-left: 10px solid transparent; - border-right: 10px solid transparent; - border-top: 8px solid #faf603; - right: 16px; - bottom: -7px; -} - .userString{ height: 50px; width: 409px; diff --git a/src/views/newMap/displayNew/demon/addQuest.vue b/src/views/newMap/displayNew/demon/addQuest.vue index 73139caac..342f4430c 100644 --- a/src/views/newMap/displayNew/demon/addQuest.vue +++ b/src/views/newMap/displayNew/demon/addQuest.vue @@ -53,7 +53,7 @@ + diff --git a/src/views/newMap/displayNew/selectRole.vue b/src/views/newMap/displayNew/selectRole.vue new file mode 100644 index 000000000..faedc8a31 --- /dev/null +++ b/src/views/newMap/displayNew/selectRole.vue @@ -0,0 +1,68 @@ + + diff --git a/src/views/newMap/jointTrainingNew/menuDemon.vue b/src/views/newMap/jointTrainingNew/menuDemon.vue index 31ac301bc..ba3d9d1ba 100644 --- a/src/views/newMap/jointTrainingNew/menuDemon.vue +++ b/src/views/newMap/jointTrainingNew/menuDemon.vue @@ -215,7 +215,7 @@ export default { this.$store.dispatch('training/setSimulationUserList', []); this.$store.dispatch('training/over').then(() => { this.backLoading = true; - this.$store.dispatch('map/resetActiveTrainList'); + this.$store.dispatch('map/resetActiveTrainList', true); if (this.$route.query.projectDevice) { this.$store.dispatch('LogOut').then(() => { location.reload(); @@ -323,11 +323,11 @@ export default { this.isDisable = false; exitRunPlan(this.group).then(()=>{ this.$store.dispatch('map/setTrainWindowShow', false); - this.$store.dispatch('map/resetActiveTrainList'); + this.$store.dispatch('map/resetActiveTrainList', false); }).catch(() => { this.$store.dispatch('training/over').then(() => { this.isDisable = true; - this.$store.dispatch('map/resetActiveTrainList'); + this.$store.dispatch('map/resetActiveTrainList', false); this.$messageBox(this.$t('error.endSimulationFailed')); }); }); @@ -344,7 +344,7 @@ export default { this.$store.dispatch('training/setSimulationUserList', []); this.$store.dispatch('training/over').then(() => { this.backLoading = true; - this.$store.dispatch('map/resetActiveTrainList'); + this.$store.dispatch('map/resetActiveTrainList', true); if (this.$route.query.projectDevice) { this.$store.dispatch('LogOut').then(() => { location.reload(); diff --git a/src/views/scriptManage/tipScriptRecord.vue b/src/views/scriptManage/tipScriptRecord.vue index 16db3365f..e10c3c736 100644 --- a/src/views/scriptManage/tipScriptRecord.vue +++ b/src/views/scriptManage/tipScriptRecord.vue @@ -107,7 +107,7 @@ export default { beforeDestroy() { // this.clearAutoSave(); this.$store.dispatch('training/setMemberList', {memberList:[], userId:this.$store.state.user.id}); - this.$store.dispatch('map/resetActiveTrainList'); + this.$store.dispatch('map/resetActiveTrainList', true); this.$store.dispatch('scriptRecord/updateBgSet', false); this.$store.dispatch('scriptRecord/updateRole', null); },