From 9f78d5874739cb87f10d030e66a01b25a0876f5d Mon Sep 17 00:00:00 2001 From: SHAOJIAHAO <55341701@qq.com> Date: Tue, 17 May 2022 10:47:32 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=AE=8C=E5=96=84]=E4=BF=AE=E6=94=B9,?= =?UTF-8?q?=E4=B8=BA;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../host-config/host-config.component.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/system-management/host-config/host-config.component.ts b/src/app/system-management/host-config/host-config.component.ts index 168acae..cae561a 100644 --- a/src/app/system-management/host-config/host-config.component.ts +++ b/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}]