|
|
|
@ -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 { Game } from 'src/app/babylon/game'; |
|
|
|
|
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 { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
constructor(private element: ElementRef, private buildingBISrv: BuildingBasicInfosService, private objectsSrv: ObjectsService, private eventManager: EventManager, private message: NzMessageService, private http: HttpClient) { } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static instance: PlanComponent; |
|
|
|
|
public game: Game = new Game(); |
|
|
|
|
public beforeOneSatus; //当前 satus
|
|
|
|
@ -52,6 +54,7 @@ export class PlanComponent implements OnInit {
|
|
|
|
|
public isShowLoading: boolean = true; //显隐 loading加载条
|
|
|
|
|
public companyData: any; //当前加油站所属组织机构 data
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ngOnInit(): void { |
|
|
|
|
PlanComponent.instance = this; |
|
|
|
|
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.updateProgress() |
|
|
|
|
}, 100) |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//自动播放-切换接点
|
|
|
|
@ -678,17 +682,17 @@ export class PlanComponent implements OnInit {
|
|
|
|
|
let isDelete = confirm("您确定要删除吗?") |
|
|
|
|
if (isDelete) { |
|
|
|
|
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.message.info("删除成功!"); |
|
|
|
|
}) |
|
|
|
|
} else if (type === 2) { |
|
|
|
|
this.http.delete(`${this.beforePlanNode.texture}`).subscribe(data=>{ |
|
|
|
|
this.http.delete(`${this.beforePlanNode.texture}`).subscribe(data => { |
|
|
|
|
this.beforePlanNode.texture = "" |
|
|
|
|
this.message.info("删除成功!"); |
|
|
|
|
}) |
|
|
|
|
} else if (type === 3) { |
|
|
|
|
this.http.delete(`${this.beforePlanNode.video}`).subscribe(data=>{ |
|
|
|
|
this.http.delete(`${this.beforePlanNode.video}`).subscribe(data => { |
|
|
|
|
this.beforePlanNode.video = "" |
|
|
|
|
this.message.info("删除成功!"); |
|
|
|
|
}) |
|
|
|
|