From 6fb6ae98671a47af764a492b11ffa5c8891d31f7 Mon Sep 17 00:00:00 2001 From: zyy <1787816799@qq.com> Date: Thu, 12 Dec 2019 10:05:28 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E7=AB=99=E5=8F=B0=EF=BC=8C?= =?UTF-8?q?=E5=B1=8F=E8=94=BD=E9=97=A8=E9=BB=98=E8=AE=A4=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jmapNew/shape/Psd/index.js | 2 +- src/views/newMap/newMapdraft/mapoperate/psdDraft.vue | 8 ++++---- src/views/newMap/newMapdraft/mapoperate/stationstand.vue | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/jmapNew/shape/Psd/index.js b/src/jmapNew/shape/Psd/index.js index 8a661416c..2fbdc93ba 100644 --- a/src/jmapNew/shape/Psd/index.js +++ b/src/jmapNew/shape/Psd/index.js @@ -23,7 +23,7 @@ export default class Line2 extends Group { z: this.z, style: style, x: model.position.x, - y: model.position.y, + y: model.position.y - (model.height / 2), width: model.width || style.StationStand.safetyDoor.width, height: model.height || style.StationStand.safetyDoor.height, show: model.hasDoor diff --git a/src/views/newMap/newMapdraft/mapoperate/psdDraft.vue b/src/views/newMap/newMapdraft/mapoperate/psdDraft.vue index 670563d51..4321f4097 100644 --- a/src/views/newMap/newMapdraft/mapoperate/psdDraft.vue +++ b/src/views/newMap/newMapdraft/mapoperate/psdDraft.vue @@ -99,7 +99,7 @@ export default { standCode: '', // 关联站台唯一code standTrackCode: '', // 关联站台轨编码 width: 60, - height: 5, + height: 3, position: { x: 0, y: 0 }, doorLocationType: '01' // 显示方向朝上或朝下 }, @@ -107,7 +107,7 @@ export default { addModel: { standCode: '', width: 60, - height: 4, + height: 3, standTrackCode: '', doorLocationType: '01' // 显示方向朝上或朝下 } @@ -258,9 +258,9 @@ export default { }; this.stationStandList.forEach(elem => { if (elem.code === this.addModel.standCode) { - model.position = { x: elem.position.x, y: elem.position.y - (elem.height / 2) - 15 }; + model.position = { x: elem.position.x, y: elem.position.y - (elem.height / 2) - 8 }; if (this.addModel.doorLocationType == '01') { // 朝下 - model.position = { x: elem.position.x, y: elem.position.y + (elem.height / 2) + 15 }; + model.position = { x: elem.position.x, y: elem.position.y + (elem.height / 2) + 8 }; } } }); diff --git a/src/views/newMap/newMapdraft/mapoperate/stationstand.vue b/src/views/newMap/newMapdraft/mapoperate/stationstand.vue index 77325a2ee..b21ad8dc6 100644 --- a/src/views/newMap/newMapdraft/mapoperate/stationstand.vue +++ b/src/views/newMap/newMapdraft/mapoperate/stationstand.vue @@ -322,7 +322,7 @@ export default { this.$refs.make.validate((valid) => { if (valid) { const models = []; - const space = 15; + const space = 8; const Standuid = getUID('PF', this.stationStandList); const model = { _type: 'StationStand', @@ -351,7 +351,7 @@ export default { code: uid, name: `Psd${this.psdList.length + 1}`, width: this.addModel.width, - height: 4, + height: 3, standCode: Standuid, // 关联站台唯一code standTrackCode: this.addModel.standTrackCode, // 关联站台轨编码 position: { @@ -372,7 +372,7 @@ export default { code: uid, name: `Psd${[...this.psdList, ...arr].length + 1}`, width: this.addModel.width, - height: 4, + height: 3, standCode: Standuid, // 关联站台唯一code standTrackCode: '', // 关联站台轨编码 position: {