Browse Source

[完善]颠倒十字箭头坐标

develop
邵佳豪 3 years ago
parent
commit
fdb47dcb74
  1. 4
      src/app/system-management/host-config/host-config.component.ts

4
src/app/system-management/host-config/host-config.component.ts

@ -355,7 +355,7 @@ logging_interval : 600
this.listOfData.forEach((item: any, index) => { this.listOfData.forEach((item: any, index) => {
if (item.type == 2) { if (item.type == 2) {
xieyouqu.push(item) xieyouqu.push(item)
console.log('xxxxxxxxx',item.order) // console.log('xxxxxxxxx',item.order)
order = item.order order = item.order
} }
@ -382,7 +382,7 @@ class-id=-1
} }
if ((item.type == 2 || item.type == 3) && item.dimensionedPointsObj && item.dimensionedPointsObj.arrow.length != 0) { if ((item.type == 2 || item.type == 3) && item.dimensionedPointsObj && item.dimensionedPointsObj.arrow.length != 0) {
let arrowArr = item.dimensionedPointsObj.arrow let arrowArr = item.dimensionedPointsObj.arrow
let str = arrowArr[0].startX + ';' + arrowArr[0].startY + ';' + arrowArr[0].endX + ';' + arrowArr[0].endY + ';' + arrowArr[1].startX + ';' + arrowArr[1].startY + ';' + arrowArr[1].endX + ';' + arrowArr[1].endY let str = arrowArr[1].startX + ';' + arrowArr[1].startY + ';' + arrowArr[1].endX + ';' + arrowArr[1].endY + ';' + arrowArr[0].startX + ';' + arrowArr[0].startY + ';' + arrowArr[0].endX + ';' + arrowArr[0].endY
console.log('十字箭头', str) console.log('十字箭头', str)
config1 += ` config1 += `
[line-crossing-stream-${item.order}] [line-crossing-stream-${item.order}]

Loading…
Cancel
Save