diff --git a/src/jlmap3d/jl3dmaintainer/Jl3dfaultdevicevr.js b/src/jlmap3d/jl3dmaintainer/Jl3dfaultdevicevr.js index 752802d95..94fd6dd97 100644 --- a/src/jlmap3d/jl3dmaintainer/Jl3dfaultdevicevr.js +++ b/src/jlmap3d/jl3dmaintainer/Jl3dfaultdevicevr.js @@ -556,7 +556,7 @@ export function Jl3dfaultdeviceVR(dom,group,skinCode) { // let netDataAssets = JSON.parse(netdata.data.assets); // setpsdstationmap(JSON.parse(netdata.data.stands)); scope.modelmanager.loadpromise(mixers).then(function (data) { - switchModel = scope.modelmanager.otherDevice.mesh.getObjectByName("SWITCH"); + switchModel = scope.modelmanager.otherDevice.mesh.getObjectByName("SWITCH1"); moveanima.initlistnew(switchModel); scope.devicetext.initdevicetext(switchModel); @@ -891,6 +891,7 @@ export function Jl3dfaultdeviceVR(dom,group,skinCode) { if(navMesh){ scope.scene.remove( navMesh ); } + if(navStatus){ navStatus = false; }else{ @@ -899,7 +900,8 @@ export function Jl3dfaultdeviceVR(dom,group,skinCode) { let startPoint = new THREE.Vector3(human.position.x,human.position.y-0.6,human.position.z); pathPoints.push(new THREE.Vector3(human.position.x,human.position.y,human.position.z)); groupID = pathFinder.getGroup( ZONE, startPoint ); - targetPosition = new THREE.Vector3(switchModel.matrixWorld.elements[12],-5.596,switchModel.matrixWorld.elements[14]); + targetPosition = new THREE.Vector3(switchModel.matrixWorld.elements[12],switchModel.matrixWorld.elements[13],switchModel.matrixWorld.elements[14]); + // // console.log(pathPoints[0]); // console.log(targetPosition); @@ -1211,6 +1213,7 @@ export function Jl3dfaultdeviceVR(dom,group,skinCode) { }; this.updateaction = function (data) { + console.log(data); if (data.type == "SWITCH") { if (data.normal == "0") { scope.modelmanager.otherDevice.normalPosition = "0"; diff --git a/src/jlmap3d/jl3dmaintainer/maintainerconnect.js b/src/jlmap3d/jl3dmaintainer/maintainerconnect.js index 357197b98..260a3c572 100644 --- a/src/jlmap3d/jl3dmaintainer/maintainerconnect.js +++ b/src/jlmap3d/jl3dmaintainer/maintainerconnect.js @@ -212,6 +212,10 @@ export function Maintainerconnect(jlmap3d,routegroup,jsonwebwork,lablecodemap) { initall(event.data.body); return; } + if (event.data.type == 'Simulation_Over') { + window.close(); + return; + } }; this.updatamap = function(newsectionlist,newlinklist,newsignallist,newstationstandlist,newtrainlisttest,newrealsectionlist,newrails, materiallist, nowaction, scene) { diff --git a/src/jlmap3d/jl3dmaintainer/utils/moveanimatevr.js b/src/jlmap3d/jl3dmaintainer/utils/moveanimatevr.js index 9a07b43d5..0b37788e9 100644 --- a/src/jlmap3d/jl3dmaintainer/utils/moveanimatevr.js +++ b/src/jlmap3d/jl3dmaintainer/utils/moveanimatevr.js @@ -20,7 +20,7 @@ export function MoveanimateVr(main){ scope.animatelist[switchmodel.animacode+"chaijie"] = []; scope.animatelist[switchmodel.animacode+"fuwei"] = []; for(let i=0,leni=switchmodel.children.length;i { diff --git a/src/jmapNew/theme/fuzhou_01/menus/menuDialog/viewName.vue b/src/jmapNew/theme/fuzhou_01/menus/menuDialog/viewName.vue index 376499f25..a063d149c 100644 --- a/src/jmapNew/theme/fuzhou_01/menus/menuDialog/viewName.vue +++ b/src/jmapNew/theme/fuzhou_01/menus/menuDialog/viewName.vue @@ -200,19 +200,17 @@ export default { // if (elem.switchSection && elem.parentCode) { // // 道岔轨的区段名称默认不显示 // nameShow = false; - if (elem.type != '03') { + if (elem.type == '03') { nameShow = false; - } else { - if (elem.type === '01') { + } else if (elem.type === '01') { // 计轴区段名称 - nameShow = this.nameLevels.indexOf(11) !== -1; - } else if (elem.type === '02') { + nameShow = this.nameLevels.indexOf(11) !== -1; + } else if (elem.type === '02') { // 轨道轨名称 - nameShow = this.nameLevels.indexOf(5) !== -1; - } else if (elem.type === '04') { + nameShow = this.nameLevels.indexOf(5) !== -1; + } else if (elem.type === '04') { // 道岔区段名称 - nameShow = this.nameLevels.indexOf(9) !== -1; - } + nameShow = this.nameLevels.indexOf(9) !== -1; } // 站台轨名称 diff --git a/src/jmapNew/theme/fuzhou_01/menus/menuSwitch.vue b/src/jmapNew/theme/fuzhou_01/menus/menuSwitch.vue index 74b305935..054249a77 100644 --- a/src/jmapNew/theme/fuzhou_01/menus/menuSwitch.vue +++ b/src/jmapNew/theme/fuzhou_01/menus/menuSwitch.vue @@ -50,37 +50,37 @@ export default { menuNormal: { Local: [ { - label: this.$t('menu.menuSwitch.switchLock'), + label: '道岔单锁', handler: this.lock, cmdType:CMD.Switch.CMD_SWITCH_SINGLE_LOCK }, { - label: this.$t('menu.menuSwitch.switchUnlock'), + label: '道岔单解', handler: this.unlock, cmdType:CMD.Switch.CMD_SWITCH_SINGLE_UNLOCK }, { - label: this.$t('menu.menuSwitch.switchSectionBlockade'), + label: '道岔封锁', handler: this.block, cmdType:CMD.Switch.CMD_SWITCH_BLOCK }, { - label: this.$t('menu.menuSwitch.switchSectionUnblock'), + label: '道岔解封', handler: this.unblock, cmdType:CMD.Switch.CMD_SWITCH_UNBLOCK }, { - label: this.$t('menu.menuSwitch.switchTurnout'), + label: '道岔转动', handler: this.switchTurnout, cmdType:CMD.Switch.CMD_SWITCH_TURN }, { - label: this.$t('menu.menuSwitch.switchSectionFaultUnlock'), + label: '道岔故障解锁', handler: this.fault, cmdType:CMD.Switch.CMD_SWITCH_FAULT_UNLOCK }, { - label: this.$t('menu.menuSwitch.switchSectionAxisPreReset'), + label: '道岔计轴预复位', handler: this.axlePreReset, cmdType:CMD.Switch.CMD_SWITCH_AXIS_PRE_RESET }, @@ -107,32 +107,32 @@ export default { ], Center: [ { - label: this.$t('menu.menuSwitch.switchLock'), + label: '道岔单锁', handler: this.lock, cmdType:CMD.Switch.CMD_SWITCH_SINGLE_LOCK }, { - label: this.$t('menu.menuSwitch.switchUnlock'), + label: '道岔单解', handler: this.unlock, cmdType:CMD.Switch.CMD_SWITCH_SINGLE_UNLOCK }, { - label: this.$t('menu.menuSwitch.switchSectionBlockade'), + label: '道岔封锁', handler: this.block, cmdType:CMD.Switch.CMD_SWITCH_BLOCK }, { - label: this.$t('menu.menuSwitch.switchSectionUnblock'), + label: '道岔解封', handler: this.unblock, cmdType:CMD.Switch.CMD_SWITCH_UNBLOCK }, { - label: this.$t('menu.menuSwitch.switchTurnout'), + label: '道岔转动', handler: this.switchTurnout, cmdType:CMD.Switch.CMD_SWITCH_TURN }, { - label: this.$t('menu.menuSwitch.switchSectionFaultUnlock'), + label: '道岔故障解锁', handler: this.fault, cmdType:CMD.Switch.CMD_SWITCH_FAULT_UNLOCK }, diff --git a/src/jmapNew/theme/fuzhou_01/operationConfig.js b/src/jmapNew/theme/fuzhou_01/operationConfig.js index d8d1c955a..07ec74985 100644 --- a/src/jmapNew/theme/fuzhou_01/operationConfig.js +++ b/src/jmapNew/theme/fuzhou_01/operationConfig.js @@ -481,31 +481,31 @@ export default { { deviceType: '02', orderNum: 5, operateCode: '001', tip: '鼠标左键点击【关闭】按钮' } ] }, - { // 未生成实训 + { maxDuration: 15, minDuration: 8, - operateType: 'Switch_Section_Block', + operateType: 'Switch_Block', skinCode: '02', - trainingName: '道岔区段封闭({7})', - trainingRemark: '道岔区段封闭功能', + trainingName: '道岔封闭({7})', + trainingRemark: '道岔封闭功能', trainingType: 'Switch', productTypes: ['01', '02'], stepVOList: [ - { deviceType: '02', orderNum: 1, operateCode: '105', tip: '鼠标右键菜单选择【道岔区段封闭】' }, + { deviceType: '02', orderNum: 1, operateCode: '105', tip: '鼠标右键菜单选择【道岔封闭】' }, { deviceType: '02', orderNum: 2, operateCode: '105', tip: '鼠标左键点击【确定】按钮' } ] }, - { // 未生成实训 + { maxDuration: 15, minDuration: 8, - operateType: 'Switch_Section_Unblock', + operateType: 'Switch_Unblock', skinCode: '02', - trainingName: '道岔区段解封({7})', - trainingRemark: '道岔区段解封功能', + trainingName: '道岔解封({7})', + trainingRemark: '道岔解封功能', trainingType: 'Switch', productTypes: ['01', '02'], stepVOList: [ - { deviceType: '02', orderNum: 1, operateCode: '106', tip: '鼠标右键菜单选择【道岔区段解封】' }, + { deviceType: '02', orderNum: 1, operateCode: '106', tip: '鼠标右键菜单选择【道岔解封】' }, { deviceType: '02', orderNum: 2, operateCode: '1061', tip: '鼠标左键点击【下达】按钮' }, { deviceType: '02', orderNum: 3, operateCode: '1063', tip: '鼠标左键点击【确认1】按钮' }, { deviceType: '02', orderNum: 4, operateCode: '1064', tip: '鼠标左键点击【确认2】按钮' }, @@ -548,12 +548,12 @@ export default { minDuration: 8, operateType: 'Switch_Axis_Pre_Reset', skinCode: '02', - trainingName: '道岔区段计轴预复位({7})', - trainingRemark: '道岔区段计轴预复位功能', + trainingName: '道岔计轴预复位({7})', + trainingRemark: '道岔计轴预复位功能', trainingType: 'Switch', productTypes: ['01'], stepVOList: [ - { deviceType: '02', orderNum: 1, operateCode: '110', tip: '鼠标右键菜单选择【道岔区段计轴预复位】' }, + { deviceType: '02', orderNum: 1, operateCode: '110', tip: '鼠标右键菜单选择【道岔计轴预复位】' }, { deviceType: '02', orderNum: 2, operateCode: '1101', tip: '鼠标左键点击【下达】按钮' }, { deviceType: '02', orderNum: 3, operateCode: '1103', tip: '鼠标左键点击【确认1】按钮' }, { deviceType: '02', orderNum: 4, operateCode: '1104', tip: '鼠标左键点击【确认2】按钮' }, @@ -593,8 +593,8 @@ export default { minDuration: 8, operateType: 'Switch_Set_Limit_Speed', skinCode: '02', - trainingName: '道岔区段设置限速({7})', - trainingRemark: '道岔区段设置限速功能(限速值:5)', + trainingName: '道岔设置限速({7})', + trainingRemark: '道岔设置限速功能(限速值:5)', trainingType: 'Switch', productTypes: ['01', '02'], stepVOList: [ @@ -612,8 +612,8 @@ export default { minDuration: 8, operateType: 'Switch_Cancel_Limit_Speed', skinCode: '02', - trainingName: '道岔区段取消限速({7})', - trainingRemark: '道岔区段取消限速功能', + trainingName: '道岔取消限速({7})', + trainingRemark: '道岔取消限速功能', trainingType: 'Switch', productTypes: ['01', '02'], stepVOList: [ diff --git a/src/jmapNew/theme/haerbin_01/menus/menuButton.vue b/src/jmapNew/theme/haerbin_01/menus/menuButton.vue index 6cc0bd8c2..cc8e72e7c 100644 --- a/src/jmapNew/theme/haerbin_01/menus/menuButton.vue +++ b/src/jmapNew/theme/haerbin_01/menus/menuButton.vue @@ -249,6 +249,7 @@ export default { }, handleSwicthMenu() { // 转换底部道岔菜单栏 // 获取道岔相关区段显示高亮 + this.clearAllMenuShow(); const section = this.$store.getters['map/getDeviceByCode'](this.selectedObj.sectionParentCode); const sectionA = this.$store.getters['map/getDeviceByCode'](this.selectedObj.sectionACode); // 获取道岔相关的道岔计轴区段 const sectionB = this.$store.getters['map/getDeviceByCode'](this.selectedObj.sectionBCode); @@ -274,6 +275,7 @@ export default { }; }, handleSingalMenu() { + this.clearAllMenuShow(); this.deviceHighLight(this.oldDevice, false); this.deviceHighLight(this.selectedObj, true); this.oldDevice = this.selectedObj; @@ -351,6 +353,7 @@ export default { } }, handleSectionMenu() { + this.clearAllMenuShow(); this.deviceHighLight(this.oldDevice, false); this.deviceHighLight(this.selectedObj, true); this.oldDevice = this.selectedObj; @@ -386,6 +389,7 @@ export default { }; }, handleStationMenu() { + this.clearAllMenuShow(); this.centralizedStationList = new Array(15).fill({}); this.stationParamList.forEach((station, index) => { this.centralizedStationList[index] = station; @@ -398,6 +402,7 @@ export default { this.param = { stationCode: this.selectedObj.code }; }, handleStandMenu() { + this.clearAllMenuShow(); this.centralizedStationList = new Array(15).fill({}); this.standParamList.forEach((stand, index) => { this.centralizedStationList[index] = stand; diff --git a/src/jmapNew/theme/haerbin_01/operationConfig.js b/src/jmapNew/theme/haerbin_01/operationConfig.js index b5c754c57..cd02cf65a 100644 --- a/src/jmapNew/theme/haerbin_01/operationConfig.js +++ b/src/jmapNew/theme/haerbin_01/operationConfig.js @@ -931,7 +931,7 @@ export default { minDuration: 8, operateType: 'Station_Close_AllSignal', skinCode: '07', - trainingName: '关站信号({10})', + trainingName: '关站信号({26})', trainingRemark: '关站信号', trainingType: 'Station', productTypes: ['01'], @@ -946,7 +946,7 @@ export default { minDuration: 8, operateType: 'Station_Set_CI_Auto_Trigger', skinCode: '07', - trainingName: '追踪全开({10})', + trainingName: '追踪全开({26})', trainingRemark: '追踪全开', trainingType: 'Station', productTypes: ['02'], @@ -961,7 +961,7 @@ export default { minDuration: 8, operateType: 'Station_Cancel_CI_Auto_Trigger', skinCode: '07', - trainingName: '追踪全关({10})', + trainingName: '追踪全关({26})', trainingRemark: '追踪全关', trainingType: 'Station', productTypes: ['02'], @@ -976,7 +976,7 @@ export default { minDuration: 8, operateType: 'Station_Open_Auto_Setting', skinCode: '07', - trainingName: '自排全开({10})', + trainingName: '自排全开({26})', trainingRemark: '自排全开', trainingType: 'Station', productTypes: ['02'], @@ -991,7 +991,7 @@ export default { minDuration: 8, operateType: 'Station_Close_Auto_Setting', skinCode: '07', - trainingName: '自排全关({10})', + trainingName: '自排全关({26})', trainingRemark: '自排全关', trainingType: 'Station', productTypes: ['02'], @@ -1006,7 +1006,7 @@ export default { minDuration: 8, operateType: 'Station_CIArea_Close_AllSignal', skinCode: '07', - trainingName: '关区信号({10})', + trainingName: '关区信号({26})', trainingRemark: '关区信号', trainingType: 'Station', productTypes: ['02'], diff --git a/src/jmapNew/theme/ningbo_03/menus/menuDialog/routeCommand.vue b/src/jmapNew/theme/ningbo_03/menus/menuDialog/routeCommand.vue index 145666c50..47599d7bb 100644 --- a/src/jmapNew/theme/ningbo_03/menus/menuDialog/routeCommand.vue +++ b/src/jmapNew/theme/ningbo_03/menus/menuDialog/routeCommand.vue @@ -23,22 +23,25 @@ - 用户管理 - 配置管理 - 角色管理 + 设置进路 + 取消进路 + 禁止进路 - + 确定(O) - + 应用(A) - + 关闭(C) + + 帮助(H) + diff --git a/src/jmapNew/theme/xian_01/menus/menuDialog/viewName.vue b/src/jmapNew/theme/xian_01/menus/menuDialog/viewName.vue index 9031bae96..255a184e8 100644 --- a/src/jmapNew/theme/xian_01/menus/menuDialog/viewName.vue +++ b/src/jmapNew/theme/xian_01/menus/menuDialog/viewName.vue @@ -204,17 +204,15 @@ export default { // nameShow = false; if (elem.type == '03') { nameShow = false; - } else { - if (elem.type === '01') { + } else if (elem.type == '01') { // 计轴区段名称 - nameShow = this.nameLevels.indexOf(11) !== -1; - } else if (elem.type === '02') { + nameShow = this.nameLevels.indexOf(11) !== -1; + } else if (elem.type == '02') { // 轨道轨名称 - nameShow = this.nameLevels.indexOf(5) !== -1; - } else if (elem.type === '04') { + nameShow = this.nameLevels.indexOf(5) !== -1; + } else if (elem.type == '04') { // 道岔区段名称 - nameShow = this.nameLevels.indexOf(9) !== -1; - } + nameShow = this.nameLevels.indexOf(9) !== -1; } // 站台轨名称 diff --git a/src/store/modules/training.js b/src/store/modules/training.js index 88fdb0247..554df291d 100644 --- a/src/store/modules/training.js +++ b/src/store/modules/training.js @@ -40,7 +40,6 @@ const training = { memberList: [], // 综合仿真成员列表 memberData: {}, // 综合仿真成员列表 simulationUserList: [], // 综合仿真用户列表 - addMemberInScript:{}, // 剧本录制新增角色 orignalUserRoleId:'' // 设置旧的角色的id }, @@ -253,13 +252,6 @@ const training = { state.memberData[newMemberId].disabled = true; }, - addMemberListInScript:(state, newMember) => { - if (!state.memberData[newMember.id]) { - // state.memberData[newMember.id] = newMember; - state.addMemberInScript = newMember; - } - }, - updateMemberAndUser: (state, {simulationUserList, userId}) => { simulationUserList.forEach(item => { let memberIndex = -1; @@ -720,10 +712,6 @@ const training = { setRoleDeviceCode:({ commit }, roleDeviceCode) => { commit('setRoleDeviceCode', roleDeviceCode); }, - /** 添加新成员(剧本录制)*/ - addMemberListInScript:({ commit }, data) => { - commit('addMemberListInScript', data); - }, /** 剧本仿真 设置旧的角色的id */ setOrignalUserRoleId:({ commit }, data) => { commit('setOrignalUserRoleId', data); diff --git a/src/views/newMap/displayNew/demon/runPlanView.vue b/src/views/newMap/displayNew/demon/runPlanView.vue index 550455ec2..334591a07 100644 --- a/src/views/newMap/displayNew/demon/runPlanView.vue +++ b/src/views/newMap/displayNew/demon/runPlanView.vue @@ -128,6 +128,7 @@ export default { '$store.state.runPlan.planLoadedCount': async function () { try { await this.loadChartPage(); + this.selectSeries = []; this.runSeries = []; if (this.dialogShow) { await this.loadInitData(); } diff --git a/src/views/newMap/displayNew/demonChat.vue b/src/views/newMap/displayNew/demonChat.vue index 0ff21f0fa..35197f923 100644 --- a/src/views/newMap/displayNew/demonChat.vue +++ b/src/views/newMap/displayNew/demonChat.vue @@ -72,7 +72,7 @@ export default { getSimulationMemberList(this.group).then(resp => { this.driverList = []; this.treeData = []; - const result = covertMemberData(this.activeTrainList, resp); + const result = covertMemberData(this.activeTrainList, resp.data); this.driverList = result.driverList; this.treeData = [{ label: '行调', @@ -191,6 +191,9 @@ export default { // 按计划行车的列车列表更新(更新司机列表) '$store.state.map.activeTrainListChange': function (val) { const activeTrainList = this.$store.state.map.activeTrainList; + activeTrainList.sort((a, b) => { + return parseInt(a) - parseInt(b); + }); if (this.driverList.length > 0) { const driverList = []; if (activeTrainList && activeTrainList.length) { diff --git a/src/views/newMap/displayNew/scriptDisplay/component/covertOperation.js b/src/views/newMap/displayNew/scriptDisplay/component/covertOperation.js index c560855fa..12dd29bff 100644 --- a/src/views/newMap/displayNew/scriptDisplay/component/covertOperation.js +++ b/src/views/newMap/displayNew/scriptDisplay/component/covertOperation.js @@ -117,8 +117,29 @@ export const operateEnum = { type:'车站' }, Driver:{ - // code:'stationCode', - type:'司机' + code:'groupNumber', + type:'司机', + Driver_Door_On_Off:{ + isList:true, + params:[ + { + code:'open', + name:'', + result:[ + {data:true, name:'开', judge:'='}, + {data:false, name:'关', judge:'='} + ] + }, + { + code:'right', + name:'', + result:[ + {data:true, name:'左门', judge:'='}, + {data:false, name:'右门', judge:'='} + ] + } + ] + } } }; diff --git a/src/views/newMap/displayNew/scriptDisplay/scriptPreview/scriptButtonGroup.vue b/src/views/newMap/displayNew/scriptDisplay/scriptPreview/scriptButtonGroup.vue index 5f175fa9c..7ea9a15b4 100644 --- a/src/views/newMap/displayNew/scriptDisplay/scriptPreview/scriptButtonGroup.vue +++ b/src/views/newMap/displayNew/scriptDisplay/scriptPreview/scriptButtonGroup.vue @@ -36,6 +36,7 @@