From 5818ec1747638edc58b9802dc9330a07c89d0f06 Mon Sep 17 00:00:00 2001
From: SHAOJIAHAO <55341701@qq.com>
Date: Mon, 6 Mar 2023 12:02:37 +0800
Subject: [PATCH] =?UTF-8?q?[=E5=AE=8C=E5=96=84]=E6=96=B0=E5=A2=9E=E6=95=A3?=
=?UTF-8?q?=E8=A3=85=E6=B2=B9=E6=A0=87=E6=B3=A8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../host-config/host-config.component.ts | 24 ++--
.../image-label/image-label.component.html | 11 +-
.../image-label/image-label.component.ts | 128 ++++++++++++++++--
.../image-label2/image-label2.component.html | 1 +
4 files changed, 140 insertions(+), 24 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 1868039..7272430 100644
--- a/src/app/system-management/host-config/host-config.component.ts
+++ b/src/app/system-management/host-config/host-config.component.ts
@@ -246,11 +246,6 @@ export class HostConfigComponent implements OnInit {
this.message.create('error', '请先下发source.yaml配置');
}
} else if (this.hostType == '黄海') {
- if (item.type === 1) {
- this.message.info('加油区不需要标注');
- return;
- }
-
const element = document.documentElement;
if (element.requestFullscreen) {
//进入全屏
@@ -1213,12 +1208,11 @@ rule_threshold:
smoke_th: 0.8,
phone_th: 0.8,
bulkoil_th: 0.8,
- fileUpload:
- 'http://121.36.37.70:8906/api/Objects/sinochemtest/violations',
- alarmUpload: 'http://121.36.37.70:8208/api/Data/ViolationRecordPush',
+ fileUpload: 'https://gas.anxincloud.cn/api/Objects/gas/violations',
+ alarmUpload: 'https://gas.anxincloud.cn/api/Data/ViolationRecordPush',
unloadingProUpload:
- 'http://121.36.37.70:8208/api/Data/OilUnloadingProcessPush',
- prefix: '/api/Objects/sinochemtest',
+ 'https://gas.anxincloud.cn/api/Data/OilUnloadingProcessPush',
+ prefix: '/api/Objects/gas',
};
this.listOfData.forEach((item: any) => {
if (item.type === 0) {
@@ -1231,10 +1225,16 @@ rule_threshold:
});
}
if (item.type === 1) {
- obj.sources.push({
+ let objitem: any = {
nickName: '加油区',
rtsp: item.uri,
- });
+ };
+ if (item.dimensionedPointsHuanghaiObj.bulkoilROI.length !== 0) {
+ objitem.bulkoilROI = pointsArrTransition(
+ item.dimensionedPointsHuanghaiObj.bulkoilROI
+ );
+ }
+ obj.sources.push(objitem);
}
if (item.type === 2) {
obj.sources.push({
diff --git a/src/app/system-management/image-label/image-label.component.html b/src/app/system-management/image-label/image-label.component.html
index 019f94c..56cf45f 100644
--- a/src/app/system-management/image-label/image-label.component.html
+++ b/src/app/system-management/image-label/image-label.component.html
@@ -14,9 +14,9 @@
删除
-