邵佳豪 4 years ago
parent
commit
469f24037b
  1. 2
      src/app/ui/plan-assistance/plan-assistance.component.html
  2. 147
      src/app/ui/plan-assistance/plan-assistance.component.ts
  3. 23
      src/app/ui/real-cases/real-cases.component.html
  4. 35
      src/app/ui/real-cases/real-cases.component.scss
  5. 9
      src/app/ui/real-cases/real-cases.component.ts
  6. 11
      src/app/ui/similar-plans/similar-plans.component.html
  7. 16
      src/app/ui/similar-plans/similar-plans.component.scss
  8. 56
      src/app/ui/similar-plans/similar-plans.component.ts
  9. 8
      src/app/working-area/working-area.component.ts

2
src/app/ui/plan-assistance/plan-assistance.component.html

@ -3,7 +3,7 @@
<div class="header leftHeader">到场力量</div> <div class="header leftHeader">到场力量</div>
<div class="list"> <div class="list">
<div class="tableDiv"> <div class="tableDiv">
<div class="tableRows" *ngFor="let item of allCarsData;let key = index" (click)='selectCar(item)' [ngClass]="{selectIcon: canvasData.selectCar.Id == item.Id}"> <div class="tableRows" *ngFor="let item of allCarsData;let key = index" (click)='selectCar(item)' [ngClass]="{selectIcon: selectCarID == item.Id}">
<div style="flex: 60%;display: flex;flex-direction: column;justify-content: center;align-items: center;"> <div style="flex: 60%;display: flex;flex-direction: column;justify-content: center;align-items: center;">
<p style="flex: 60%;font-size: 16px;font-weight: 550;" class="contentText">{{item.Name}}</p> <p style="flex: 60%;font-size: 16px;font-weight: 550;" class="contentText">{{item.Name}}</p>
<p style="flex: 40%" class="contentText">{{item.FireTeamName}}</p> <p style="flex: 40%" class="contentText">{{item.FireTeamName}}</p>

147
src/app/ui/plan-assistance/plan-assistance.component.ts

