新建区段代码调整

This commit is contained in:
joylink_cuiweidong 2019-11-29 18:16:21 +08:00
parent c203ede054
commit 9a6647f256

View File

@ -841,7 +841,12 @@ export default {
const end_x = endModel.points[0].x;
const start_y = startModel.points[startModel.points.length - 1].y;
const end_y = endModel.points[0].y;
if(this.createModel.leftSection==this.createModel.rightSection){
this.$messageBox('左关联区段不能和右关联区段相同');
return;
}
if (start_x == end_x && start_y == end_y) {
this.$messageBox('左关联区段终点不能和右关联区段起点相同');
return;
}
model.points = [