逻辑区段增加偏移量参数

This commit is contained in:
fan 2019-12-17 10:31:12 +08:00
parent a1be3cf879
commit 4cecc2d630

View File

@ -910,17 +910,6 @@ export default {
copySection.logicSectionShow = model.logicSectionShow; copySection.logicSectionShow = model.logicSectionShow;
// copySection.trainPosType = model.trainPosType; // copySection.trainPosType = model.trainPosType;
models.push(copySection); models.push(copySection);
} else if ( model.code !== section.code && section.type === '02' && model.type === '02' && section.parentCode === model.parentCode) {
const copySection = deepAssign({}, section);
if (this.checkPointsCoincide(this.oldPoint[0], section.points[section.points.length - 1])) {
copySection.points[copySection.points.length - 1].x = model.points[0].x;
copySection.points[copySection.points.length - 1].y = model.points[0].y;
}
if (this.checkPointsCoincide(this.oldPoint[this.oldPoint.length - 1], section.points[0])) {
copySection.points[0].x = model.points[model.points.length - 1].x;
copySection.points[0].y = model.points[model.points.length - 1].y;
}
models.push(copySection);
} else if (model.code !== section.code && (section.type === '01' || section.type === '03')) { } else if (model.code !== section.code && (section.type === '01' || section.type === '03')) {
const copySection = deepAssign({}, section); const copySection = deepAssign({}, section);
let updataFlag = false; let updataFlag = false;