调整逻辑区段重新生成及修改逻辑调整

This commit is contained in:
zyy 2020-04-10 11:19:48 +08:00
parent b4a2e19d77
commit 6c7cfe4648
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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,