From e72fdcdb78661e4464c009ef241ccd04b8e272a7 Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Wed, 13 May 2020 18:59:28 +0800 Subject: [PATCH 01/44] =?UTF-8?q?=E5=90=88=E5=B9=B6=E5=AF=BC=E8=88=AA?= =?UTF-8?q?=E6=A0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index_Common.js | 117 ++++++++++++++++++++++++------------- 1 file changed, 76 insertions(+), 41 deletions(-) diff --git a/src/router/index_Common.js b/src/router/index_Common.js index 65c58eb54..2034c8ee5 100644 --- a/src/router/index_Common.js +++ b/src/router/index_Common.js @@ -346,43 +346,43 @@ export const asyncRouter = [ } ] }, - { // 个人地图 - path: '/design/userlist', - redirect: '/design/userlist/home', - component: Layout, - meta: { - roles: [admin] - }, - children: [ - { - path: '', - redirect: '/design/userlist/home', - component: DesignPlatformUser, - meta: { - i18n: 'router.designUserPage', - icon: 'design' - }, - children: [ - { - path: 'home', - component: DesignPlatformHome, - meta: { - } - }, - { // 地图 绘制 - path: 'map/draw/:mapId/:view', - component: Mapedit, - hidden: true - }, - { // 运行图设计 - path: 'runPlan/detail/:mapId', - component: PlanMonitorDetail, - hidden: true - } - ] - } - ] - }, + // { // 个人地图 + // path: '/design/userlist', + // redirect: '/design/userlist/home', + // component: Layout, + // meta: { + // roles: [admin] + // }, + // children: [ + // { + // path: '', + // redirect: '/design/userlist/home', + // component: DesignPlatformUser, + // meta: { + // i18n: 'router.designUserPage', + // icon: 'design' + // }, + // children: [ + // { + // path: 'home', + // component: DesignPlatformHome, + // meta: { + // } + // }, + // { // 地图 绘制 + // path: 'map/draw/:mapId/:view', + // component: Mapedit, + // hidden: true + // }, + // { // 运行图设计 + // path: 'runPlan/detail/:mapId', + // component: PlanMonitorDetail, + // hidden: true + // } + // ] + // } + // ] + // }, { // 全屏战场图 path: '/display/:mode', component: Display, @@ -847,15 +847,16 @@ export const asyncRouter = [ ] }, { // 新个人地图 - path: '/design/usermap', - redirect: '/design/usermap/home', + path: '/design', + // redirect: '/design/usermap/home', component: Layout, meta: { + i18n: 'router.newDesignUserPage', roles: [admin, user] }, children: [ { - path: '', + path: 'usermap', redirect: '/design/usermap/home', component: NewDesignPlatformUser, meta: { @@ -866,6 +867,7 @@ export const asyncRouter = [ { path: 'home', component: DesignPlatformHome, + hidden: true, meta: { } } @@ -877,15 +879,48 @@ export const asyncRouter = [ ] }, { // 新地图绘制 - path: 'map/draw/:mapId/:view', + path: 'usermap/map/draw/:mapId/:view', component: NewMapDraft, hidden: true + }, + { + path:'iscs/design', + redirect: '/iscs/design', + component: IscsDesign, + meta: { + i18n: 'router.iscsDraw', + roles: [admin] + }, + children: [ + { + path: 'edit/:id/:mode', + component: IscsDraw, + hidden: true + } + ] + }, + { + path: 'iscs/system', + redirect: '/iscs/system', + component: IscsSystem, + meta: { + i18n: 'router.iscsSystem', + roles: [admin] + }, + children: [ + { + path: 'config/:mode', + component: IscsConfig, + hidden: true + } + ] } ] }, { // iscs系统 path: '/iscs', component: Layout, + hidden: true, meta: { i18n: 'router.iscsSystem', roles: [admin] From 36ca6dc3d1a931ac81805b028387b69aff003484 Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Wed, 13 May 2020 19:31:14 +0800 Subject: [PATCH 02/44] =?UTF-8?q?=E7=BB=BC=E5=90=88=E6=BC=94=E7=BB=83=20?= =?UTF-8?q?=E8=81=8A=E5=A4=A9=E4=BB=A3=E7=A0=81=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/socket.js | 2 +- src/views/newMap/jointTrainingNew/chatBox.vue | 4 +- .../newMap/jointTrainingNew/chatContent.vue | 39 +++--- .../jointTrainingNew/chatCoversitionList.vue | 127 +++++++++++++----- .../jointTrainingNew/chatMemberList.vue | 12 ++ 5 files changed, 132 insertions(+), 52 deletions(-) diff --git a/src/store/modules/socket.js b/src/store/modules/socket.js index f765c9702..1a56e4335 100644 --- a/src/store/modules/socket.js +++ b/src/store/modules/socket.js @@ -151,7 +151,7 @@ function handleSimulationInfo(state, data) { memberOnline:data.member.online, chatTime: data.chatTime, targetOnline:data.targetMember ? data.targetMember.online : null, - targetName:data.targetMember ? data.targetMember.name : 'All', + targetName:data.targetMember ? data.targetMember : 'All', targetRole:data.targetMember ? data.targetMember.role : null, group: data.group, date: +new Date(`${myDate1} ${chatTime}`) diff --git a/src/views/newMap/jointTrainingNew/chatBox.vue b/src/views/newMap/jointTrainingNew/chatBox.vue index 6e184f086..97be499dc 100644 --- a/src/views/newMap/jointTrainingNew/chatBox.vue +++ b/src/views/newMap/jointTrainingNew/chatBox.vue @@ -85,7 +85,8 @@ export default { '$store.state.socket.simulationRoleList': function (val) { if (val && val.length) { this.$nextTick(() => { - debugger; + this.$refs.chatMemberList.setMemberStatus(val); + this.$refs.chatCoversitionList.setCoversitionStatus(val); }); } } @@ -116,6 +117,7 @@ export default { addCoversition({data, headerTitle}) { this.$refs.chatCoversitionList.addCoversition(data); this.currentCoversition = {id:data.id, group:data.group}; + this.$refs.chatCoversitionList.setCurrentCoversition(this.currentCoversition); this.headerTitle = headerTitle; }, // 语音录制开始 diff --git a/src/views/newMap/jointTrainingNew/chatContent.vue b/src/views/newMap/jointTrainingNew/chatContent.vue index d5ad57611..e09b49033 100644 --- a/src/views/newMap/jointTrainingNew/chatContent.vue +++ b/src/views/newMap/jointTrainingNew/chatContent.vue @@ -3,12 +3,12 @@
-
{{ handle(chatContent) }}
+
{{ covertName(chatContent.member) }}
{{ formatTime(chatContent.chatTime) }}
- @{{ chatContent.targetName }} + @{{ covertName(chatContent.targetName) }} {{ chatContent.message }}
@@ -54,9 +49,7 @@ import MapSystemDraft from '@/views/newMap/mapsystemNew/index'; import MenuDemon from '@/views/newMap/displayNew/menuDemon'; import MenuSchema from '@/views/newMap/displayNew/menuSchema'; import MenuSystemTime from '@/views/newMap/displayNew/menuSystemTime'; -import MenuScript from '@/views/newMap/displayNew/menuScript'; import AddQuest from './demon/addQuest'; -import Scheduling from './demon/scheduling'; import { mapGetters } from 'vuex'; import { setGoodsTryUse } from '@/api/management/goods'; import { clearSimulation, getSimulationInfoNew } from '@/api/simulation'; @@ -80,12 +73,10 @@ export default { AddQuest, MapSystemDraft, MenuDemon, - MenuScript, MenuSchema, MenuSystemTime, - // Jl3dSimulation, - Jl3dDrive, - Scheduling + Jl3dDrive + // Scheduling }, props: { size: { @@ -119,8 +110,7 @@ export default { '04': '02', // 司机 => 行调 '05': '' // 派班 => null }, - isDrive: this.prdType == '04', - isShowScheduling: this.prdType == '05' + isDrive: this.prdType == '04' }; }, computed: { @@ -146,9 +136,6 @@ export default { right() { return this.$store.state.config.width / 2 - 55; }, - trainingId() { - return this.$route.query.trainingId; - }, mapId() { return this.$route.query.mapId; }, @@ -156,24 +143,12 @@ export default { // return this.$route.query.prdType; return this.$store.state.training.prdType; }, - skinCode() { - return this.$route.query.skinCode; - }, - isLesson() { - return this.mode === 'teach' || this.mode === 'manage'; - }, isDemon() { return this.mode === 'demon'; - }, - isScript() { - return this.mode === 'script'; } // isDrive() { // return this.prdType == '04'; // }, - // isShowScheduling() { - // return this.prdType == '05'; - // } }, watch: { '$store.state.config.menuBarLoadedCount': function (val) { @@ -183,19 +158,12 @@ export default { this.mapBoxP = document.getElementById(this.canvasId).children[0]; this.mapBoxP.style.cursor = ''; }, - '$store.state.training.prdType': function(val) { - // this.prdType=val; - this.isDrive = (val == '04'); - this.isShowScheduling = (val == '05'); - }, - '$store.state.socket.permissionOver': function () { - this.$alert('用户权限已被收回', '提示', { - confirmButtonText: '确定', - callback: action => { - this.back(); - } - }); - }, + // '$store.state.training.prdType': function(val) { + // debugger; + // // this.prdType=val; + // this.isDrive = (val == '04'); + // this.isShowScheduling = (val == '05'); + // }, '$store.state.app.windowSizeCount': function() { this.setWindowSize(); }, @@ -322,8 +290,6 @@ export default { await this.loadSimulationInfo(); if (this.isDemon) { await this.initLoadDemonData(); - } else if (this.isScript) { - await this.initLoadTaskData(); } this.checkLoginLineTimer(); this.checkMouseStatusTimer(); @@ -344,18 +310,6 @@ export default { this.endViewLoading(); } }, - // 任务录制系统 - async initLoadTaskData() { - this.$store.dispatch('training/end', TrainingMode.NORMAL); - this.$store.dispatch('training/changeOperateMode', { mode: OperateMode.NORMAL }); // 默认为正常模式 - this.switchMode('01'); - - if (this.group) { - await this.loadNewMapDataByGroup(this.group); - } else { - this.endViewLoading(); - } - }, // 加载剧本 async runQuestLoadShow() { this.$refs.addQuest.doShow(); @@ -435,12 +389,8 @@ export default { }, // 仿真错误时,被动退出时调用 async back() { - if (this.isLesson) { - await this.$refs.lessonMenu.back(); - } else if (this.isDemon) { + if (this.isDemon) { await this.$refs.menuDemon.back(); - } else if (this.isScript) { - await this.$refs.menuScript.back(); } }, // 设置使用时间 @@ -491,9 +441,7 @@ export default { this.$nextTick(() => { const width = this.size ? this.size.width : this.width; const height = this.size ? this.size.height : this.height; - this.$store.dispatch('config/resize', { width, height }); - this.$store.dispatch('training/updateOffsetStationCode', { offsetStationCode: this.offsetStationCode }); }); } diff --git a/src/views/newMap/displayNew/menuDemon.vue b/src/views/newMap/displayNew/menuDemon.vue index 2220e3349..bac94f7e6 100644 --- a/src/views/newMap/displayNew/menuDemon.vue +++ b/src/views/newMap/displayNew/menuDemon.vue @@ -1,5 +1,6 @@