Browse Source

[完善]增加延长工装预警框

master
邵佳豪 2 years ago
parent
commit
3205fcdf65
  1. 4
      proxy.config.json
  2. 5
      src/app/pages/get-out-of-line-details/get-out-of-line-details.component.ts

4
proxy.config.json

@ -1,13 +1,13 @@
{
"/api": {
"target": "http://121.36.37.70:8200/",
"target": "http://10.156.134.53:8200/",
"测试": "http://121.36.37.70:8200/",
"生产": "http://10.156.134.53:8200/",
"secure": false,
"changeOrigin": true
},
"/signalr": {
"target": "http://121.36.37.70:8200/",
"target": "http://10.156.134.53:8200/",
"secure": false,
"ws": true,
"logLevel": "debug"

5
src/app/pages/get-out-of-line-details/get-out-of-line-details.component.ts

@ -45,6 +45,7 @@ export class GetOutOfLineDetailsComponent implements OnInit {
{ id: 14, name: "断开的卸油管", color: "blue" },
{ id: 15, name: "烟雾预警", color: "#B4C3FF" },
{ id: 16, name: "火灾报警", color: "red" },
{ id: 17, name: "延长工装", color: "blue" },
];
userName;
@ -127,8 +128,8 @@ export class GetOutOfLineDetailsComponent implements OnInit {
var img = new Image();
img.src = url;
img.onload = () => {
this.canvasWidth = img.width;
this.canvasHeight = img.height;
// this.canvasWidth = img.width;
// this.canvasHeight = img.height;
window.setTimeout(() => {
// 加载图片
this.ctx.drawImage(img, 0, 0, this.canvasWidth, this.canvasHeight);

Loading…
Cancel
Save