diff --git a/src/i18n/langs/zh/jlmap3d.js b/src/i18n/langs/zh/jlmap3d.js index 472b357e1..5d271e0e2 100644 --- a/src/i18n/langs/zh/jlmap3d.js +++ b/src/i18n/langs/zh/jlmap3d.js @@ -76,8 +76,8 @@ export default { open: '开', front: '前', later: '后', - electricGongSheng: '受电弓升', - pantographFall: '受电弓降', + electricGongSheng: '升弓', + pantographFall: '降弓', lampButton: '试灯按钮', removalATP: 'ATP切除', infliction: '施加', diff --git a/src/jlmap3d/jl3ddrive/drivecontrol/simulation.js b/src/jlmap3d/jl3ddrive/drivecontrol/simulation.js index 975ab60dc..528ff7657 100644 --- a/src/jlmap3d/jl3ddrive/drivecontrol/simulation.js +++ b/src/jlmap3d/jl3ddrive/drivecontrol/simulation.js @@ -146,3 +146,11 @@ export function trainSimulationDoorMode(group, data) { data: data }); } + +export function trainSimulationCommand(group,data,operate) { + return request({ + url: `/simulation/${group}/operate/${operate}`, + method: 'post', + data: data + }); +} diff --git a/src/jlmap3d/jl3ddrive/moveupdate/DrivingConnectNew.js b/src/jlmap3d/jl3ddrive/moveupdate/DrivingConnectNew.js index b9523ead7..9d9a0a381 100644 --- a/src/jlmap3d/jl3ddrive/moveupdate/DrivingConnectNew.js +++ b/src/jlmap3d/jl3ddrive/moveupdate/DrivingConnectNew.js @@ -1006,7 +1006,7 @@ export function Jl3dDrivingNew(mixers,updatemmi,sound,translation,routegroup,dri } function signalupdate(data) { code = data.code; - console.log(data); + if(data.command == 'No'){ signallist.list[code].mesh.getObjectByName("red").material.map = materials["black"]; signallist.list[code].mesh.getObjectByName("red").material.map.needsUpdate = true; diff --git a/src/jlmap3d/lesson3d/manager/controlmanager.js b/src/jlmap3d/lesson3d/manager/controlmanager.js index 0e870afd6..da5cfd494 100644 --- a/src/jlmap3d/lesson3d/manager/controlmanager.js +++ b/src/jlmap3d/lesson3d/manager/controlmanager.js @@ -183,7 +183,8 @@ export function ControlManager(dom,scene,lessonData,lessonIndex) { updatePlayer( deltaTime ); updateSpheres( deltaTime ); - + // console.log(scope.eventHitMode); + // console.log(roleMode); if(scope.eventHitMode == true && roleMode){ if(eventBoxs.length>0){ attachBox.position.copy(fpsCamera.position); @@ -268,9 +269,9 @@ export function ControlManager(dom,scene,lessonData,lessonIndex) { document.addEventListener( 'mousedown', (event) => { fpsMouseStatus = true; // document.body.requestPointerLock(); - // console.log("mousedown-----------------------"); - // console.log(raycasterBoxs); - // console.log(roleMode); + console.log("mousedown-----------------------"); + console.log(raycasterBoxs); + console.log(roleMode); if(raycasterBoxs.length>0 && roleMode){ var mouse = new THREE.Vector2(); @@ -328,7 +329,7 @@ export function ControlManager(dom,scene,lessonData,lessonIndex) { if(intersects.length>0){ jl3dZzwwTrainTestUpdate(intersects[0].object.name); - + } } diff --git a/src/jlmap3d/lesson3dedit/toolsmodel/zzwwtrain.js b/src/jlmap3d/lesson3dedit/toolsmodel/zzwwtrain.js index 4a71ba82f..514e5907e 100644 --- a/src/jlmap3d/lesson3dedit/toolsmodel/zzwwtrain.js +++ b/src/jlmap3d/lesson3dedit/toolsmodel/zzwwtrain.js @@ -415,7 +415,7 @@ export function ZzwwTrain() { text:"", devices:[ { - id:"GWS", + id:"GWX", name:"钩尾销", color:"#ff0000", status:"", diff --git a/src/router/index.js b/src/router/index.js index ebb971c51..9c32cf1e3 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -17,6 +17,9 @@ const Jlmap3dLesson3dEdit = () => import('@/views/jlmap3d/lesson3dedit/lesson3de const Jlmap3dLesson3dPlayer = () => import('@/views/jlmap3d/lesson3dplayer/lesson3dplayer'); const Jlmap3dLesson3dSelect = () => import('@/views/jlmap3d/lesson3dplayer/lesson3dselect'); +const Jlmap3dZzwwTest = () => import('@/views/jlmap3d/zzwwtest/zzwwtest'); + + const Jlmap3d = () => import('@/views/jlmap3d/drive/jl3ddrive'); const Jlmap3dSandbox = () => import('@/views/jlmap3d/simulation/jl3dsimulation'); const Jlmap3dPassFlow = () => import('@/views/jlmap3d/passflow/jl3dpassflow'); @@ -296,6 +299,12 @@ export const constantRoutes = [ component: Jlmap3dLesson3dSelect, hidden: true }, + { + path: '/jlmap3d/zzwwtest', + component: Jlmap3dZzwwTest, + hidden: true + }, + { path: '/data2json', diff --git a/src/utils/baseUrl.js b/src/utils/baseUrl.js index 1818df808..148e2349a 100644 --- a/src/utils/baseUrl.js +++ b/src/utils/baseUrl.js @@ -2,10 +2,10 @@ export function getBaseUrl() { let BASE_API; if (process.env.NODE_ENV === 'development') { // BASE_API = 'https://joylink.club/jlcloud'; - BASE_API = 'https://test.joylink.club/jlcloud'; + // BASE_API = 'https://test.joylink.club/jlcloud'; // BASE_API = 'http://192.168.8.152:9000'; // 袁琪 // BASE_API = 'http://192.168.8.177:9000'; // 旭强 - // BASE_API = 'http://192.168.2.183:9000'; // 张赛 + BASE_API = 'http://192.168.8.109:9000'; // 张赛 // BASE_API = 'http://192.168.8.140:9000'; // 杜康 // BASE_API = 'http://b29z135112.zicp.vip'; // BASE_API = 'http://2925963m2a.zicp.vip'; // 杜康 diff --git a/src/views/jlmap3d/drive/drivecontrol/centerpane.vue b/src/views/jlmap3d/drive/drivecontrol/centerpane.vue index 2ac2b97a1..1d444ce1d 100644 --- a/src/views/jlmap3d/drive/drivecontrol/centerpane.vue +++ b/src/views/jlmap3d/drive/drivecontrol/centerpane.vue @@ -1,19 +1,21 @@