调整逻辑区段重新生成及修改逻辑调整
This commit is contained in:
parent
b4a2e19d77
commit
6c7cfe4648
@ -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;
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user