|
|
|
@ -355,6 +355,7 @@ logging_interval : 600
|
|
|
|
|
this.listOfData.forEach((item: any, index) => { |
|
|
|
|
if (item.type == 2) { |
|
|
|
|
xieyouqu.push(item) |
|
|
|
|
console.log('xxxxxxxxx',item.order) |
|
|
|
|
order = item.order |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -404,13 +405,20 @@ mode=strict
|
|
|
|
|
|
|
|
|
|
let xieyouguan = ''; |
|
|
|
|
let jingdian = ''; |
|
|
|
|
(xieyouqu.length != 0 && xieyouqu[0].dimensionedPointsObj && xieyouqu[0].dimensionedPointsObj.rectangle.length != 0) ? xieyouqu[0].dimensionedPointsObj.rectangle.forEach(element => { |
|
|
|
|
if (xieyouqu.length != 0 && xieyouqu[0].dimensionedPointsObj && xieyouqu[0].dimensionedPointsObj.rectangle.length != 0) { |
|
|
|
|
xieyouqu[0].dimensionedPointsObj.rectangle.forEach(element => { |
|
|
|
|
if (element.oilUnloadingArea) { |
|
|
|
|
xieyouguan = element.x + ',' + element.y + ',' + element.width + ',' + element.height |
|
|
|
|
} else { |
|
|
|
|
jingdian = element.x + ',' + element.y + ',' + element.width + ',' + element.height |
|
|
|
|
} |
|
|
|
|
}) : ''; |
|
|
|
|
}) |
|
|
|
|
} else { |
|
|
|
|
xieyouguan = '0,0,0,0' |
|
|
|
|
jingdian = '0,0,0,0' |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
(order != undefined) ? null : order = this.listOfData[this.listOfData.length - 1].order + 1 |
|
|
|
|
console.log('泄油管区域', xieyouguan) |
|
|
|
|
console.log('静电接地', jingdian) |
|
|
|
|
config2 = `# The all in one config file.
|
|
|
|
|