Merge branch 'test_dispaly' of https://git.code.tencent.com/lian-cbtc/jl-client into test_dispaly1
This commit is contained in:
commit
06e2e32150
@ -99,7 +99,12 @@ export default {
|
||||
} else {
|
||||
sectionStart = item.points.length == 2 ? item.points[item.points.length - 1] : item.points[1];
|
||||
}
|
||||
if ((sectionStart.y == section.points[0].y) || (sectionStart.x == section.points[0].x)) { // 是否水平拿倒数第二个点判断
|
||||
const dy = section.points[1].y - section.points[0].y;
|
||||
const dx = section.points[1].x - section.points[0].x;
|
||||
const startDx = sectionStart.x - section.points[0].x;
|
||||
const startDy = sectionStart.y - section.points[0].y;
|
||||
if ((sectionStart.y == section.points[0].y) || (sectionStart.x == section.points[0].x) ||
|
||||
(dy * startDx == dx * startDy)) { // 是否水平拿倒数第二个点判断
|
||||
sectionB = item;
|
||||
} else {
|
||||
sectionC = item;
|
||||
@ -239,8 +244,6 @@ export default {
|
||||
cancelButtonText: this.$t('tip.cancel'),
|
||||
type: 'warning'
|
||||
}).then((res) => {
|
||||
// console.log(createArr, changeSectionLists);
|
||||
// debugger;
|
||||
const modelsList = this.createSwitchSection(createArr, changeSectionList);
|
||||
modelsList.forEach(item => {
|
||||
createArr.push(item);
|
||||
|
Loading…
Reference in New Issue
Block a user