From 41536232f60e683b2a47117993e68be45e8835ab Mon Sep 17 00:00:00 2001 From: sunzhenyu Date: Fri, 24 Sep 2021 17:20:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=B8=89=E7=BB=B4=E9=A9=BE?= =?UTF-8?q?=E9=A9=B6psl?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/baseUrl.js | 4 ++-- src/views/jlmap3d/drive/jl3ddrive.vue | 24 +++++++++++++++++-- src/views/jlmap3d/drive/sceneview/mmiview.vue | 7 +++++- 3 files changed, 30 insertions(+), 5 deletions(-) diff --git a/src/utils/baseUrl.js b/src/utils/baseUrl.js index 64f99c6df..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.8.109: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/jl3ddrive.vue b/src/views/jlmap3d/drive/jl3ddrive.vue index 18bc9e1a4..4253a9512 100644 --- a/src/views/jlmap3d/drive/jl3ddrive.vue +++ b/src/views/jlmap3d/drive/jl3ddrive.vue @@ -25,6 +25,7 @@ + {{ pslmsg }} {{ equipboxmsg }} {{ cctvbuttonmsg }} {{ showbuttonmmimsg }} @@ -52,6 +53,7 @@ + @@ -80,6 +82,8 @@ import DriveMmi from '@/views/jlmap3d/drive/sceneview/mmiview'; import DriveTms from '@/views/jlmap3d/drive/sceneview/tmsview'; import DriveControl from '@/views/jlmap3d/drive/drivecontrol/drivecontrol'; +import Psl from '@/jmapNew/theme/components/menus/dialog/psl'; + import EquipBox from '@/views/jlmap3d/drive/equipbox/equipbox'; var train; @@ -89,7 +93,8 @@ export default { DriveMmi, DriveTms, DriveControl, - EquipBox + EquipBox, + Psl }, data() { return { @@ -110,6 +115,9 @@ export default { selectmodel: null, cctvshow:true, equipboxmsg:"设备柜——隐藏", + pslmsg:"PSL", + pslCode:"", + pslShow:false, cctvbuttonmsg: this.$t('jlmap3d.surveillanceHidden'), mmishow: false, tmsshow: false, @@ -230,7 +238,7 @@ export default { window.updateDriverTrust = this.updateDriverTrust; window.updateDriveValue = this.updateDriveValue; - + window.jl3dUpdatePslCode = this.jl3dUpdatePslCode; if(this.$route.query.group){ getSimulationInfoNew(this.$route.query.group).then(netdata => { @@ -568,6 +576,18 @@ export default { this.groupnum = newvalue; } }, + jl3dUpdatePslCode(newPslCode){ + console.log(newPslCode); + if(newPslCode != undefined){ + this.pslShow = true; + }else{ + this.pslShow = false; + } + this.pslCode = newPslCode; + }, + openPsl() { + this.$refs.psl.doShow({code:this.pslCode}); + }, updatetrainlist(){ getSimulationTrainlistNew(this.group).then(netdata => { this.options = []; diff --git a/src/views/jlmap3d/drive/sceneview/mmiview.vue b/src/views/jlmap3d/drive/sceneview/mmiview.vue index 58fb35cbc..0f4cac8e9 100644 --- a/src/views/jlmap3d/drive/sceneview/mmiview.vue +++ b/src/views/jlmap3d/drive/sceneview/mmiview.vue @@ -114,6 +114,7 @@ export default { oldspeed:0, endstation:'', nextstation:'', + standCode:'', mmimodel:null, tiaotingjump:"false", tiaotinghold:"false", @@ -244,6 +245,11 @@ export default { this.updateM7(newdata.doorMode); } + if(newdata.standCode != this.standCode){ + this.standCode = newdata.standCode; + jl3dUpdatePslCode(this.standCode); + } + if(newdata.nextStation){ this.updateMmiNextStation(newdata.nextStation); } @@ -603,7 +609,6 @@ export default { if(next){ this.nextstation = next; } - }, updateMmiEndStation(end){ if(end){