diff --git a/src/app/system-management/image-label2/image-label2.component.ts b/src/app/system-management/image-label2/image-label2.component.ts
index 74e6610..2200f6e 100644
--- a/src/app/system-management/image-label2/image-label2.component.ts
+++ b/src/app/system-management/image-label2/image-label2.component.ts
@@ -255,6 +255,7 @@ export class ImageLabel2Component implements OnInit {
}
//初始化 canvas画布 监听事件
+
initCanvasEvent(canvas) {
let context = canvas.getContext('2d');
canvas.onmousedown = (e) => { //鼠标按下事件
@@ -312,6 +313,8 @@ export class ImageLabel2Component implements OnInit {
context.strokeStyle = this.oilUnloadingArea ? "green" : "red";
let element = this.getOblongInfo(this.downx, this.downy, moveX, moveY)
context.strokeRect(element.x, element.y, element.width, element.height);
+ context.font = '22px Arial';
+ context.fillText('高度:' + element.height, element.x + 3, element.y + 22);
}
}
}
@@ -429,6 +432,8 @@ export class ImageLabel2Component implements OnInit {
context.strokeStyle = element.oilUnloadingArea ? "green" : "red";
context.lineWidth = 3;
context.strokeRect(element.x, element.y, element.width, element.height);
+ context.font = '22px Arial';
+ context.fillText('高度:' + element.height, element.x + 3, element.y + 22);
});
}
// console.log(789, pointsList)
@@ -527,6 +532,7 @@ export class ImageLabel2Component implements OnInit {
//canvas 绘制矩形
drawOblong(oblongList, context) {
+ console.log('xxxxxxxxxxxxxxxxxxxxxxxxxxi')
context.clearRect(0, 0, this.canvasWidth, this.canvasHeight);
this.copyCanvas ? context.putImageData(this.copyCanvas, 0, 0) : null;
if (this.markType === 2) { //同时绘制 直线箭头
@@ -537,6 +543,8 @@ export class ImageLabel2Component implements OnInit {
context.strokeStyle = element.oilUnloadingArea ? "green" : "red";
context.lineWidth = 3;
context.strokeRect(element.x, element.y, element.width, element.height);
+ context.font = '22px Arial';
+ context.fillText('高度:' + element.height, element.x + 3, element.y + 22);
});
}
diff --git a/src/app/system-management/navigation/navigation.component.html b/src/app/system-management/navigation/navigation.component.html
index ddcc228..6ec5438 100644
--- a/src/app/system-management/navigation/navigation.component.html
+++ b/src/app/system-management/navigation/navigation.component.html
@@ -16,11 +16,11 @@
组织机构管理
边缘盒子管理
+ src="../../../assets/images/icon/host.png" alt="">边缘设备管理
边缘盒子更新
+ src="../../../assets/images/icon/push.png" alt="">边缘设备更新
边缘盒子监控
+ src="../../../assets/images/icon/push.png" alt="">边缘设备监控
视频流监控