From 6c7cfe46482a9836230c81c78d66d4817aebd954 Mon Sep 17 00:00:00 2001 From: zyy <1787816799@qq.com> Date: Fri, 10 Apr 2020 11:19:48 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E9=80=BB=E8=BE=91=E5=8C=BA?= =?UTF-8?q?=E6=AE=B5=E9=87=8D=E6=96=B0=E7=94=9F=E6=88=90=E5=8F=8A=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E9=80=BB=E8=BE=91=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/newMap/newMapdraft/mapoperate/section/index.vue | 4 ++-- .../newMap/newMapdraft/mapoperate/section/logicBlock.vue | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/newMap/newMapdraft/mapoperate/section/index.vue b/src/views/newMap/newMapdraft/mapoperate/section/index.vue index 70cac2aa9..6f8bd1d46 100644 --- a/src/views/newMap/newMapdraft/mapoperate/section/index.vue +++ b/src/views/newMap/newMapdraft/mapoperate/section/index.vue @@ -488,7 +488,7 @@ export default { if (section.parentCode === model.code) { const copySection = deepAssign({}, section); copySection.logicSectionShow = model.logicSectionShow; - copySection.lengthFact = (Number(model.lengthFact) / model.logicSectionCodeList.length).toFixed(3); + // copySection.lengthFact = (Number(model.lengthFact) / model.logicSectionCodeList.length).toFixed(3); copySection.stationCode = model.stationCode; // 给元素 子逻辑区段设置 设备集中站 models.push(copySection); } else if (model.code !== section.code && (section.type === '01' || section.type === '03')) { @@ -522,7 +522,7 @@ export default { } }); lengthFact += model.lengthFact; - copySection.lengthFact = lengthFact.toFixed(3); + copySection.lengthFact = lengthFact.toFixed(3); // 自动获取 物理区段的 实际长度 是由逻辑区段相加 if (copySection.lengthFact > 5) { copySection.leftStopPointOffset = 5; copySection.rightStopPointOffset = copySection.lengthFact - 5; diff --git a/src/views/newMap/newMapdraft/mapoperate/section/logicBlock.vue b/src/views/newMap/newMapdraft/mapoperate/section/logicBlock.vue index d45036117..6ce986529 100644 --- a/src/views/newMap/newMapdraft/mapoperate/section/logicBlock.vue +++ b/src/views/newMap/newMapdraft/mapoperate/section/logicBlock.vue @@ -173,7 +173,7 @@ export default { trainPosType: model.trainPosType, points: points, curve: false, - lengthFact: 0, + lengthFact: lineLength.toFixed(3), trainWindowCode: '', kmRangeRight: model.kmRangeRight, kmRangeLeft: model.kmRangeLeft,