Browse Source

[完善]修改,为;

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

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

@ -361,10 +361,10 @@ logging_interval : 600
if (item.type == 0 && item.dimensionedPointsObj && item.dimensionedPointsObj.polygon.length != 0) {
let str = ''
item.dimensionedPointsObj ? item.dimensionedPointsObj.polygon.forEach(element => {
str += element.x + ','
str += element.y + ','
str += element.x + ';'
str += element.y + ';'
}) : 0;
str = str.substring(0, str.lastIndexOf(','))
str = str.substring(0, str.lastIndexOf(';'))
console.log('进出口多边形', str)
config1 += `
## Per stream configuration
@ -381,7 +381,7 @@ class-id=-1
}
if ((item.type == 2 || item.type == 3) && item.dimensionedPointsObj && item.dimensionedPointsObj.arrow.length != 0) {
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[0].startX + ';' + arrowArr[0].startY + ';' + arrowArr[0].endX + ';' + arrowArr[0].endY + ';' + arrowArr[1].startX + ';' + arrowArr[1].startY + ';' + arrowArr[1].endX + ';' + arrowArr[1].endY
console.log('十字箭头', str)
config1 += `
[line-crossing-stream-${item.order}]

Loading…
Cancel
Save