刘向辉 3 years ago
parent
commit
8d6a29ca92
  1. 1
      src/app/babylon/view/facilityinfoinscene-window/facilityinfo-ui-item.ts
  2. 12
      src/app/pages/plan/plan.component.ts

1
src/app/babylon/view/facilityinfoinscene-window/facilityinfo-ui-item.ts

@ -150,4 +150,5 @@ export class FacilityInfoUIItem {
} }
} }

12
src/app/pages/plan/plan.component.ts

@ -1,4 +1,4 @@
import { Component, ElementRef, OnInit, ViewChild } from '@angular/core'; import { AfterViewChecked, Component, ElementRef, OnInit, ViewChild } from '@angular/core';
import Viewer from 'viewerjs'; import Viewer from 'viewerjs';
import { Game } from 'src/app/babylon/game'; import { Game } from 'src/app/babylon/game';
import { LoginSatus } from 'src/app/babylon/controller/status/login-status'; import { LoginSatus } from 'src/app/babylon/controller/status/login-status';
@ -40,8 +40,10 @@ import { HttpClient } from '@angular/common/http';
}) })
export class PlanComponent implements OnInit { export class PlanComponent implements OnInit {
constructor(private element: ElementRef, private buildingBISrv: BuildingBasicInfosService, private objectsSrv: ObjectsService, private eventManager: EventManager, private message: NzMessageService, private http: HttpClient) { } constructor(private element: ElementRef, private buildingBISrv: BuildingBasicInfosService, private objectsSrv: ObjectsService, private eventManager: EventManager, private message: NzMessageService, private http: HttpClient) { }
static instance: PlanComponent; static instance: PlanComponent;
public game: Game = new Game(); public game: Game = new Game();
public beforeOneSatus; //当前 satus public beforeOneSatus; //当前 satus
@ -52,6 +54,7 @@ export class PlanComponent implements OnInit {
public isShowLoading: boolean = true; //显隐 loading加载条 public isShowLoading: boolean = true; //显隐 loading加载条
public companyData: any; //当前加油站所属组织机构 data public companyData: any; //当前加油站所属组织机构 data
ngOnInit(): void { ngOnInit(): void {
PlanComponent.instance = this; PlanComponent.instance = this;
ServeManager.Init(this.buildingBISrv, this.objectsSrv); ServeManager.Init(this.buildingBISrv, this.objectsSrv);
@ -492,6 +495,7 @@ export class PlanComponent implements OnInit {
this.progressList[this.nzCurrent] = this.progressList[this.nzCurrent] + Number((100 / time).toFixed(2)) / 10 this.progressList[this.nzCurrent] = this.progressList[this.nzCurrent] + Number((100 / time).toFixed(2)) / 10
this.updateProgress() this.updateProgress()
}, 100) }, 100)
} }
//自动播放-切换接点 //自动播放-切换接点
@ -678,17 +682,17 @@ export class PlanComponent implements OnInit {
let isDelete = confirm("您确定要删除吗?") let isDelete = confirm("您确定要删除吗?")
if (isDelete) { if (isDelete) {
if (type === 1) { if (type === 1) {
this.http.delete(`${this.beforeOnePropertyData.getPropertyData().img}`).subscribe(data=>{ this.http.delete(`${this.beforeOnePropertyData.getPropertyData().img}`).subscribe(data => {
this.beforeOnePropertyData.getPropertyData().img = "" this.beforeOnePropertyData.getPropertyData().img = ""
this.message.info("删除成功!"); this.message.info("删除成功!");
}) })
} else if (type === 2) { } else if (type === 2) {
this.http.delete(`${this.beforePlanNode.texture}`).subscribe(data=>{ this.http.delete(`${this.beforePlanNode.texture}`).subscribe(data => {
this.beforePlanNode.texture = "" this.beforePlanNode.texture = ""
this.message.info("删除成功!"); this.message.info("删除成功!");
}) })
} else if (type === 3) { } else if (type === 3) {
this.http.delete(`${this.beforePlanNode.video}`).subscribe(data=>{ this.http.delete(`${this.beforePlanNode.video}`).subscribe(data => {
this.beforePlanNode.video = "" this.beforePlanNode.video = ""
this.message.info("删除成功!"); this.message.info("删除成功!");
}) })

Loading…
Cancel
Save