From 9ec64f1eeb6e0a8f5b1afd2ce754749bf0f1fe7f Mon Sep 17 00:00:00 2001 From: zyy <1787816799@qq.com> Date: Thu, 23 Jul 2020 17:09:29 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=8A=A0=E8=BD=BD=E6=96=B9?= =?UTF-8?q?=E5=BC=8F=E5=8F=8A=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jmapNew/map.js | 15 +++--- src/jmapNew/shape/OutFrame/index.js | 2 +- src/jmapNew/shape/StationTurnBack/index.js | 4 +- src/views/newMap/displayNew/designIndex.vue | 41 ++++++++------- src/views/newMap/displayNew/index.vue | 50 +++++++++---------- src/views/newMap/displayNew/menuSchema.vue | 27 +++++----- src/views/newMap/newMapdraft/index.vue | 2 +- .../newMap/newMapdraft/mapoperate/index.vue | 1 + .../newMap/newMapdraft/mapoperate/station.vue | 4 +- src/views/scriptManage/home.vue | 3 +- 10 files changed, 74 insertions(+), 75 deletions(-) diff --git a/src/jmapNew/map.js b/src/jmapNew/map.js index b33d1af11..edcd12a48 100644 --- a/src/jmapNew/map.js +++ b/src/jmapNew/map.js @@ -130,7 +130,7 @@ class Jlmap { const type = elem._type; // 列车不需要设置默认状态 type != deviceType.Train && list.push(Object.assign({ code, _type: type }, this.defaultStateDict[type])); - }); + }); this.update(list); if (this.methods.stateLoaded instanceof Function) { this.methods.stateLoaded(list); } @@ -213,10 +213,6 @@ class Jlmap { const scaleX = Math.floor((((opts.width - 200) * num) / rect.width) * 100) / 100; const scaleY = Math.floor(((opts.height - 100) / (rect.height * num)) * 100) / 100; const scale = Math.min(scaleX, scaleY); - // console.log('scaleX', scaleX, 'scaleY', scaleY, 'scale', scale, offsetY, rect.height * scale); - - // const offsetHeight = (offsetY - (rect.height * scale)) / 2; // 高度差 - // console.log(offsetHeight, opts.height, screenSplit, offsetY, rect, '缩放对比>', scaleX, scaleY); for (let i = 0; i < splitList.length; i++) { let offsetX = ''; @@ -332,14 +328,15 @@ class Jlmap { const oDevice = this.mapDevice[code] || deviceFactory(type, elem); this.hookHandle(oDevice, elem); }); - } + } + // 模式选择 -> 更新 updateShowMode(list, showMode) { this.showConfig.showMode = showMode; (list || []).forEach(elem => { const code = elem.code; const type = elem._type; - const oDevice = this.mapDevice[code] || deviceFactory(type, elem, this.showConfig); - oDevice.showMode = showMode; + const oDevice = this.mapDevice[code] || deviceFactory(type, elem, this.showConfig); + oDevice.showMode = showMode; this.$painter.updateShowMode(oDevice); }); this.$painter.$transformHandle.revisibleAll(); @@ -468,7 +465,7 @@ class Jlmap { this.$painter.update(oDevice); // } } - } + } }); if (this.isUpdateShowTrainList) { store.dispatch('map/setActiveTrainList'); diff --git a/src/jmapNew/shape/OutFrame/index.js b/src/jmapNew/shape/OutFrame/index.js index 23875e2dd..66c86e3cd 100644 --- a/src/jmapNew/shape/OutFrame/index.js +++ b/src/jmapNew/shape/OutFrame/index.js @@ -53,7 +53,7 @@ export default class OutFrame extends Group { if (showMode == '04') { this.box && this.box.hide(); return; - } + } if (!showConditions || showConditions === '01' || showMode === showConditions) { this.box && this.box.show(); this.setState(this.model); diff --git a/src/jmapNew/shape/StationTurnBack/index.js b/src/jmapNew/shape/StationTurnBack/index.js index d6a278ebf..f31d3496d 100644 --- a/src/jmapNew/shape/StationTurnBack/index.js +++ b/src/jmapNew/shape/StationTurnBack/index.js @@ -137,8 +137,8 @@ export default class StationTurnBack extends Group { this.eachChild(item => { item.show(); }); - this.isShowShape = true; - this.setState(this.model); + // this.isShowShape = true; + // this.setState(this.model); } else { this.eachChild(item => { item.hide(); diff --git a/src/views/newMap/displayNew/designIndex.vue b/src/views/newMap/displayNew/designIndex.vue index b4c036b1a..fad5390ac 100644 --- a/src/views/newMap/displayNew/designIndex.vue +++ b/src/views/newMap/displayNew/designIndex.vue @@ -16,7 +16,7 @@ :offset="offset" :offset-bottom="offsetBottom" :show-station="showStation" - :station-list="stationList" + :station-list="stationListMode" :show-select-station="showSelectStation" @switchMode="switchMode" @selectQuest="selectQuest" @@ -33,6 +33,7 @@