@ -10,7 +10,7 @@ import * as ObjectID from 'bson-objectid';
styleUrls: ['./plan-assistance.component.scss'] styleUrls: ['./plan-assistance.component.scss']
}) })
export class PlanAssistanceComponent implements OnInit, AfterViewInit { export class PlanAssistanceComponent implements OnInit, AfterViewInit {
constructor(public canvasData: CanvasShareDataService,public snackBar: MatSnackBar,) { } constructor(public canvasData: CanvasShareDataService, public snackBar: MatSnackBar, ) { }
@ViewChild('workingArea') @ViewChild('workingArea')
workingArea: WorkingAreaComponent; workingArea: WorkingAreaComponent;
@ -32,7 +32,7 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit {
FloorId: '5f670bb79e91f4410005f564', FloorId: '5f670bb79e91f4410005f564',
DrawMode: 0, DrawMode: 0,
FillMode: 1, FillMode: 1,
GameMode: 2, GameMode: 0,
ImageUrl: '/api/Objects/PlanPlatform/5e7c0ff1bb3cf106508afaed.png', ImageUrl: '/api/Objects/PlanPlatform/5e7c0ff1bb3cf106508afaed.png',
FixedSize: false, FixedSize: false,
CanConnection: true, CanConnection: true,
@ -132,7 +132,7 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit {
FloorId: '5f670bb79e91f4410005f564', FloorId: '5f670bb79e91f4410005f564',
DrawMode: 0, DrawMode: 0,
FillMode: 1, FillMode: 1,
GameMode: 2, GameMode: 0,
ImageUrl: '/api/Objects/PlanPlatform/5e7aaebaefc8471c94ff19eb.png', ImageUrl: '/api/Objects/PlanPlatform/5e7aaebaefc8471c94ff19eb.png',
FixedSize: false, FixedSize: false,
CanConnection: true, CanConnection: true,
@ -271,7 +271,7 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit {
FloorId: '5f670bb79e91f4410005f564', FloorId: '5f670bb79e91f4410005f564',
DrawMode: 0, DrawMode: 0,
FillMode: 1, FillMode: 1,
GameMode: 2, GameMode: 0,
ImageUrl: '/api/Objects/PlanPlatform/5e7b3a628121c2286c0cb294.png', ImageUrl: '/api/Objects/PlanPlatform/5e7b3a628121c2286c0cb294.png',
FixedSize: false, FixedSize: false,
CanConnection: true, CanConnection: true,
@ -371,7 +371,7 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit {
FloorId: '5f670bb79e91f4410005f564', FloorId: '5f670bb79e91f4410005f564',
DrawMode: 0, DrawMode: 0,
FillMode: 1, FillMode: 1,
GameMode: 2, GameMode: 0,
ImageUrl: '/api/Objects/PlanPlatform/5e7aaebaefc8471c94ff19eb.png', ImageUrl: '/api/Objects/PlanPlatform/5e7aaebaefc8471c94ff19eb.png',
CompanyId: '5f67042b9e91f4410005f55c', CompanyId: '5f67042b9e91f4410005f55c',
FixedSize: false, FixedSize: false,
@ -512,7 +512,7 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit {
FloorId: '5f670bb79e91f4410005f564', FloorId: '5f670bb79e91f4410005f564',
DrawMode: 0, DrawMode: 0,
FillMode: 1, FillMode: 1,
GameMode: 2, GameMode: 0,
ImageUrl: '/api/Objects/PlanPlatform/5e7aaebaefc8471c94ff19eb.png', ImageUrl: '/api/Objects/PlanPlatform/5e7aaebaefc8471c94ff19eb.png',
CompanyId: '5f67042b9e91f4410005f55c', CompanyId: '5f67042b9e91f4410005f55c',
FixedSize: false, FixedSize: false,
@ -653,7 +653,7 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit {
FloorId: '5f670bb79e91f4410005f564', FloorId: '5f670bb79e91f4410005f564',
DrawMode: 0, DrawMode: 0,
FillMode: 1, FillMode: 1,
GameMode: 2, GameMode: 0,
ImageUrl: '/api/Objects/PlanPlatform/5e7aaebaefc8471c94ff19eb.png', ImageUrl: '/api/Objects/PlanPlatform/5e7aaebaefc8471c94ff19eb.png',
CompanyId: '5f67042b9e91f4410005f55c', CompanyId: '5f67042b9e91f4410005f55c',
FixedSize: false, FixedSize: false,
@ -794,7 +794,7 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit {
FloorId: '5f670bb79e91f4410005f564', FloorId: '5f670bb79e91f4410005f564',
DrawMode: 0, DrawMode: 0,
FillMode: 1, FillMode: 1,
GameMode: 2, GameMode: 0,
ImageUrl: '/api/Objects/PlanPlatform/5e7aaebaefc8471c94ff19eb.png', ImageUrl: '/api/Objects/PlanPlatform/5e7aaebaefc8471c94ff19eb.png',
CompanyId: '5f67042b9e91f4410005f55c', CompanyId: '5f67042b9e91f4410005f55c',
FixedSize: false, FixedSize: false,
@ -935,7 +935,7 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit {
FloorId: '5f670bb79e91f4410005f564', FloorId: '5f670bb79e91f4410005f564',
DrawMode: 0, DrawMode: 0,
FillMode: 1, FillMode: 1,
GameMode: 2, GameMode: 0,
ImageUrl: '/api/Objects/PlanPlatform/5e7aaebaefc8471c94ff19eb.png', ImageUrl: '/api/Objects/PlanPlatform/5e7aaebaefc8471c94ff19eb.png',
CompanyId: '5f67042b9e91f4410005f55c', CompanyId: '5f67042b9e91f4410005f55c',
FixedSize: false, FixedSize: false,
@ -1076,7 +1076,7 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit {
FloorId: '5f670bb79e91f4410005f564', FloorId: '5f670bb79e91f4410005f564',
DrawMode: 0, DrawMode: 0,
FillMode: 1, FillMode: 1,
GameMode: 2, GameMode: 0,
ImageUrl: '/api/Objects/PlanPlatform/5e7aaebaefc8471c94ff19eb.png', ImageUrl: '/api/Objects/PlanPlatform/5e7aaebaefc8471c94ff19eb.png',
CompanyId: '5f67042b9e91f4410005f55c', CompanyId: '5f67042b9e91f4410005f55c',
FixedSize: false, FixedSize: false,
@ -1217,7 +1217,7 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit {
FloorId: '5f670bb79e91f4410005f564', FloorId: '5f670bb79e91f4410005f564',
DrawMode: 0, DrawMode: 0,
FillMode: 1, FillMode: 1,
GameMode: 2, GameMode: 0,
ImageUrl: '/api/Objects/PlanPlatform/5e7aaebaefc8471c94ff19eb.png', ImageUrl: '/api/Objects/PlanPlatform/5e7aaebaefc8471c94ff19eb.png',
CompanyId: '5f67042b9e91f4410005f55c', CompanyId: '5f67042b9e91f4410005f55c',
FixedSize: false, FixedSize: false,
@ -1358,7 +1358,7 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit {
FloorId: '5f670bb79e91f4410005f564', FloorId: '5f670bb79e91f4410005f564',
DrawMode: 0, DrawMode: 0,
FillMode: 1, FillMode: 1,
GameMode: 2, GameMode: 0,
ImageUrl: '/api/Objects/PlanPlatform/5e7aaebaefc8471c94ff19eb.png', ImageUrl: '/api/Objects/PlanPlatform/5e7aaebaefc8471c94ff19eb.png',
CompanyId: '5f67042b9e91f4410005f55c', CompanyId: '5f67042b9e91f4410005f55c',
FixedSize: false, FixedSize: false,
@ -1499,7 +1499,7 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit {
FloorId: '5f670bb79e91f4410005f564', FloorId: '5f670bb79e91f4410005f564',
DrawMode: 0, DrawMode: 0,
FillMode: 1, FillMode: 1,
GameMode: 2, GameMode: 0,
ImageUrl: '/api/Objects/PlanPlatform/5e7aaebaefc8471c94ff19eb.png', ImageUrl: '/api/Objects/PlanPlatform/5e7aaebaefc8471c94ff19eb.png',
CompanyId: '5f67042b9e91f4410005f55c', CompanyId: '5f67042b9e91f4410005f55c',
FixedSize: false, FixedSize: false,
@ -1640,7 +1640,7 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit {
FloorId: '5f670bb79e91f4410005f564', FloorId: '5f670bb79e91f4410005f564',
DrawMode: 0, DrawMode: 0,
FillMode: 1, FillMode: 1,
GameMode: 2, GameMode: 0,
ImageUrl: '/api/Objects/PlanPlatform/5e7aaebaefc8471c94ff19eb.png', ImageUrl: '/api/Objects/PlanPlatform/5e7aaebaefc8471c94ff19eb.png',
CompanyId: '5f67042b9e91f4410005f55c', CompanyId: '5f67042b9e91f4410005f55c',
FixedSize: false, FixedSize: false,
@ -1781,7 +1781,7 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit {
FloorId: '5f670bb79e91f4410005f564', FloorId: '5f670bb79e91f4410005f564',
DrawMode: 0, DrawMode: 0,
FillMode: 1, FillMode: 1,
GameMode: 2, GameMode: 0,
ImageUrl: '/api/Objects/PlanPlatform/5e7aaebaefc8471c94ff19eb.png', ImageUrl: '/api/Objects/PlanPlatform/5e7aaebaefc8471c94ff19eb.png',
CompanyId: '5f67042b9e91f4410005f55c', CompanyId: '5f67042b9e91f4410005f55c',
FixedSize: false, FixedSize: false,
@ -1922,7 +1922,7 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit {
FloorId: '5f670bb79e91f4410005f564', FloorId: '5f670bb79e91f4410005f564',
DrawMode: 0, DrawMode: 0,
FillMode: 1, FillMode: 1,
GameMode: 2, GameMode: 0,
ImageUrl: '/api/Objects/PlanPlatform/5e7aaebaefc8471c94ff19eb.png', ImageUrl: '/api/Objects/PlanPlatform/5e7aaebaefc8471c94ff19eb.png',
CompanyId: '5f67042b9e91f4410005f55c', CompanyId: '5f67042b9e91f4410005f55c',
FixedSize: false, FixedSize: false,
@ -2063,7 +2063,7 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit {
FloorId: '5f670bb79e91f4410005f564', FloorId: '5f670bb79e91f4410005f564',
DrawMode: 0, DrawMode: 0,
FillMode: 1, FillMode: 1,
GameMode: 2, GameMode: 0,
ImageUrl: '/api/Objects/PlanPlatform/5e7aaebaefc8471c94ff19eb.png', ImageUrl: '/api/Objects/PlanPlatform/5e7aaebaefc8471c94ff19eb.png',
CompanyId: '5f67042b9e91f4410005f55c', CompanyId: '5f67042b9e91f4410005f55c',
FixedSize: false, FixedSize: false,
@ -2204,7 +2204,7 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit {
FloorId: '5f670bb79e91f4410005f564', FloorId: '5f670bb79e91f4410005f564',
DrawMode: 0, DrawMode: 0,
FillMode: 1, FillMode: 1,
GameMode: 2, GameMode: 0,
ImageUrl: '/api/Objects/PlanPlatform/5e7aaebaefc8471c94ff19eb.png', ImageUrl: '/api/Objects/PlanPlatform/5e7aaebaefc8471c94ff19eb.png',
CompanyId: '5f67042b9e91f4410005f55c', CompanyId: '5f67042b9e91f4410005f55c',
FixedSize: false, FixedSize: false,
@ -2345,7 +2345,7 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit {
FloorId: '5f670bb79e91f4410005f564', FloorId: '5f670bb79e91f4410005f564',
DrawMode: 0, DrawMode: 0,
FillMode: 1, FillMode: 1,
GameMode: 2, GameMode: 0,
ImageUrl: '/api/Objects/PlanPlatform/5e7aaebaefc8471c94ff19eb.png', ImageUrl: '/api/Objects/PlanPlatform/5e7aaebaefc8471c94ff19eb.png',
CompanyId: '5f67042b9e91f4410005f55c', CompanyId: '5f67042b9e91f4410005f55c',
FixedSize: false, FixedSize: false,
@ -2486,7 +2486,7 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit {
FloorId: '5f670bb79e91f4410005f564', FloorId: '5f670bb79e91f4410005f564',
DrawMode: 0, DrawMode: 0,
FillMode: 1, FillMode: 1,
GameMode: 2, GameMode: 0,
ImageUrl: '/api/Objects/PlanPlatform/5e7aaebaefc8471c94ff19eb.png', ImageUrl: '/api/Objects/PlanPlatform/5e7aaebaefc8471c94ff19eb.png',
CompanyId: '5f67042b9e91f4410005f55c', CompanyId: '5f67042b9e91f4410005f55c',
FixedSize: false, FixedSize: false,
@ -2627,7 +2627,7 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit {
FloorId: '5f670bb79e91f4410005f564', FloorId: '5f670bb79e91f4410005f564',
DrawMode: 0, DrawMode: 0,
FillMode: 1, FillMode: 1,
GameMode: 2, GameMode: 0,
ImageUrl: '/api/Objects/PlanPlatform/5e7aaebaefc8471c94ff19eb.png', ImageUrl: '/api/Objects/PlanPlatform/5e7aaebaefc8471c94ff19eb.png',
CompanyId: '5f67042b9e91f4410005f55c', CompanyId: '5f67042b9e91f4410005f55c',
FixedSize: false, FixedSize: false,
@ -2768,7 +2768,7 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit {
FloorId: '5f670bb79e91f4410005f564', FloorId: '5f670bb79e91f4410005f564',
DrawMode: 0, DrawMode: 0,
FillMode: 1, FillMode: 1,
GameMode: 2, GameMode: 0,
ImageUrl: '/api/Objects/PlanPlatform/5e7aaebaefc8471c94ff19eb.png', ImageUrl: '/api/Objects/PlanPlatform/5e7aaebaefc8471c94ff19eb.png',
CompanyId: '5f67042b9e91f4410005f55c', CompanyId: '5f67042b9e91f4410005f55c',
FixedSize: false, FixedSize: false,
@ -2909,7 +2909,7 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit {
FloorId: '5f670bb79e91f4410005f564', FloorId: '5f670bb79e91f4410005f564',
DrawMode: 0, DrawMode: 0,
FillMode: 1, FillMode: 1,
GameMode: 2, GameMode: 0,
ImageUrl: '/api/Objects/PlanPlatform/5e7aaebaefc8471c94ff19eb.png', ImageUrl: '/api/Objects/PlanPlatform/5e7aaebaefc8471c94ff19eb.png',
CompanyId: '5f67042b9e91f4410005f55c', CompanyId: '5f67042b9e91f4410005f55c',
FixedSize: false, FixedSize: false,
@ -3050,7 +3050,7 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit {
FloorId: '5f670bb79e91f4410005f564', FloorId: '5f670bb79e91f4410005f564',
DrawMode: 0, DrawMode: 0,
FillMode: 1, FillMode: 1,
GameMode: 2, GameMode: 0,
ImageUrl: '/api/Objects/PlanPlatform/5e7aaebaefc8471c94ff19eb.png', ImageUrl: '/api/Objects/PlanPlatform/5e7aaebaefc8471c94ff19eb.png',
CompanyId: '5f67042b9e91f4410005f55c', CompanyId: '5f67042b9e91f4410005f55c',
FixedSize: false, FixedSize: false,
@ -3191,7 +3191,7 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit {
FloorId: '5f670bb79e91f4410005f564', FloorId: '5f670bb79e91f4410005f564',
DrawMode: 0, DrawMode: 0,
FillMode: 1, FillMode: 1,
GameMode: 2, GameMode: 0,
ImageUrl: '/api/Objects/PlanPlatform/5e7aaebaefc8471c94ff19eb.png', ImageUrl: '/api/Objects/PlanPlatform/5e7aaebaefc8471c94ff19eb.png',
CompanyId: '5f67042b9e91f4410005f55c', CompanyId: '5f67042b9e91f4410005f55c',
FixedSize: false, FixedSize: false,
@ -3332,7 +3332,7 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit {
FloorId: '5f670bb79e91f4410005f564', FloorId: '5f670bb79e91f4410005f564',
DrawMode: 0, DrawMode: 0,
FillMode: 1, FillMode: 1,
GameMode: 2, GameMode: 0,
ImageUrl: '/api/Objects/PlanPlatform/5e7aaebaefc8471c94ff19eb.png', ImageUrl: '/api/Objects/PlanPlatform/5e7aaebaefc8471c94ff19eb.png',
CompanyId: '5f67042b9e91f4410005f55c', CompanyId: '5f67042b9e91f4410005f55c',
FixedSize: false, FixedSize: false,
@ -3473,7 +3473,7 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit {
FloorId: '5f670bb79e91f4410005f564', FloorId: '5f670bb79e91f4410005f564',
DrawMode: 0, DrawMode: 0,
FillMode: 1, FillMode: 1,
GameMode: 2, GameMode: 0,
ImageUrl: '/api/Objects/PlanPlatform/5e7aaebaefc8471c94ff19eb.png', ImageUrl: '/api/Objects/PlanPlatform/5e7aaebaefc8471c94ff19eb.png',
CompanyId: '5f67042b9e91f4410005f55c', CompanyId: '5f67042b9e91f4410005f55c',
FixedSize: false, FixedSize: false,
@ -3614,7 +3614,7 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit {
FloorId: '5f670bb79e91f4410005f564', FloorId: '5f670bb79e91f4410005f564',
DrawMode: 0, DrawMode: 0,
FillMode: 1, FillMode: 1,
GameMode: 2, GameMode: 0,
ImageUrl: '/api/Objects/PlanPlatform/5e7aaebaefc8471c94ff19eb.png', ImageUrl: '/api/Objects/PlanPlatform/5e7aaebaefc8471c94ff19eb.png',
CompanyId: '5f67042b9e91f4410005f55c', CompanyId: '5f67042b9e91f4410005f55c',
FixedSize: false, FixedSize: false,
@ -3755,7 +3755,7 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit {
FloorId: '5f670bb79e91f4410005f564', FloorId: '5f670bb79e91f4410005f564',
DrawMode: 0, DrawMode: 0,
FillMode: 1, FillMode: 1,
GameMode: 2, GameMode: 0,
ImageUrl: '/api/Objects/PlanPlatform/5e7b3a628121c2286c0cb294.png', ImageUrl: '/api/Objects/PlanPlatform/5e7b3a628121c2286c0cb294.png',
CompanyId: '5f67042b9e91f4410005f55c', CompanyId: '5f67042b9e91f4410005f55c',
FixedSize: false, FixedSize: false,
@ -3857,7 +3857,7 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit {
FloorId: '5f670bb79e91f4410005f564', FloorId: '5f670bb79e91f4410005f564',
DrawMode: 0, DrawMode: 0,
FillMode: 1, FillMode: 1,
GameMode: 2, GameMode: 0,
ImageUrl: '/api/Objects/PlanPlatform/5e7b3a628121c2286c0cb294.png', ImageUrl: '/api/Objects/PlanPlatform/5e7b3a628121c2286c0cb294.png',
CompanyId: '5f67042b9e91f4410005f55c', CompanyId: '5f67042b9e91f4410005f55c',
FixedSize: false, FixedSize: false,
@ -3959,7 +3959,7 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit {
FloorId: '5f670bb79e91f4410005f564', FloorId: '5f670bb79e91f4410005f564',
DrawMode: 0, DrawMode: 0,
FillMode: 1, FillMode: 1,
GameMode: 2, GameMode: 0,
ImageUrl: '/api/Objects/PlanPlatform/5e7b3a628121c2286c0cb294.png', ImageUrl: '/api/Objects/PlanPlatform/5e7b3a628121c2286c0cb294.png',
CompanyId: '5f67042b9e91f4410005f55c', CompanyId: '5f67042b9e91f4410005f55c',
FixedSize: false, FixedSize: false,
@ -4061,7 +4061,7 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit {
FloorId: '5f670bb79e91f4410005f564', FloorId: '5f670bb79e91f4410005f564',
DrawMode: 0, DrawMode: 0,
FillMode: 1, FillMode: 1,
GameMode: 2, GameMode: 0,
ImageUrl: '/api/Objects/PlanPlatform/5e7b3a628121c2286c0cb294.png', ImageUrl: '/api/Objects/PlanPlatform/5e7b3a628121c2286c0cb294.png',
CompanyId: '5f67042b9e91f4410005f55c', CompanyId: '5f67042b9e91f4410005f55c',
FixedSize: false, FixedSize: false,
@ -4163,7 +4163,7 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit {
FloorId: '5f670bb79e91f4410005f564', FloorId: '5f670bb79e91f4410005f564',
DrawMode: 0, DrawMode: 0,
FillMode: 1, FillMode: 1,
GameMode: 2, GameMode: 0,
ImageUrl: '/api/Objects/PlanPlatform/5e7b3a628121c2286c0cb294.png', ImageUrl: '/api/Objects/PlanPlatform/5e7b3a628121c2286c0cb294.png',
CompanyId: '5f67042b9e91f4410005f55c', CompanyId: '5f67042b9e91f4410005f55c',
FixedSize: false, FixedSize: false,
@ -4265,7 +4265,7 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit {
FloorId: '5f670bb79e91f4410005f564', FloorId: '5f670bb79e91f4410005f564',
DrawMode: 0, DrawMode: 0,
FillMode: 1, FillMode: 1,
GameMode: 2, GameMode: 0,
ImageUrl: '/api/Objects/PlanPlatform/5e7b3a628121c2286c0cb294.png', ImageUrl: '/api/Objects/PlanPlatform/5e7b3a628121c2286c0cb294.png',
CompanyId: '5f67042b9e91f4410005f55c', CompanyId: '5f67042b9e91f4410005f55c',
FixedSize: false, FixedSize: false,
@ -4367,7 +4367,7 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit {
FloorId: '5f670bb79e91f4410005f564', FloorId: '5f670bb79e91f4410005f564',
DrawMode: 0, DrawMode: 0,
FillMode: 1, FillMode: 1,
GameMode: 2, GameMode: 0,
ImageUrl: '/api/Objects/PlanPlatform/5e7b3a628121c2286c0cb294.png', ImageUrl: '/api/Objects/PlanPlatform/5e7b3a628121c2286c0cb294.png',
CompanyId: '5f67042b9e91f4410005f55c', CompanyId: '5f67042b9e91f4410005f55c',
FixedSize: false, FixedSize: false,
@ -4469,7 +4469,7 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit {
FloorId: '5f670bb79e91f4410005f564', FloorId: '5f670bb79e91f4410005f564',
DrawMode: 0, DrawMode: 0,
FillMode: 1, FillMode: 1,
GameMode: 2, GameMode: 0,
ImageUrl: '/api/Objects/PlanPlatform/5e7b3a628121c2286c0cb294.png', ImageUrl: '/api/Objects/PlanPlatform/5e7b3a628121c2286c0cb294.png',
CompanyId: '5f67042b9e91f4410005f55c', CompanyId: '5f67042b9e91f4410005f55c',
FixedSize: false, FixedSize: false,
@ -4571,7 +4571,7 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit {
FloorId: '5f670bb79e91f4410005f564', FloorId: '5f670bb79e91f4410005f564',
DrawMode: 0, DrawMode: 0,
FillMode: 1, FillMode: 1,
GameMode: 2, GameMode: 0,
ImageUrl: '/api/Objects/PlanPlatform/5e7b3a628121c2286c0cb294.png', ImageUrl: '/api/Objects/PlanPlatform/5e7b3a628121c2286c0cb294.png',
CompanyId: '5f67042b9e91f4410005f55c', CompanyId: '5f67042b9e91f4410005f55c',
FixedSize: false, FixedSize: false,
@ -4673,7 +4673,7 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit {
FloorId: '5f670bb79e91f4410005f564', FloorId: '5f670bb79e91f4410005f564',
DrawMode: 0, DrawMode: 0,
FillMode: 1, FillMode: 1,
GameMode: 2, GameMode: 0,
ImageUrl: '/api/Objects/PlanPlatform/5e7b3a628121c2286c0cb294.png', ImageUrl: '/api/Objects/PlanPlatform/5e7b3a628121c2286c0cb294.png',
CompanyId: '5f67042b9e91f4410005f55c', CompanyId: '5f67042b9e91f4410005f55c',
FixedSize: false, FixedSize: false,
@ -4775,7 +4775,7 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit {
FloorId: '5f670bb79e91f4410005f564', FloorId: '5f670bb79e91f4410005f564',
DrawMode: 0, DrawMode: 0,
FillMode: 1, FillMode: 1,
GameMode: 2, GameMode: 0,
ImageUrl: '/api/Objects/PlanPlatform/5e7b3a628121c2286c0cb294.png', ImageUrl: '/api/Objects/PlanPlatform/5e7b3a628121c2286c0cb294.png',
CompanyId: '5f67042b9e91f4410005f55c', CompanyId: '5f67042b9e91f4410005f55c',
FixedSize: false, FixedSize: false,
@ -4877,7 +4877,7 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit {
FloorId: '5f670bb79e91f4410005f564', FloorId: '5f670bb79e91f4410005f564',
DrawMode: 0, DrawMode: 0,
FillMode: 1, FillMode: 1,
GameMode: 2, GameMode: 0,
ImageUrl: '/api/Objects/PlanPlatform/5e7b3a628121c2286c0cb294.png', ImageUrl: '/api/Objects/PlanPlatform/5e7b3a628121c2286c0cb294.png',
CompanyId: '5f67042b9e91f4410005f55c', CompanyId: '5f67042b9e91f4410005f55c',
FixedSize: false, FixedSize: false,
@ -4979,7 +4979,7 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit {
FloorId: '5f670bb79e91f4410005f564', FloorId: '5f670bb79e91f4410005f564',
DrawMode: 0, DrawMode: 0,
FillMode: 1, FillMode: 1,
GameMode: 2, GameMode: 0,
ImageUrl: '/api/Objects/PlanPlatform/5e7b3a628121c2286c0cb294.png', ImageUrl: '/api/Objects/PlanPlatform/5e7b3a628121c2286c0cb294.png',
CompanyId: '5f67042b9e91f4410005f55c', CompanyId: '5f67042b9e91f4410005f55c',
FixedSize: false, FixedSize: false,
@ -5081,7 +5081,7 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit {
FloorId: '5f670bb79e91f4410005f564', FloorId: '5f670bb79e91f4410005f564',
DrawMode: 0, DrawMode: 0,
FillMode: 1, FillMode: 1,
GameMode: 2, GameMode: 0,
ImageUrl: '/api/Objects/PlanPlatform/5e7b3a628121c2286c0cb294.png', ImageUrl: '/api/Objects/PlanPlatform/5e7b3a628121c2286c0cb294.png',
CompanyId: '5f67042b9e91f4410005f55c', CompanyId: '5f67042b9e91f4410005f55c',
FixedSize: false, FixedSize: false,
@ -5183,7 +5183,7 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit {
FloorId: '5f670bb79e91f4410005f564', FloorId: '5f670bb79e91f4410005f564',
DrawMode: 0, DrawMode: 0,
FillMode: 1, FillMode: 1,
GameMode: 2, GameMode: 0,
ImageUrl: '/api/Objects/PlanPlatform/5e7b3a628121c2286c0cb294.png', ImageUrl: '/api/Objects/PlanPlatform/5e7b3a628121c2286c0cb294.png',
CompanyId: '5f67042b9e91f4410005f55c', CompanyId: '5f67042b9e91f4410005f55c',
FixedSize: false, FixedSize: false,
@ -5285,7 +5285,7 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit {
FloorId: '5f670bb79e91f4410005f564', FloorId: '5f670bb79e91f4410005f564',
DrawMode: 0, DrawMode: 0,
FillMode: 1, FillMode: 1,
GameMode: 2, GameMode: 0,
ImageUrl: '/api/Objects/PlanPlatform/5e7b384e8121c2286c0cb290.png', ImageUrl: '/api/Objects/PlanPlatform/5e7b384e8121c2286c0cb290.png',
FixedSize: false, FixedSize: false,
CanConnection: true, CanConnection: true,
@ -5372,7 +5372,7 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit {
FloorId: '5f670bb79e91f4410005f564', FloorId: '5f670bb79e91f4410005f564',
DrawMode: 0, DrawMode: 0,
FillMode: 1, FillMode: 1,
GameMode: 2, GameMode: 0,
ImageUrl: '/api/Objects/PlanPlatform/5e7b384e8121c2286c0cb290.png', ImageUrl: '/api/Objects/PlanPlatform/5e7b384e8121c2286c0cb290.png',
CompanyId: '5f67042b9e91f4410005f55c', CompanyId: '5f67042b9e91f4410005f55c',
FixedSize: false, FixedSize: false,
@ -5461,7 +5461,7 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit {
FloorId: '5f670bb79e91f4410005f564', FloorId: '5f670bb79e91f4410005f564',
DrawMode: 0, DrawMode: 0,
FillMode: 1, FillMode: 1,
GameMode: 2, GameMode: 0,
ImageUrl: '/api/Objects/PlanPlatform/5e7b384e8121c2286c0cb290.png', ImageUrl: '/api/Objects/PlanPlatform/5e7b384e8121c2286c0cb290.png',
CompanyId: '5f67042b9e91f4410005f55c', CompanyId: '5f67042b9e91f4410005f55c',
FixedSize: false, FixedSize: false,
@ -5550,7 +5550,7 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit {
FloorId: '5f670bb79e91f4410005f564', FloorId: '5f670bb79e91f4410005f564',
DrawMode: 0, DrawMode: 0,
FillMode: 1, FillMode: 1,
GameMode: 2, GameMode: 0,
ImageUrl: '/api/Objects/PlanPlatform/5e7b384e8121c2286c0cb290.png', ImageUrl: '/api/Objects/PlanPlatform/5e7b384e8121c2286c0cb290.png',
CompanyId: '5f67042b9e91f4410005f55c', CompanyId: '5f67042b9e91f4410005f55c',
FixedSize: false, FixedSize: false,
@ -5639,7 +5639,7 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit {
FloorId: '5f670bb79e91f4410005f564', FloorId: '5f670bb79e91f4410005f564',
DrawMode: 0, DrawMode: 0,
FillMode: 1, FillMode: 1,
GameMode: 2, GameMode: 0,
ImageUrl: '/api/Objects/PlanPlatform/5e7b384e8121c2286c0cb290.png', ImageUrl: '/api/Objects/PlanPlatform/5e7b384e8121c2286c0cb290.png',
CompanyId: '5f67042b9e91f4410005f55c', CompanyId: '5f67042b9e91f4410005f55c',
FixedSize: false, FixedSize: false,
@ -5728,7 +5728,7 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit {
FloorId: '5f670bb79e91f4410005f564', FloorId: '5f670bb79e91f4410005f564',
DrawMode: 0, DrawMode: 0,
FillMode: 1, FillMode: 1,
GameMode: 2, GameMode: 0,
ImageUrl: '/api/Objects/PlanPlatform/5e7b384e8121c2286c0cb290.png', ImageUrl: '/api/Objects/PlanPlatform/5e7b384e8121c2286c0cb290.png',
CompanyId: '5f67042b9e91f4410005f55c', CompanyId: '5f67042b9e91f4410005f55c',
FixedSize: false, FixedSize: false,
@ -5817,7 +5817,7 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit {
FloorId: '5f670bb79e91f4410005f564', FloorId: '5f670bb79e91f4410005f564',
DrawMode: 0, DrawMode: 0,
FillMode: 1, FillMode: 1,
GameMode: 2, GameMode: 0,
ImageUrl: '/api/Objects/PlanPlatform/5e7b384e8121c2286c0cb290.png', ImageUrl: '/api/Objects/PlanPlatform/5e7b384e8121c2286c0cb290.png',
CompanyId: '5f67042b9e91f4410005f55c', CompanyId: '5f67042b9e91f4410005f55c',
FixedSize: false, FixedSize: false,
@ -5906,7 +5906,7 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit {
FloorId: '5f670bb79e91f4410005f564', FloorId: '5f670bb79e91f4410005f564',
DrawMode: 0, DrawMode: 0,
FillMode: 1, FillMode: 1,
GameMode: 2, GameMode: 0,
ImageUrl: '/api/Objects/PlanPlatform/5e7b384e8121c2286c0cb290.png', ImageUrl: '/api/Objects/PlanPlatform/5e7b384e8121c2286c0cb290.png',
CompanyId: '5f67042b9e91f4410005f55c', CompanyId: '5f67042b9e91f4410005f55c',
FixedSize: false, FixedSize: false,
@ -5995,7 +5995,7 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit {
FloorId: '5f670bb79e91f4410005f564', FloorId: '5f670bb79e91f4410005f564',
DrawMode: 0, DrawMode: 0,
FillMode: 1, FillMode: 1,
GameMode: 2, GameMode: 0,
ImageUrl: '/api/Objects/PlanPlatform/5e7b384e8121c2286c0cb290.png', ImageUrl: '/api/Objects/PlanPlatform/5e7b384e8121c2286c0cb290.png',
CompanyId: '5f67042b9e91f4410005f55c', CompanyId: '5f67042b9e91f4410005f55c',
FixedSize: false, FixedSize: false,
@ -6084,7 +6084,7 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit {
FloorId: '5f670bb79e91f4410005f564', FloorId: '5f670bb79e91f4410005f564',
DrawMode: 0, DrawMode: 0,
FillMode: 1, FillMode: 1,
GameMode: 2, GameMode: 0,
ImageUrl: '/api/Objects/PlanPlatform/5e7b384e8121c2286c0cb290.png', ImageUrl: '/api/Objects/PlanPlatform/5e7b384e8121c2286c0cb290.png',
CompanyId: '5f67042b9e91f4410005f55c', CompanyId: '5f67042b9e91f4410005f55c',
FixedSize: false, FixedSize: false,
@ -6173,7 +6173,7 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit {
FloorId: '5f670bb79e91f4410005f564', FloorId: '5f670bb79e91f4410005f564',
DrawMode: 0, DrawMode: 0,
FillMode: 1, FillMode: 1,
GameMode: 2, GameMode: 0,
ImageUrl: '/api/Objects/PlanPlatform/5e7b384e8121c2286c0cb290.png', ImageUrl: '/api/Objects/PlanPlatform/5e7b384e8121c2286c0cb290.png',
CompanyId: '5f67042b9e91f4410005f55c', CompanyId: '5f67042b9e91f4410005f55c',
FixedSize: false, FixedSize: false,
@ -6262,7 +6262,7 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit {
FloorId: '5f670bb79e91f4410005f564', FloorId: '5f670bb79e91f4410005f564',
DrawMode: 0, DrawMode: 0,
FillMode: 1, FillMode: 1,
GameMode: 2, GameMode: 0,
ImageUrl: '/api/Objects/PlanPlatform/5e7b384e8121c2286c0cb290.png', ImageUrl: '/api/Objects/PlanPlatform/5e7b384e8121c2286c0cb290.png',
CompanyId: '5f67042b9e91f4410005f55c', CompanyId: '5f67042b9e91f4410005f55c',
FixedSize: false, FixedSize: false,
@ -6351,7 +6351,7 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit {
FloorId: '5f670bb79e91f4410005f564', FloorId: '5f670bb79e91f4410005f564',
DrawMode: 0, DrawMode: 0,
FillMode: 1, FillMode: 1,
GameMode: 2, GameMode: 0,
ImageUrl: '/api/Objects/PlanPlatform/5e7b384e8121c2286c0cb290.png', ImageUrl: '/api/Objects/PlanPlatform/5e7b384e8121c2286c0cb290.png',
CompanyId: '5f67042b9e91f4410005f55c', CompanyId: '5f67042b9e91f4410005f55c',
FixedSize: false, FixedSize: false,
@ -6440,7 +6440,7 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit {
FloorId: '5f670bb79e91f4410005f564', FloorId: '5f670bb79e91f4410005f564',
DrawMode: 0, DrawMode: 0,
FillMode: 1, FillMode: 1,
GameMode: 2, GameMode: 0,
ImageUrl: '/api/Objects/PlanPlatform/5e7b384e8121c2286c0cb290.png', ImageUrl: '/api/Objects/PlanPlatform/5e7b384e8121c2286c0cb290.png',
CompanyId: '5f67042b9e91f4410005f55c', CompanyId: '5f67042b9e91f4410005f55c',
FixedSize: false, FixedSize: false,
@ -6529,7 +6529,7 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit {
FloorId: '5f670bb79e91f4410005f564', FloorId: '5f670bb79e91f4410005f564',
DrawMode: 0, DrawMode: 0,
FillMode: 1, FillMode: 1,
GameMode: 2, GameMode: 0,
ImageUrl: '/api/Objects/PlanPlatform/5e7b384e8121c2286c0cb290.png', ImageUrl: '/api/Objects/PlanPlatform/5e7b384e8121c2286c0cb290.png',
CompanyId: '5f67042b9e91f4410005f55c', CompanyId: '5f67042b9e91f4410005f55c',
FixedSize: false, FixedSize: false,
@ -6640,7 +6640,7 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit {
DrawMode: null, DrawMode: null,
Thickness: 0, Thickness: 0,
IsFromBuilding: false, IsFromBuilding: false,
GameMode: 2 GameMode: 0
}; };
// 所有车辆信息 // 所有车辆信息
@ -7250,6 +7250,7 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit {
bottomIsShow = false; // 底部车辆信息是否展示 bottomIsShow = false; // 底部车辆信息是否展示
rightIsShow = true; // 右侧楼层是否展示 rightIsShow = true; // 右侧楼层是否展示
rightSayIsShow = false; // 右侧语音是否展示 rightSayIsShow = false; // 右侧语音是否展示
selectCarID:string = ''; // 选中车辆 样式
ngOnInit(): void { ngOnInit(): void {
const that = this; const that = this;
@ -7268,12 +7269,13 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit {
// 监听canvas组件选中素材事件 // 监听canvas组件选中素材事件
this.workingArea.on("select",obj=>{ this.workingArea.on("select",obj=>{
//选中素材属性注入函数 //选中素材属性注入函数
this.selectCar(obj.assetData) this.selectCar(obj.assetData,false)
}) })
// 监听canvas组件取消选中素材事件 // 监听canvas组件取消选中素材事件
this.workingArea.on("deselect",obj=>{ this.workingArea.on("deselect",obj=>{
this.bottomIsShow = false; this.bottomIsShow = false;
}) this.selectCarID = ''
});
} }
// 开始绘制 // 开始绘制
@ -7288,29 +7290,30 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit {
}); });
} }
//倒计时结束 // 倒计时结束
handleEvent (e,item) { handleEvent(e, item) {
if (e.left==0) { if (e.left == 0) {
item.ReachTime=0 item.ReachTime = 0;
this.workingArea.ShowCarIcon(item) this.workingArea.ShowCarIcon(item);
} else { } else {
item.ReachTime=e.left/1000 item.ReachTime = e.left / 1000;
} }
} }
//选择 车辆 //选择 车辆
selectCar (e) { selectCar (e,isSelect:boolean = true) {
if (e.ReachTime == 0) { if (e.ReachTime == 0) {
this.canvasData.selectCar = e this.canvasData.selectCar = e
this.selectCarID = JSON.parse(JSON.stringify( e.Id ))
this.bottomIsShow = true this.bottomIsShow = true
let list = [] let list = []
list.push(e.Id) list.push(e.Id)
this.workingArea.setHighlight(list) isSelect? this.workingArea.setHighlight(list) : null
} else { } else {
let config = new MatSnackBarConfig(); const config = new MatSnackBarConfig();
config.verticalPosition = 'top'; config.verticalPosition = 'top';
config.duration = 3000 config.duration = 3000;
this.snackBar.open('车辆目前未到场','确定',config); this.snackBar.open('车辆目前未到场', '确定', config);
} }
} }

23
src/app/ui/real-cases/real-cases.component.html

@ -1 +1,22 @@
<p>real-cases works!</p> <div class="leisiTable">
<table>
<thead >
<td style="width:40%;">单位名称</td>
<td style="width:10%;">始建于</td>
<td style="width:10%;">着火物</td>
<td style="width:10%;">点火位置</td>
<td style="width:10%;">相近度</td>
<td style="width:20%;">详情</td>
</thead>
<tbody id="shujubody" >
<tr *ngFor="let leisi of leisiYuan">
<td style="color: #FFFFFF;">{{leisi.danweiName}}</td>
<td style="color: #FFFFFF;">{{leisi.year}}</td>
<td style="color: #FFFFFF;">{{leisi.zhoahuo}}</td>
<td style="color: #FFFFFF;">{{leisi.weizhi}}</td>
<td [ngClass]="{'tdyanse56':leisi.xiangjin>=50&&leisi.xiangjin<=60,'tdyanse78':leisi.xiangjin>60,'tdyanse':leisi.xiangjin<50}">{{leisi.xiangjin}}%</td>
<td style="color: #CC5D13;">查看详情</td>
</tr>
</tbody>
</table>
</div>

35
src/app/ui/real-cases/real-cases.component.scss

@ -0,0 +1,35 @@
.leisiTable{
border:1px solid #0E79A9;
height: 95%;
width: 100%;
background-color: #05385E;
margin-top: 50px;
table{
width: 100%;
height: 100%;
border-collapse:collapse;
thead{
td{
color:#F7BA2A;
height: 50px;
text-align:center;
border-bottom: 1px solid #0E79A9;
}
}
tbody{
td{
text-align:center;
}
}
}
}
.tdyanse56{
color:#3BA9F2
}
.tdyanse78{
color:#28BC69
}
.tdyanse{
color: #FFFFFF;
}

9
src/app/ui/real-cases/real-cases.component.ts

@ -12,4 +12,13 @@ export class RealCasesComponent implements OnInit {
ngOnInit(): void { ngOnInit(): void {
} }
leisiYuan=[
{danweiName:"江苏南京扬子石化",year:"2017年",zhoahuo:"液态丙烯",weizhi:"烴泵区",xiangjin:parseFloat("50%")},
{danweiName:"河北张家口中国化工集团盛华化工公司",year:"2018年",zhoahuo:"氯乙烯",weizhi:"氯乙烯一号气柜",xiangjin:parseFloat("40%")},
{danweiName:"山东临沂金誉石化",year:"2017年",zhoahuo:"液化气",weizhi:"装卸区东北侧11号卸车位",xiangjin:parseFloat("30%")},
{danweiName:"江苏省靖江市德桥化工仓储有限公司",year:"2016年",zhoahuo:"汽油",weizhi:"2号交换站",xiangjin:parseFloat("20%")},
{danweiName:"海南东方市八所港危化品码头",year:"2016年",zhoahuo:"石脑油",weizhi:"丰盛油8油轮发动机舱",xiangjin:parseFloat("10%")}
]
} }

11
src/app/ui/similar-plans/similar-plans.component.html

@ -8,7 +8,16 @@
<td style="width:10%;">相近度</td> <td style="width:10%;">相近度</td>
<td style="width:20%;">详情</td> <td style="width:20%;">详情</td>
</thead> </thead>
<tbody id="shujubody"></tbody> <tbody id="shujubody" >
<tr *ngFor="let leisi of leisiYuan">
<td style="color: #FFFFFF;">{{leisi.danweiName}}</td>
<td></td>
<td></td>
<td style="color: #FFFFFF;">{{leisi.weizhi}}</td>
<td [ngClass]="{'tdyanse56':leisi.xiangjin>=50&&leisi.xiangjin<=60,'tdyanse78':leisi.xiangjin>60,'tdyanse':leisi.xiangjin<50}">{{leisi.xiangjin}}%</td>
<td style="color: #CC5D13;">查看详情</td>
</tr>
</tbody>
</table> </table>
</div> --> </div> -->
<div style="width: 100%;height: 100%;"> <div style="width: 100%;height: 100%;">

16
src/app/ui/similar-plans/similar-plans.component.scss

@ -7,6 +7,7 @@
table{ table{
width: 100%; width: 100%;
height: 100%; height: 100%;
border-collapse:collapse;
thead{ thead{
td{ td{
color:#F7BA2A; color:#F7BA2A;
@ -15,5 +16,20 @@
border-bottom: 1px solid #0E79A9; border-bottom: 1px solid #0E79A9;
} }
} }
tbody{
td{
text-align:center;
}
}
} }
}
.tdyanse56{
color:#3BA9F2
}
.tdyanse78{
color:#28BC69
}
.tdyanse{
color: #FFFFFF;
} }

56
src/app/ui/similar-plans/similar-plans.component.ts

@ -1,4 +1,5 @@
import { Component, OnInit } from '@angular/core'; import { Component, OnInit } from '@angular/core';
import { Color } from 'cesium';
@Component({ @Component({
selector: 'app-similar-plans', selector: 'app-similar-plans',
@ -10,46 +11,25 @@ export class SimilarPlansComponent implements OnInit {
constructor() { } constructor() { }
ngOnInit(): void { ngOnInit(): void {
this.tableData()
} }
leisiYuan=[ leisiYuan=[
{danweiName:"广西钦州志诚化工有限公司",year:"XXXX年",zhoahuo:"XXX",weizhi:"2#储罐",xiangjin:"80%"}, {danweiName:"广西钦州志诚化工有限公司",year:"XXXX年",zhoahuo:"XXX",weizhi:"2#储罐",xiangjin:parseFloat("80%")},
{danweiName:"南宁交能石化有限责任公司",year:"",zhoahuo:"XXX",weizhi:"3#储罐",xiangjin:"75%"}, {danweiName:"南宁交能石化有限责任公司",year:"",zhoahuo:"XXX",weizhi:"3#储罐",xiangjin:parseFloat("75%")},
{danweiName:"广西藤县通轩立信化学有限公司",year:"",zhoahuo:"XXX",weizhi:"1#储罐",xiangjin:"70%"}, {danweiName:"广西藤县通轩立信化学有限公司",year:"",zhoahuo:"XXX",weizhi:"1#储罐",xiangjin:parseFloat("70%")},
{danweiName:"广西田东锦盛化工科技有限公司",year:"",zhoahuo:"XXXXXX",weizhi:"12#储罐",xiangjin:"60%"}, {danweiName:"广西田东锦盛化工科技有限公司",year:"",zhoahuo:"XXXXXX",weizhi:"12#储罐",xiangjin:parseFloat("60%")},
{danweiName:"梧州市联溢化工有限公司",year:"",zhoahuo:"XXX",weizhi:"5#储罐",xiangjin:"50%"}, {danweiName:"梧州市联溢化工有限公司",year:"",zhoahuo:"XXX",weizhi:"5#储罐",xiangjin:parseFloat("50%")},
{danweiName:"田东石油化工钦州港油品储运库",year:"",zhoahuo:"XXX",weizhi:"4-1#储罐",xiangjin:"40%"}, {danweiName:"田东石油化工钦州港油品储运库",year:"",zhoahuo:"XXX",weizhi:"4-1#储罐",xiangjin:parseFloat("40%")},
{danweiName:"中国石油进德油库",year:"",zhoahuo:"XXX",weizhi:"3#储罐",xiangjin:"45%"}, {danweiName:"中国石油进德油库",year:"",zhoahuo:"XXX",weizhi:"3#储罐",xiangjin:parseFloat("45%")},
{danweiName:"广西华鑫化工有限公司",year:"",zhoahuo:"XXX",weizhi:"11#储罐",xiangjin:"42%"}, {danweiName:"广西华鑫化工有限公司",year:"",zhoahuo:"XXX",weizhi:"11#储罐",xiangjin:parseFloat("42%")},
{danweiName:"广西中油能源有限公司",year:"",zhoahuo:"XXX",weizhi:"6#储罐",xiangjin:"39%"}, {danweiName:"广西中油能源有限公司",year:"",zhoahuo:"XXX",weizhi:"6#储罐",xiangjin:parseFloat("39%")},
{danweiName:"广西钦州澄星化工科技有限公司",year:"",zhoahuo:"XXX",weizhi:"5-2#储罐",xiangjin:"35%"}, {danweiName:"广西钦州澄星化工科技有限公司",year:"",zhoahuo:"XXX",weizhi:"5-2#储罐",xiangjin:parseFloat("35%")},
{danweiName:"中油广西田东石油化工总厂有限公司",year:"",zhoahuo:"XXX",weizhi:"3-1#储罐",xiangjin:"35%"} {danweiName:"中油广西田东石油化工总厂有限公司",year:"",zhoahuo:"XXX",weizhi:"3-1#储罐",xiangjin:parseFloat("30%")}
] ]
tableData(){
var res=''
for(var i=0;i<this.leisiYuan.length;i++){
res+='<tr style="color:#FFFFFF">'
res+='<td style="text-align:center;">'+this.leisiYuan[i].danweiName+'</td>'
res+='<td style="text-align:center;">'+"" +'</td>'
res+='<td style="text-align:center;">'+""+'</td>'
res+='<td style="text-align:center;">'+this.leisiYuan[i].weizhi+'</td>'
if(parseFloat(this.leisiYuan[i].xiangjin)<parseFloat('50%')){
res+='<td style="text-align:center;">'+this.leisiYuan[i].xiangjin+'</td>'
}
else if(parseFloat(this.leisiYuan[i].xiangjin)<=parseFloat('60%')&&parseFloat(this.leisiYuan[i].xiangjin)>=parseFloat('50%')){
res+='<td style="text-align:center;color:#3BA9F2">'+this.leisiYuan[i].xiangjin+'</td>'
}
else{
res+='<td style="text-align:center;color:#28BC69">'+this.leisiYuan[i].xiangjin+'</td>'
}
res+='<td style="text-align:center;"><span style="color:#CC5D13;cursor: pointer;(click)="openResponsePlans()">查看详情</span></td></tr>'
}
res+='</tbody>'
var shuju = document.getElementById('shujubody')
shuju.innerHTML=res
}
openResponsePlans(){
console.log(123)
}
} }

8
src/app/working-area/working-area.component.ts

@ -251,6 +251,7 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
// this.createEnterPaintEndButton(); // this.createEnterPaintEndButton();
// this.backgroundImage.addChild(this.paintingLine); // this.backgroundImage.addChild(this.paintingLine);
this.on('select', obj => { this.on('select', obj => {
console.log('选择了' + obj);
if (this.allowEdit) { if (this.allowEdit) {
if (obj instanceof MultipointIcon) { if (obj instanceof MultipointIcon) {
obj.setPointVisiable(true); obj.setPointVisiable(true);
@ -373,7 +374,10 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
public setHighlight(ids: string[]): void { public setHighlight(ids: string[]): void {
this.selection.deselectAll(); this.selection.deselectAll();
ids.forEach(item => { ids.forEach(item => {
const obj = this.backgroundImage.getChildByName(item); let obj = this.backgroundImage.getChildByName(item);
if (obj === null) {
obj = this.app.stage.getChildByName(item);
}
this.selection.select(obj); this.selection.select(obj);
}); });
} }
@ -431,7 +435,7 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
const single = new SinglePointIcon(element, this); const single = new SinglePointIcon(element, this);
}); });
// this.setNameVisible(false, GameMode.BasicInformation); this.setNameVisible(false, GameMode.BasicInformation);
const tempData = { const tempData = {
Id: '5f6719a4e03abe3856d87d7b', Id: '5f6719a4e03abe3856d87d7b',

Loading…
Cancel
Save