|
|
|
@ -55,6 +55,8 @@ export class GetOutOfLineDetailsComponent implements OnInit {
|
|
|
|
|
isCarStop = false; |
|
|
|
|
|
|
|
|
|
pageIndex = 0; |
|
|
|
|
|
|
|
|
|
checkedAll = true; |
|
|
|
|
ngOnInit(): void { |
|
|
|
|
this.userName = JSON.parse(sessionStorage.getItem("userdata")).userName; |
|
|
|
|
console.log("预警数据", this.data); |
|
|
|
@ -223,6 +225,21 @@ export class GetOutOfLineDetailsComponent implements OnInit {
|
|
|
|
|
this.ctx.drawImage(imgBg, 0, 0, canvas.width, canvas.height); |
|
|
|
|
this.strokeRect(this.currentCoordinate); |
|
|
|
|
} |
|
|
|
|
typeChangeAll() { |
|
|
|
|
if (this.checkedAll) { |
|
|
|
|
this.legendList.forEach((element) => {element.checked = true;}); |
|
|
|
|
this.currentCoordinate = this.coordinate; |
|
|
|
|
} else { |
|
|
|
|
this.legendList.forEach((element) => {element.checked = false;}); |
|
|
|
|
this.currentCoordinate = []; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
this.ctx.clearRect(0, 0, this.canvasWidth, this.canvasHeight); |
|
|
|
|
let imgBg: any = document.getElementById("img" + this.data.id); |
|
|
|
|
const canvas: any = document.getElementById("canvas" + this.data.id); |
|
|
|
|
this.ctx.drawImage(imgBg, 0, 0, canvas.width, canvas.height); |
|
|
|
|
this.strokeRect(this.currentCoordinate); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
downImg() { |
|
|
|
|
const canvasDom: any = document.getElementById("canvas" + this.data.id); |
|
|
|
|