From 3bb9c2a8d4c75b35e39748ad48fd1aac56591506 Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Wed, 14 Jul 2021 09:32:12 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E8=B0=83=E6=95=B4=E9=9B=86=E4=B8=AD?= =?UTF-8?q?=E7=AB=99=E8=AE=BE=E5=A4=87=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jmapNew/map.js | 86 +++--- src/jmapNew/mouseController.js | 27 +- src/jmapNew/painter.js | 10 +- src/jmapNew/shape/graph/Arrow/index.js | 3 +- src/jmapNew/shape/graph/AutoTurnBack/index.js | 3 +- .../shape/graph/AutomacticRoute/index.js | 3 +- src/jmapNew/shape/graph/AxleReset/index.js | 21 +- src/jmapNew/shape/graph/DirectionRod/index.js | 3 +- src/jmapNew/shape/graph/FloodGate/index.js | 3 +- src/jmapNew/shape/graph/GuideLock/index.js | 27 +- src/jmapNew/shape/graph/LcControl/index.js | 22 +- src/jmapNew/shape/graph/LimitControl/index.js | 21 +- src/jmapNew/shape/graph/Line/index.js | 3 +- src/jmapNew/shape/graph/OutFrame/index.js | 3 +- src/jmapNew/shape/graph/Power/index.js | 3 +- src/jmapNew/shape/graph/Psd/index.js | 5 +- src/jmapNew/shape/graph/Resource/index.js | 3 +- src/jmapNew/shape/graph/Responder/index.js | 3 +- src/jmapNew/shape/graph/SaidLamp/index.js | 3 +- src/jmapNew/shape/graph/Section/index.js | 3 +- src/jmapNew/shape/graph/Signal/index.js | 2 +- src/jmapNew/shape/graph/SignalButton/index.js | 3 +- src/jmapNew/shape/graph/SplitStation/index.js | 3 +- src/jmapNew/shape/graph/Station/index.js | 4 +- .../shape/graph/StationCounter/index.js | 3 +- .../shape/graph/StationDelayUnlock/index.js | 3 +- src/jmapNew/shape/graph/StationStand/index.js | 3 +- .../shape/graph/StationTurnBack/index.js | 3 +- src/jmapNew/shape/graph/Switch/index.js | 3 +- src/jmapNew/shape/graph/Text/index.js | 7 +- src/jmapNew/shape/graph/Train/EMouse.js | 2 +- src/jmapNew/shape/graph/Train/index.js | 6 +- src/jmapNew/shape/graph/TrainWindow/index.js | 29 +- src/jmapNew/shape/graph/ZcControl/index.js | 3 +- src/jmapNew/shape/graph/checkBox/checkBox.js | 4 +- src/store/modules/map.js | 13 + src/utils/baseUrl.js | 6 +- src/views/newMap/jlmapNew/index.vue | 1 - .../newMap/newMapdraft/mapoperate/index.vue | 40 ++- .../newMapdraft/mapoperate/localConfig.vue | 255 ++++++++++++++++++ .../newMapdraft/mapoperate/splitScreen.vue | 4 + 41 files changed, 491 insertions(+), 161 deletions(-) create mode 100644 src/views/newMap/newMapdraft/mapoperate/localConfig.vue diff --git a/src/jmapNew/map.js b/src/jmapNew/map.js index 2678f6402..ea4e966bb 100644 --- a/src/jmapNew/map.js +++ b/src/jmapNew/map.js @@ -330,37 +330,36 @@ class Jlmap { getShowConfig() { return this.showConfig; } - showStationHandlePsd(oDevice, stationCode) { - const standDevice = this.mapDevice[oDevice.standCode]; - if (standDevice && standDevice.deviceStationCode === stationCode || !stationCode) { - this.$painter.updateSpecialShowStation(oDevice, true); - } else { - this.$painter.updateSpecialShowStation(oDevice, false); - } - } - showStationHandleSection(oDevice, stationCode) { - const trainWinDevice = this.mapDevice[oDevice.trainWindowCode]; - if (oDevice.stationCode === stationCode || !stationCode) { - this.$painter.updateSpecialShowStation(trainWinDevice, true); - } else { - this.$painter.updateSpecialShowStation(trainWinDevice, false); - } - } - showStationHandleStation (oDevice, stationCode) { - if ((oDevice.centralized && oDevice.code === stationCode) || !stationCode) { - this.$painter.updateSpecialShowStation(oDevice, true); - oDevice.chargeStationCodeList.forEach(staCode => { - const staDevice = this.mapDevice[staCode]; - this.$painter.updateSpecialShowStation(staDevice, true); - }); - } else if (oDevice.centralized && oDevice.code !== stationCode) { - this.$painter.updateSpecialShowStation(oDevice, false); - oDevice.chargeStationCodeList.forEach(staCode => { - const staDevice = this.mapDevice[staCode]; - this.$painter.updateSpecialShowStation(staDevice, false); - }); - } - } + // showStationHandlePsd(oDevice, stationCode) { + // if (store.getters['map/checkDeviceShow'](stationCode, oDevice.standCode) || !stationCode) { + // this.$painter.updateSpecialShowStation(oDevice, true); + // } else { + // this.$painter.updateSpecialShowStation(oDevice, false); + // } + // } + // showStationHandleSection(oDevice, stationCode) { + // const trainWinDevice = this.mapDevice[oDevice.trainWindowCode]; + // if (oDevice.stationCode === stationCode || !stationCode) { + // this.$painter.updateSpecialShowStation(trainWinDevice, true); + // } else { + // this.$painter.updateSpecialShowStation(trainWinDevice, false); + // } + // } + // showStationHandleStation (oDevice, stationCode) { + // if ((oDevice.centralized && oDevice.code === stationCode) || !stationCode) { + // this.$painter.updateSpecialShowStation(oDevice, true); + // oDevice.chargeStationCodeList.forEach(staCode => { + // const staDevice = this.mapDevice[staCode]; + // this.$painter.updateSpecialShowStation(staDevice, true); + // }); + // } else if (oDevice.centralized && oDevice.code !== stationCode) { + // this.$painter.updateSpecialShowStation(oDevice, false); + // oDevice.chargeStationCodeList.forEach(staCode => { + // const staDevice = this.mapDevice[staCode]; + // this.$painter.updateSpecialShowStation(staDevice, false); + // }); + // } + // } updateShowStation(list = [], stationCode = '') { this.stationCode = stationCode; @@ -369,18 +368,19 @@ class Jlmap { const code = elem.code; const type = elem._type; const oDevice = this.mapDevice[code] || deviceFactory(type, elem, this.showConfig); - if (oDevice._type === deviceType.Station) { - this.showStationHandleStation(oDevice, stationCode); - } else if (oDevice._type === deviceType.Section) { - this.$painter.updateShowStation(oDevice, stationCode); - this.showStationHandleSection(oDevice, stationCode); - } else if (oDevice._type === deviceType.TrainWindow) { - // 不处理车次窗 勿删 - } else if (oDevice._type === deviceType.Psd) { - this.showStationHandlePsd(oDevice, stationCode); - } else { - this.$painter.updateShowStation(oDevice, stationCode); - } + // if (oDevice._type === deviceType.Station) { + // this.showStationHandleStation(oDevice, stationCode); + // } else if (oDevice._type === deviceType.Section) { + // this.$painter.updateShowStation(oDevice, stationCode); + // this.showStationHandleSection(oDevice, stationCode); + // } else if (oDevice._type === deviceType.TrainWindow) { + // // 不处理车次窗 勿删 + // } else if (oDevice._type === deviceType.Psd) { + // this.showStationHandlePsd(oDevice, stationCode); + // } else { + // this.$painter.updateShowStation(oDevice, stationCode); + // } + this.$painter.updateShowStation(oDevice, stationCode); }); this.$painter.$transformHandle.revisibleAll(); if (stationCode) { diff --git a/src/jmapNew/mouseController.js b/src/jmapNew/mouseController.js index 6f786e015..cc21941a4 100644 --- a/src/jmapNew/mouseController.js +++ b/src/jmapNew/mouseController.js @@ -277,8 +277,7 @@ class MouseController extends Eventful { if (this.whetherInclude(boundingRect, deviceBoundingRect )) { includeDeviceList.push(item); } - } - if (item.instance && item.instance._type == deviceType.Switch) { + } else if (item.instance && item.instance._type == deviceType.Switch) { const deviceBoundingRect = { x1: item.intersection.x, y1: item.intersection.y, @@ -288,8 +287,7 @@ class MouseController extends Eventful { if (this.whetherInclude(boundingRect, deviceBoundingRect )) { includeDeviceList.push(item); } - } - if (item.instance && item.instance._type == deviceType.Signal) { + } else if (item.instance && item.instance._type == deviceType.Signal) { const deviceBoundingRect = { x1: item.position.x, y1: item.position.y, @@ -299,6 +297,27 @@ class MouseController extends Eventful { if (this.whetherInclude(boundingRect, deviceBoundingRect )) { includeDeviceList.push(item); } + } else if (item.instance && item.instance._type == deviceType.Psd) { + const deviceBoundingRect = { + x1: item.position.x, + y1: item.position.y, + x2: item.position.x, + y2: item.position.y + }; + if (this.whetherInclude(boundingRect, deviceBoundingRect )) { + includeDeviceList.push(item); + } + } else if (item.instance && item.instance._type !== deviceType.TrainWindow && item.instance._type !== deviceType.CheckBox && item.instance._type !== deviceType.Train) { + const rect = item.instance.getBoundingRect(); + const deviceBoundingRect = { + x1: rect.x, + y1: rect.y, + x2: rect.x, + y2: rect.y + }; + if (this.whetherInclude(boundingRect, deviceBoundingRect)) { + includeDeviceList.push(item); + } } }); this.deviceList = includeDeviceList; diff --git a/src/jmapNew/painter.js b/src/jmapNew/painter.js index 3bc597c6a..32a58c7a1 100644 --- a/src/jmapNew/painter.js +++ b/src/jmapNew/painter.js @@ -199,11 +199,11 @@ class Painter { device.instance.setShowStation(stationCode); } } - updateSpecialShowStation(device, flag) { - if (device && device.instance) { - device.instance.setShowStation(flag); - } - } + // updateSpecialShowStation(device, flag) { + // if (device && device.instance) { + // device.instance.setShowStation(flag); + // } + // } /** * 更新transform变化 * @param {*} opt diff --git a/src/jmapNew/shape/graph/Arrow/index.js b/src/jmapNew/shape/graph/Arrow/index.js index 8b64f10f5..407539661 100644 --- a/src/jmapNew/shape/graph/Arrow/index.js +++ b/src/jmapNew/shape/graph/Arrow/index.js @@ -1,5 +1,6 @@ import Group from 'zrender/src/container/Group'; import Polygon from 'zrender/src/graphic/shape/Polygon'; +import store from '@/store/index'; export default class Arrow extends Group { constructor(model, {style}) { @@ -53,7 +54,7 @@ export default class Arrow extends Group { } } setShowStation(stationCode) { - if (!stationCode || this.model.stationCode === stationCode) { + if (!stationCode || store.getters['map/checkDeviceShow'](stationCode, this._code)) { this.show(); this.isShowShape = true; this.setState(this.model); diff --git a/src/jmapNew/shape/graph/AutoTurnBack/index.js b/src/jmapNew/shape/graph/AutoTurnBack/index.js index 4d015d2bd..864cc4252 100644 --- a/src/jmapNew/shape/graph/AutoTurnBack/index.js +++ b/src/jmapNew/shape/graph/AutoTurnBack/index.js @@ -7,6 +7,7 @@ import Text from 'zrender/src/graphic/Text'; import Rect from 'zrender/src/graphic/shape/Rect'; import EMouse from './EMouse'; import BoundingRect from 'zrender/src/core/BoundingRect'; +import store from '@/store/index'; export default class AutoTurnBack extends Group { constructor(model, {style}) { @@ -172,7 +173,7 @@ export default class AutoTurnBack extends Group { } } setShowStation(stationCode) { - if (!stationCode || this.model.stationCode === stationCode) { + if (!stationCode || store.getters['map/checkDeviceShow'](stationCode, this._code)) { this.isShowShape = true; this.showMode(); } else { diff --git a/src/jmapNew/shape/graph/AutomacticRoute/index.js b/src/jmapNew/shape/graph/AutomacticRoute/index.js index afca7a75d..9d36efa3d 100644 --- a/src/jmapNew/shape/graph/AutomacticRoute/index.js +++ b/src/jmapNew/shape/graph/AutomacticRoute/index.js @@ -6,6 +6,7 @@ import Arc from 'zrender/src/graphic/shape/Arc'; import Text from 'zrender/src/graphic/Text'; import EMouse from './EMouse'; import BoundingRect from 'zrender/src/core/BoundingRect'; +import store from '@/store/index'; export default class AutomacticRoute extends Group { constructor(model, {style}) { @@ -137,7 +138,7 @@ export default class AutomacticRoute extends Group { } } setShowStation(stationCode) { - if (!stationCode || this.model.stationCode === stationCode) { + if (!stationCode || store.getters['map/checkDeviceShow'](stationCode, this._code)) { this.isShowShape = true; this.showMode(); } else { diff --git a/src/jmapNew/shape/graph/AxleReset/index.js b/src/jmapNew/shape/graph/AxleReset/index.js index f4029ee45..d8582e78b 100644 --- a/src/jmapNew/shape/graph/AxleReset/index.js +++ b/src/jmapNew/shape/graph/AxleReset/index.js @@ -6,6 +6,7 @@ import Arc from 'zrender/src/graphic/shape/Arc'; import Text from 'zrender/src/graphic/Text'; import EMouse from './EMouse'; import BoundingRect from 'zrender/src/core/BoundingRect'; +import store from '@/store/index'; export default class AxleReset extends Group { constructor(model, {style}) { @@ -83,18 +84,18 @@ export default class AxleReset extends Group { this.add(this.text); } - setAshShow() { - this.control && this.control.setStyle({fill:'#FFF'}); - } + setAshShow() { + this.control && this.control.setStyle({fill:'#FFF'}); + } // 设置状态 setState(model) { - // 只响应前端自定义类型的状态变化 - if (model._free) { - this.setAshShow() - } else { - if (!this.isShowShape) return; - } + // 只响应前端自定义类型的状态变化 + if (model._free) { + this.setAshShow(); + } else { + if (!this.isShowShape) return; + } } createMouseEvent() { @@ -141,7 +142,7 @@ export default class AxleReset extends Group { } } setShowStation(stationCode) { - if (!stationCode || this.model.stationCode === stationCode) { + if (!stationCode || store.getters['map/checkDeviceShow'](stationCode, this._code)) { this.isShowShape = true; this.showMode(); } else { diff --git a/src/jmapNew/shape/graph/DirectionRod/index.js b/src/jmapNew/shape/graph/DirectionRod/index.js index 30c419775..e565710b0 100644 --- a/src/jmapNew/shape/graph/DirectionRod/index.js +++ b/src/jmapNew/shape/graph/DirectionRod/index.js @@ -1,6 +1,7 @@ import Group from 'zrender/src/container/Group'; import Polygon from 'zrender/src/graphic/shape/Polygon'; import Text from 'zrender/src/graphic/Text'; +import store from '@/store/index'; export default class DirectionRod extends Group { constructor(model, {style}) { @@ -97,7 +98,7 @@ export default class DirectionRod extends Group { } setShowStation(stationCode) { - if (!stationCode || this.model.deviceStationCode === stationCode) { + if (!stationCode || store.getters['map/checkDeviceShow'](stationCode, this._code)) { this.isShowShape = true; this.showMode(); } else { diff --git a/src/jmapNew/shape/graph/FloodGate/index.js b/src/jmapNew/shape/graph/FloodGate/index.js index e72c3f6fc..1b544c886 100644 --- a/src/jmapNew/shape/graph/FloodGate/index.js +++ b/src/jmapNew/shape/graph/FloodGate/index.js @@ -3,6 +3,7 @@ */ import Group from 'zrender/src/container/Group'; import Rect from 'zrender/src/graphic/shape/Rect'; +import store from '@/store/index'; export default class FloodGate extends Group { constructor(model, {style}) { @@ -61,7 +62,7 @@ export default class FloodGate extends Group { } } setShowStation(stationCode) { - if (!stationCode || this.model.stationCode === stationCode) { + if (!stationCode || store.getters['map/checkDeviceShow'](stationCode, this._code)) { this.isShowShape = true; this.showMode(); } else { diff --git a/src/jmapNew/shape/graph/GuideLock/index.js b/src/jmapNew/shape/graph/GuideLock/index.js index 2e70e01b7..04c46cbeb 100644 --- a/src/jmapNew/shape/graph/GuideLock/index.js +++ b/src/jmapNew/shape/graph/GuideLock/index.js @@ -6,6 +6,7 @@ import Arc from 'zrender/src/graphic/shape/Arc'; import Text from 'zrender/src/graphic/Text'; import EMouse from './EMouse'; import BoundingRect from 'zrender/src/core/BoundingRect'; +import store from '@/store/index'; export default class GuideLock extends Group { constructor(model, {style}) { @@ -86,22 +87,22 @@ export default class GuideLock extends Group { } handleSignal() { this.control.setStyle({ fill: this.style.GuideLock.lamp.lightUpColor }); - } + } - setAshShow() { - this.control && this.control.setStyle({fill:'#FFF'}); - } + setAshShow() { + this.control && this.control.setStyle({fill:'#FFF'}); + } // 设置状态 setState(model) { - // 只响应前端自定义类型的状态变化 - if (model._free) { - this.setAshShow() - } else { - if (!this.isShowShape) return; - this.recover(); - model.totalGuideLock && this.handleSignal(); - } + // 只响应前端自定义类型的状态变化 + if (model._free) { + this.setAshShow(); + } else { + if (!this.isShowShape) return; + this.recover(); + model.totalGuideLock && this.handleSignal(); + } } createMouseEvent() { @@ -148,7 +149,7 @@ export default class GuideLock extends Group { } } setShowStation(stationCode) { - if (!stationCode || this.model.stationCode === stationCode) { + if (!stationCode || store.getters['map/checkDeviceShow'](stationCode, this._code)) { this.isShowShape = true; this.showMode(); } else { diff --git a/src/jmapNew/shape/graph/LcControl/index.js b/src/jmapNew/shape/graph/LcControl/index.js index 95a464335..468322f6d 100644 --- a/src/jmapNew/shape/graph/LcControl/index.js +++ b/src/jmapNew/shape/graph/LcControl/index.js @@ -4,6 +4,7 @@ import Group from 'zrender/src/container/Group'; import EControl from '../element/EControl'; import EMouse from './EMouse'; +import store from '@/store/index'; export default class LcControl extends Group { constructor(model, {style}) { @@ -53,19 +54,18 @@ export default class LcControl extends Group { this.add(this.control); } - setAshShow() { - this.control && this.control.setControlColor('#7F7F7F'); - } - + setAshShow() { + this.control && this.control.setControlColor('#7F7F7F'); + } // 设置状态 setState(model) { - // 只响应前端自定义类型的状态变化 - if (model._free) { - this.setAshShow() - } else { - if (!this.isShowShape) return; - } + // 只响应前端自定义类型的状态变化 + if (model._free) { + this.setAshShow(); + } else { + if (!this.isShowShape) return; + } } createMouseEvent() { @@ -89,7 +89,7 @@ export default class LcControl extends Group { } setShowMode() {} setShowStation(stationCode) { - if (!stationCode || this.model.stationCode === stationCode) { + if (!stationCode || store.getters['map/checkDeviceShow'](stationCode, this._code)) { this.control.show(); this.isShowShape = true; this.setState(this.model); diff --git a/src/jmapNew/shape/graph/LimitControl/index.js b/src/jmapNew/shape/graph/LimitControl/index.js index 4c21cced0..d318cca2a 100644 --- a/src/jmapNew/shape/graph/LimitControl/index.js +++ b/src/jmapNew/shape/graph/LimitControl/index.js @@ -4,6 +4,7 @@ import Group from 'zrender/src/container/Group'; import EControl from '../element/EControl'; import EMouse from './EMouse'; +import store from '@/store/index'; export default class LimitControl extends Group { constructor(model, {style}) { @@ -57,18 +58,18 @@ export default class LimitControl extends Group { this.add(this.control); } - setAshShow() { - this.control && this.control.setControlColor('#FFF'); - } + setAshShow() { + this.control && this.control.setControlColor('#FFF'); + } // 设置状态 setState(model) { - // 只响应前端自定义类型的状态变化 - if (model._free) { - this.setAshShow() - } else { - if (!this.isShowShape) return; - } + // 只响应前端自定义类型的状态变化 + if (model._free) { + this.setAshShow(); + } else { + if (!this.isShowShape) return; + } } createMouseEvent() { @@ -93,7 +94,7 @@ export default class LimitControl extends Group { } setShowMode() {} setShowStation(stationCode) { - if (!stationCode || this.model.stationCode === stationCode) { + if (!stationCode || store.getters['map/checkDeviceShow'](stationCode, this._code)) { this.control.show(); this.isShowShape = true; this.setState(this.model); diff --git a/src/jmapNew/shape/graph/Line/index.js b/src/jmapNew/shape/graph/Line/index.js index 559d72e92..ccb30003f 100644 --- a/src/jmapNew/shape/graph/Line/index.js +++ b/src/jmapNew/shape/graph/Line/index.js @@ -1,5 +1,6 @@ import Group from 'zrender/src/container/Group'; import Polyline from 'zrender/src/graphic/shape/Polyline'; +import store from '@/store/index'; export default class Line2 extends Group { constructor(model, {style}) { @@ -105,7 +106,7 @@ export default class Line2 extends Group { } } setShowStation(stationCode) { - if (!stationCode || this.model.stationCode === stationCode) { + if (!stationCode || store.getters['map/checkDeviceShow'](stationCode, this._code)) { this.segment && this.segment.show(); this.viceSegment && this.viceSegment.show(); this.isShowShape = true; diff --git a/src/jmapNew/shape/graph/OutFrame/index.js b/src/jmapNew/shape/graph/OutFrame/index.js index 1838e4c98..3d17b19f2 100644 --- a/src/jmapNew/shape/graph/OutFrame/index.js +++ b/src/jmapNew/shape/graph/OutFrame/index.js @@ -1,5 +1,6 @@ import Group from 'zrender/src/container/Group'; import Rect from 'zrender/src/graphic/shape/Rect'; +import store from '@/store/index'; export default class OutFrame extends Group { constructor(model, {style}) { @@ -57,7 +58,7 @@ export default class OutFrame extends Group { } } setShowStation(stationCode) { - if (!stationCode || this.model.stationCode === stationCode) { + if (!stationCode || store.getters['map/checkDeviceShow'](stationCode, this._code)) { this.box && this.box.show(); this.isShowShape = true; this.setState(this.model); diff --git a/src/jmapNew/shape/graph/Power/index.js b/src/jmapNew/shape/graph/Power/index.js index c9bab3853..99563bc82 100644 --- a/src/jmapNew/shape/graph/Power/index.js +++ b/src/jmapNew/shape/graph/Power/index.js @@ -2,6 +2,7 @@ import Polyline from 'zrender/src/graphic/shape/Polyline'; import Group from 'zrender/src/container/Group'; import JTriangle from '../../../utils/JTriangle'; import ESeparator from './ESeparator'; +import store from '@/store/index'; export default class Line2 extends Group { constructor(model, {style}) { @@ -135,7 +136,7 @@ export default class Line2 extends Group { } } setShowStation(stationCode) { - if (!stationCode || this.model.stationCode === stationCode) { + if (!stationCode || store.getters['map/checkDeviceShow'](stationCode, this._code)) { this.eachChild((child) => { child.show(); }); diff --git a/src/jmapNew/shape/graph/Psd/index.js b/src/jmapNew/shape/graph/Psd/index.js index e2b3f0de1..e01796eac 100644 --- a/src/jmapNew/shape/graph/Psd/index.js +++ b/src/jmapNew/shape/graph/Psd/index.js @@ -5,6 +5,7 @@ import EHorizontal2Door from './EHorizontal2Door'; import EHighlight from '../element/EHighlight'; import {traverseLineElements} from '../utils/ShapeStatusCovert'; import ERectDoor from './ERectDoor'; +import store from '@/store/index'; export default class Line2 extends Group { constructor(model, {style}) { @@ -90,8 +91,8 @@ export default class Line2 extends Group { }); } } - setShowStation(flag) { - if (flag) { + setShowStation(stationCode) { + if (!stationCode || store.getters['map/checkDeviceShow'](stationCode, this._code)) { this.eachChild(item => { item.show(); }); diff --git a/src/jmapNew/shape/graph/Resource/index.js b/src/jmapNew/shape/graph/Resource/index.js index 12a4d2f09..f90a5c02f 100644 --- a/src/jmapNew/shape/graph/Resource/index.js +++ b/src/jmapNew/shape/graph/Resource/index.js @@ -3,6 +3,7 @@ */ import Group from 'zrender/src/container/Group'; import Image from 'zrender/src/graphic/Image'; +import store from '@/store/index'; export default class Resource extends Group { constructor(model, {style}) { @@ -70,7 +71,7 @@ export default class Resource extends Group { } setShowMode() {} setShowStation(stationCode) { - if (!stationCode || this.model.stationCode === stationCode) { + if (!stationCode || store.getters['map/checkDeviceShow'](stationCode, this._code)) { this.image && this.image.show(); this.isShowShape = true; this.setState(this.model); diff --git a/src/jmapNew/shape/graph/Responder/index.js b/src/jmapNew/shape/graph/Responder/index.js index c90c15cd2..676a17802 100644 --- a/src/jmapNew/shape/graph/Responder/index.js +++ b/src/jmapNew/shape/graph/Responder/index.js @@ -6,6 +6,7 @@ import Rect from 'zrender/src/graphic/shape/Rect'; import Text from 'zrender/src/graphic/Text'; import Polygon from 'zrender/src/graphic/shape/Polygon'; import EHighlight from '../element/EHighlight'; +import store from '@/store/index'; const defaultStyle = { distance: 12, @@ -188,7 +189,7 @@ export default class Responder extends Group { } setShowMode() {} setShowStation(stationCode) { - if (!stationCode || this.model.stationCode === stationCode) { + if (!stationCode || store.getters['map/checkDeviceShow'](stationCode, this._code)) { this.block && this.block.show(); this.isShowShape = true; this.setState(this.model); diff --git a/src/jmapNew/shape/graph/SaidLamp/index.js b/src/jmapNew/shape/graph/SaidLamp/index.js index 486afbf0f..b126ee18b 100644 --- a/src/jmapNew/shape/graph/SaidLamp/index.js +++ b/src/jmapNew/shape/graph/SaidLamp/index.js @@ -10,6 +10,7 @@ import EModeStatus from './EModeStatus'; import EUnmanned from './EUnmanned'; import EAxle from './EAxle'; import EIndicatorLight from './EIndicatorLight'; +import store from '@/store/index'; export default class SaidLamp extends Group { constructor(model, {style}) { @@ -222,7 +223,7 @@ export default class SaidLamp extends Group { } } setShowStation(stationCode) { - if (!stationCode || this.model.stationCode === stationCode) { + if (!stationCode || store.getters['map/checkDeviceShow'](stationCode, this._code)) { this.control && this.control.show(); this.isShowShape = true; this.setState(this.model); diff --git a/src/jmapNew/shape/graph/Section/index.js b/src/jmapNew/shape/graph/Section/index.js index 80fb970fc..ea430ebac 100644 --- a/src/jmapNew/shape/graph/Section/index.js +++ b/src/jmapNew/shape/graph/Section/index.js @@ -14,6 +14,7 @@ import ELimitName from './ELimitName'; // 成都三号线 限速名称 import { drawSectionStyle } from '../../../config/defaultStyle'; import EStopRouteImg from './EStopRouteImg'; import EBadShunt from './EBadShunt'; +import store from '@/store/index'; const exec = (f, ...args) => { f && f(...args); }; const DerailerMap = { @@ -594,7 +595,7 @@ export default class Section extends Group { } } setShowStation(stationCode) { - if (!stationCode || this.model.stationCode === stationCode) { + if (!stationCode || store.getters['map/checkDeviceShow'](stationCode, this._code)) { this.eachChild(item => { item.show(); }); diff --git a/src/jmapNew/shape/graph/Signal/index.js b/src/jmapNew/shape/graph/Signal/index.js index d92e17a0a..cac40d689 100644 --- a/src/jmapNew/shape/graph/Signal/index.js +++ b/src/jmapNew/shape/graph/Signal/index.js @@ -1175,7 +1175,7 @@ class Signal extends Group { } } setShowStation(stationCode) { - if (!stationCode || this.model.stationCode === stationCode) { + if (!stationCode || store.getters['map/checkDeviceShow'](stationCode, this._code)) { this.eachChild(item => { item.show(); }); diff --git a/src/jmapNew/shape/graph/SignalButton/index.js b/src/jmapNew/shape/graph/SignalButton/index.js index 6e6abfc47..3ced63ed2 100644 --- a/src/jmapNew/shape/graph/SignalButton/index.js +++ b/src/jmapNew/shape/graph/SignalButton/index.js @@ -2,6 +2,7 @@ import Group from 'zrender/src/container/Group'; import Rect from 'zrender/src/graphic/shape/Rect'; import Line from 'zrender/src/graphic/shape/Line'; import Text from 'zrender/src/graphic/Text'; +import store from '@/store/index'; export default class SignalButton extends Group { constructor(model, {style}) { @@ -131,7 +132,7 @@ export default class SignalButton extends Group { setShowMode() { } setShowStation(stationCode) { - if (!stationCode || this.model.stationCode === stationCode) { + if (!stationCode || store.getters['map/checkDeviceShow'](stationCode, this._code)) { this.eachChild(item => { item.show(); }); diff --git a/src/jmapNew/shape/graph/SplitStation/index.js b/src/jmapNew/shape/graph/SplitStation/index.js index 7a5595281..0e075bc02 100644 --- a/src/jmapNew/shape/graph/SplitStation/index.js +++ b/src/jmapNew/shape/graph/SplitStation/index.js @@ -2,6 +2,7 @@ import Group from 'zrender/src/container/Group'; import Line from 'zrender/src/graphic/shape/Line'; import Polygon from 'zrender/src/graphic/shape/Polygon'; import Text from 'zrender/src/graphic/Text'; +import store from '@/store/index'; export default class SplitStation extends Group { constructor(model, {style}) { @@ -132,7 +133,7 @@ export default class SplitStation extends Group { } } setShowStation(stationCode) { - if (!stationCode || this.model.stationCode === stationCode) { + if (!stationCode || store.getters['map/checkDeviceShow'](stationCode, this._code)) { this.eachChild(item => { item.show(); }); diff --git a/src/jmapNew/shape/graph/Station/index.js b/src/jmapNew/shape/graph/Station/index.js index dad163a71..49ef9ae33 100644 --- a/src/jmapNew/shape/graph/Station/index.js +++ b/src/jmapNew/shape/graph/Station/index.js @@ -783,8 +783,8 @@ export default class Station extends Group { this.troButton && this.troButton.hide(); } } - setShowStation(flag) { - if (flag) { + setShowStation(stationCode) { + if (!stationCode || store.getters['map/checkDeviceShow'](stationCode, this._code)) { if (this.model.visible) { this.eachChild(item => { item.show(); diff --git a/src/jmapNew/shape/graph/StationCounter/index.js b/src/jmapNew/shape/graph/StationCounter/index.js index 91d56ba47..7a74bbbf6 100644 --- a/src/jmapNew/shape/graph/StationCounter/index.js +++ b/src/jmapNew/shape/graph/StationCounter/index.js @@ -4,6 +4,7 @@ import Polyline from 'zrender/src/graphic/shape/Polyline'; import Group from 'zrender/src/container/Group'; import Text from 'zrender/src/graphic/Text'; +import store from '@/store/index'; export default class StationCounter extends Group { constructor(model, {style}) { @@ -90,7 +91,7 @@ export default class StationCounter extends Group { } setShowMode() {} setShowStation(stationCode) { - if (!stationCode || this.model.stationCode === stationCode) { + if (!stationCode || store.getters['map/checkDeviceShow'](stationCode, this._code)) { this.eachChild(item => { item.show(); }); diff --git a/src/jmapNew/shape/graph/StationDelayUnlock/index.js b/src/jmapNew/shape/graph/StationDelayUnlock/index.js index f27cc3c0b..3f061abf7 100644 --- a/src/jmapNew/shape/graph/StationDelayUnlock/index.js +++ b/src/jmapNew/shape/graph/StationDelayUnlock/index.js @@ -4,6 +4,7 @@ import Rect from 'zrender/src/graphic/shape/Rect'; import Text from 'zrender/src/graphic/Text'; import Group from 'zrender/src/container/Group'; +import store from '@/store/index'; export default class StationDelayUnlock extends Group { constructor(model, {style}) { @@ -108,7 +109,7 @@ export default class StationDelayUnlock extends Group { } setShowMode() {} setShowStation(stationCode) { - if (!stationCode || this.model.stationCode === stationCode) { + if (!stationCode || store.getters['map/checkDeviceShow'](stationCode, this._code)) { this.eachChild(item => { item.show(); }); diff --git a/src/jmapNew/shape/graph/StationStand/index.js b/src/jmapNew/shape/graph/StationStand/index.js index 37b73f717..82d911d65 100644 --- a/src/jmapNew/shape/graph/StationStand/index.js +++ b/src/jmapNew/shape/graph/StationStand/index.js @@ -38,6 +38,7 @@ import ETrainSetButton from './ETrainSetButton'; import EStationPlatform from './EStationPlatform'; import {traverseLineElements, traverseStatusElements} from '../utils/ShapeStatusCovert'; +import store from '@/store/index'; class StationStand extends Group { constructor(model, {style, mapDevice}) { @@ -248,7 +249,7 @@ class StationStand extends Group { } } setShowStation(stationCode) { - if ((!stationCode || this.model.deviceStationCode === stationCode) && this.model.visible) { + if ((!stationCode || store.getters['map/checkDeviceShow'](stationCode, this._code)) && this.model.visible) { this.eachChild(item => { item.show(); }); diff --git a/src/jmapNew/shape/graph/StationTurnBack/index.js b/src/jmapNew/shape/graph/StationTurnBack/index.js index e7cc18eab..5cb821923 100644 --- a/src/jmapNew/shape/graph/StationTurnBack/index.js +++ b/src/jmapNew/shape/graph/StationTurnBack/index.js @@ -4,6 +4,7 @@ import Text from 'zrender/src/graphic/Text'; import Rect from 'zrender/src/graphic/shape/Rect'; import EFoldbackMode from './EFoldbackMode'; import EMouse from './EMouse'; +import store from '@/store/index'; export default class StationTurnBack extends Group { constructor(model, {style, lineCode}) { @@ -198,7 +199,7 @@ export default class StationTurnBack extends Group { } } setShowStation(stationCode) { - if (!stationCode || this.model.stationCode === stationCode) { + if (!stationCode || store.getters['map/checkDeviceShow'](stationCode, this._code)) { this.eachChild(item => { item.show(); }); diff --git a/src/jmapNew/shape/graph/Switch/index.js b/src/jmapNew/shape/graph/Switch/index.js index f5f2bce1c..b819473cd 100644 --- a/src/jmapNew/shape/graph/Switch/index.js +++ b/src/jmapNew/shape/graph/Switch/index.js @@ -12,6 +12,7 @@ import ESwBlock from './ESwBlock'; import EMouse from './EMouse'; import EHighlight from '../element/EHighlight'; import ETriangle from './ETriangle'; +import store from '@/store/index'; export default class Switch extends Group { constructor(model, {style, mapDevice}) { @@ -811,7 +812,7 @@ export default class Switch extends Group { } } setShowStation(stationCode) { - if (!stationCode || this.model.stationCode === stationCode) { + if (!stationCode || store.getters['map/checkDeviceShow'](stationCode, this._code)) { this.eachChild(item => { item.show(); }); diff --git a/src/jmapNew/shape/graph/Text/index.js b/src/jmapNew/shape/graph/Text/index.js index a108df734..ee484fe2d 100644 --- a/src/jmapNew/shape/graph/Text/index.js +++ b/src/jmapNew/shape/graph/Text/index.js @@ -1,6 +1,7 @@ import Text from 'zrender/src/graphic/Text'; import Group from 'zrender/src/container/Group'; import BoundingRect from 'zrender/src/core/BoundingRect'; +import store from '@/store/index'; export default class Text2 extends Group { constructor(model, {style, lineCode}) { @@ -11,8 +12,8 @@ export default class Text2 extends Group { this.zlevel = model.zlevel; this.model = model; this.style = style; - this.z = 6; - this.lineCode = lineCode; + this.z = 6; + this.lineCode = lineCode; this.isShowShape = true; this.create(); this.setState(model); @@ -69,7 +70,7 @@ export default class Text2 extends Group { } } setShowStation(stationCode) { - if (!stationCode || this.model.stationCode === stationCode) { + if (!stationCode || store.getters['map/checkDeviceShow'](stationCode, this._code)) { this.eachChild(item => { item.show(); }); diff --git a/src/jmapNew/shape/graph/Train/EMouse.js b/src/jmapNew/shape/graph/Train/EMouse.js index 2ea16cdd3..54d7b0a69 100644 --- a/src/jmapNew/shape/graph/Train/EMouse.js +++ b/src/jmapNew/shape/graph/Train/EMouse.js @@ -96,7 +96,7 @@ class EMouse extends Group { text = ` The planned train: ${trainType} \n Table No.: ${this.device.model.serviceNumber} \n Train Trip No.: ${this.device.model.tripNumber}\n Destination: ${this.device.model.destinationCode ? this.device.model.destinationCode : ''}\n Train No.: ${this.device.model.groupNumber}\n Early or late: ${destinationText}\n Direction: ${direction ? 'up' : 'down'}\n Crew No.: \n Start Station: \n Terminal Station: \n Occupied Track: ${this.device.model.sectionModel ? (this.device.model.sectionModel.parentName ? this.device.model.sectionModel.parentName : this.device.model.sectionModel.name) : ''}\n Current Station: \n Train-ground communication: normal \n Operation Speed level: 4 \n Detained: ${this.device.model.hold ? 'Detained' : 'Normal'}\n \n 跳停状态: ${this.device.model.jump ? 'Skip to continue moving' : 'Normal'}Stationary: ${!this.device.model.stop ? 'No' : 'Yes'}\n Blocked: No \n Speed: ${this.device.model.speed || 0} km/h \n Authorized Distance: ${this.device.model.maLen || 0} m`; } else { if (this.device.style.Train.moreTrainDetail) { - text = `列车类型: ${trainType}\n来\0\0\0\0源:人工标记\n车\0组\0号: ${this.device.model.groupNumber}\n表\0\0\0\0号: ${this.device.model.serviceNumber}\n车\0次\0号: ${this.device.model.tripNumber}\n目的地号: ${this.device.model.destinationCode ? this.device.model.destinationCode : ''}\n早\0晚\0点: ${destinationText}${this.parseDt(this.device.model.dt)}\n运行方向: ${direction ? '上行' : '下行'}\nATP报告方向: ${direction ? '上行' : '下行'}\n起点站名: ${stationNames.get(this.device.model.startStation) || ''}\n终点站名: ${stationNames.get(this.device.model.endStation) || ''}\n占用轨道: ${this.device.model.sectionModel ? (this.device.model.sectionModel.parentName ? this.device.model.sectionModel.parentName : this.device.model.sectionModel.name) : ''}\n所在车站: ${stationNames.get(this.device.model.stationCode) || ''}\n车次通信: 通信车\n运行时间: ${this.device.model.runningTime}s\n停站时间: ${this.device.model.parkingRemainTime < 0 ? '无效' : `${this.device.model.parkingRemainTime}s`}\n扣车状态: ${ this.device.model.hold ? '扣车' : '正常'}\n车载扣车: 不执行\n跳停状态: ${this.device.model.jump ? '跳停' : '正常'}\n停稳状态: ${!this.device.model.stop ? '未停稳' : '停稳'}\n阻塞状态: 无\n列车状态: ${this.device.model.runLevel || 'CTC'}车\n最高信号系统控制: CTC\n驾驶模式: ${this.device.model.driveMode}模式\n最高ATP模式: AM\nATP1状态: 激活\nATP2状态: 备用\n速度: ${this.device.model.speed || 0} km/h\n车门状态: ${this.device.model.model.doorCloseLock ? '关闭' : closeDoorTip}\n制动状态: 无紧急制动\n停车保证: 可保证停车\n站台无法进入: 否\n前方站台停车点: 中间\n折返策略: ${turnBackStrategyMap.get(this.device.model.turnBackStrategy) || ''}\n折返状态: ${turnBackStatusMap.get(this.device.model.turnBackStatus)}\n屏蔽门开门许可: 是\n运营里程: 无效\n总重量: 196T\n车长: 11860cm\n列车编组: 1`; + text = `列车类型: ${trainType}\n来\0\0\0\0源:人工标记\n车\0组\0号: ${this.device.model.groupNumber}\n表\0\0\0\0号: ${this.device.model.serviceNumber}\n车\0次\0号: ${this.device.model.tripNumber}\n目的地号: ${this.device.model.destinationCode ? this.device.model.destinationCode : ''}\n早\0晚\0点: ${destinationText}${this.parseDt(this.device.model.dt)}\n运行方向: ${direction ? '上行' : '下行'}\nATP报告方向: ${direction ? '上行' : '下行'}\n起点站名: ${stationNames.get(this.device.model.startStation) || ''}\n终点站名: ${stationNames.get(this.device.model.endStation) || ''}\n占用轨道: ${this.device.model.sectionModel ? (this.device.model.sectionModel.parentName ? this.device.model.sectionModel.parentName : this.device.model.sectionModel.name) : ''}\n所在车站: ${stationNames.get(this.device.model.stationCode) || ''}\n车次通信: 通信车\n运行时间: ${this.device.model.runningTime}s\n停站时间: ${this.device.model.parkingRemainTime < 0 ? '无效' : `${this.device.model.parkingRemainTime}s`}\n扣车状态: ${ this.device.model.hold ? '扣车' : '正常'}\n车载扣车: 不执行\n跳停状态: ${this.device.model.jump ? '跳停' : '正常'}\n停稳状态: ${!this.device.model.stop ? '未停稳' : '停稳'}\n阻塞状态: 无\n列车状态: ${this.device.model.runLevel === 'CBTC' ? 'CTC' : this.device.model.runLevel}车\n最高信号系统控制: CTC\n驾驶模式: ${this.device.model.driveMode}模式\n最高ATP模式: AM\nATP1状态: 激活\nATP2状态: 备用\n速度: ${this.device.model.speed || 0} km/h\n车门状态: ${this.device.model.model.doorCloseLock ? '关闭' : closeDoorTip}\n制动状态: 无紧急制动\n停车保证: 可保证停车\n站台无法进入: 否\n前方站台停车点: 中间\n折返策略: ${turnBackStrategyMap.get(this.device.model.turnBackStrategy) || ''}\n折返状态: ${turnBackStatusMap.get(this.device.model.turnBackStatus)}\n屏蔽门开门许可: 是\n运营里程: 无效\n总重量: 196T\n车长: 11860cm\n列车编组: 1`; } else { text = `列车类型: ${trainType} \n表\0\0\0\0号: ${this.device.model.serviceNumber}\n车\0次\0号: ${this.device.model.tripNumber}\n目的地号: ${this.device.model.destinationCode ? this.device.model.destinationCode : ''}\n车\0组\0号: ${this.device.model.groupNumber}\n早\0晚\0点: ${destinationText}\n运行方向: ${direction ? '上行' : '下行'}\n乘务组号: \n起点站名: ${stationNames.get(this.device.model.startStation) || ''}\n终点站名: ${stationNames.get(this.device.model.endStation) || ''}\n占用轨道: ${this.device.model.sectionModel ? (this.device.model.sectionModel.parentName ? this.device.model.sectionModel.parentName : this.device.model.sectionModel.name) : ''}\n所在车站: \n车地通信: 正常\n运行等级: 4\n扣车状态: ${this.device.model.hold ? '扣车' : '正常'}\n跳停状态: ${this.device.model.jump ? '跳停' : '正常'} \n停稳状态: ${!this.device.model.stop ? '未停稳' : '停稳'}\n阻塞状态: 无\n列车速度: ${this.device.model.speed || 0} km/h\n列车移动授权距离: ${this.device.model.maLen || 0} m`; } diff --git a/src/jmapNew/shape/graph/Train/index.js b/src/jmapNew/shape/graph/Train/index.js index 779d11620..853a93f29 100644 --- a/src/jmapNew/shape/graph/Train/index.js +++ b/src/jmapNew/shape/graph/Train/index.js @@ -455,24 +455,22 @@ export default class Train extends Group { } setShowMode() { } initShowStation(model) { - if (model.trainWindowModel && model.trainWindowModel.instance && !model.trainWindowModel.instance.isShowShape) { + if (model.trainWindowModel && model.trainWindowModel.instance && !store.getters['map/checkDeviceShow'](model.trainWindowModel.instance.stationCode, model.sectionModel.code)) { this.eachChild(item => { item.hide(); }); } } setShowStation(stationCode) { - if ((this.model.sectionModel && this.model.sectionModel.stationCode === stationCode) || !stationCode) { + if ((this.model.sectionModel && store.getters['map/checkDeviceShow'](stationCode, this.model.sectionModel.code)) || !stationCode) { this.eachChild(item => { item.show(); }); - this.isShowShape = true; this.setState(this.model, this); } else { this.eachChild(item => { item.hide(); }); - this.isShowShape = false; } } // screenShow() { diff --git a/src/jmapNew/shape/graph/TrainWindow/index.js b/src/jmapNew/shape/graph/TrainWindow/index.js index 8b4682fc9..46bbcca54 100644 --- a/src/jmapNew/shape/graph/TrainWindow/index.js +++ b/src/jmapNew/shape/graph/TrainWindow/index.js @@ -15,6 +15,7 @@ class TrainWindow extends Group { this.z = 9; this.prdType = store.state.training.prdType; this.isShowShape = model.isShowShape; + this.stationCode = ''; this.create(); this.createMouseEvent(); this.setState(model); @@ -92,19 +93,21 @@ class TrainWindow extends Group { }); } } - setShowStation(flag) { - if (flag) { - this.eachChild(item => { - item.show(); - }); - this.isShowShape = true; - this.setState(this.model); - } else { - this.eachChild(item => { - item.hide(); - }); - this.isShowShape = false; - } + setShowStation(stationCode) { + this.stationCode = stationCode; + // console.log(this.model); + // if (!stationCode || store.getters['map/checkDeviceShow'](stationCode, this.model.sectionModel)) { + // this.eachChild(item => { + // item.show(); + // }); + // this.isShowShape = true; + // this.setState(this.model); + // } else { + // this.eachChild(item => { + // item.hide(); + // }); + // this.isShowShape = false; + // } } getAnchorPoint() { return this.model.point || this.model.position; diff --git a/src/jmapNew/shape/graph/ZcControl/index.js b/src/jmapNew/shape/graph/ZcControl/index.js index 2984d4c41..04d21ab79 100644 --- a/src/jmapNew/shape/graph/ZcControl/index.js +++ b/src/jmapNew/shape/graph/ZcControl/index.js @@ -4,6 +4,7 @@ import Group from 'zrender/src/container/Group'; import EControl from '../element/EControl'; import EMouse from './EMouse'; +import store from '@/store/index'; export default class ZcControl extends Group { constructor(model, {style}) { @@ -110,7 +111,7 @@ export default class ZcControl extends Group { } setShowMode() {} setShowStation(stationCode) { - if (!stationCode || this.model.stationCode === stationCode) { + if (!stationCode || store.getters['map/checkDeviceShow'](stationCode, this._code)) { this.eachChild(item => { item.show(); }); diff --git a/src/jmapNew/shape/graph/checkBox/checkBox.js b/src/jmapNew/shape/graph/checkBox/checkBox.js index 9d35a4955..add22a186 100644 --- a/src/jmapNew/shape/graph/checkBox/checkBox.js +++ b/src/jmapNew/shape/graph/checkBox/checkBox.js @@ -8,7 +8,7 @@ export default class checkBox extends Group { this._type = model._type; this._code = model.code; this.zlevel = model.zlevel; - this.z = model.z; + this.z = model.z || 999; this.create(); } @@ -16,7 +16,7 @@ export default class checkBox extends Group { const model = this.model; this.box = new Rect({ zlevel: model.zlevel, - z: model.z, + z: model.z || 999, draggable: false, shape: { x: model.point.x, diff --git a/src/store/modules/map.js b/src/store/modules/map.js index 8e9b56e3c..bfe1812de 100644 --- a/src/store/modules/map.js +++ b/src/store/modules/map.js @@ -665,6 +665,19 @@ const map = { } return device; + }, + checkDeviceShow: (state) => (stationCode, deviceCode) => { + if (state.map && state.map.displayList && state.map.displayList.length) { + let flag = false; + state.map.displayList.forEach(item => { + if (item.stationCodeList.includes(stationCode) && item.elementList.includes(deviceCode)) { + flag = true; + } + }); + return flag; + } else { + return true; + } } }, diff --git a/src/utils/baseUrl.js b/src/utils/baseUrl.js index 5c8bc402a..8b75cd8e6 100644 --- a/src/utils/baseUrl.js +++ b/src/utils/baseUrl.js @@ -2,11 +2,11 @@ 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.107:9000'; // 袁琪 - // BASE_API = 'http://192.168.3.250:9000'; // 旭强 有线 + // BASE_API = 'http://192.168.2.175:9000'; // 旭强 有线 // BASE_API = 'http://192.168.8.114:9000'; // 旭强 无线 - // BASE_API = 'http://192.168.3.120:9000'; // 张赛 + BASE_API = 'http://192.168.2.183: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/newMap/jlmapNew/index.vue b/src/views/newMap/jlmapNew/index.vue index e634b4e0b..d6a20f1a2 100644 --- a/src/views/newMap/jlmapNew/index.vue +++ b/src/views/newMap/jlmapNew/index.vue @@ -499,7 +499,6 @@ export default { } }); this.$jlmap.updateShowMode(list, showMode); - EventBus.$emit('select_DrawType', showMode); }, setShowStation(stationCode, setCenter) { const lineCode = this.$store.getters['map/lineCode']; diff --git a/src/views/newMap/newMapdraft/mapoperate/index.vue b/src/views/newMap/newMapdraft/mapoperate/index.vue index 1664d54cd..9eea48018 100644 --- a/src/views/newMap/newMapdraft/mapoperate/index.vue +++ b/src/views/newMap/newMapdraft/mapoperate/index.vue @@ -8,8 +8,15 @@ {{ mapInfo.name }} - 绘图显隐 + 显隐 {{ $t('map.advanced') }} + + 配置 + + 现地配置 + 大屏配置 + + 数据操作 @@ -19,7 +26,7 @@ {{ $t('map.save') }} - + -