陈鹏飞 3 years ago
parent
commit
609d458b79
  1. 3
      src/app/pages/plan/plan.component.ts

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

@ -32,6 +32,7 @@ import { FacilityType } from 'src/app/babylon/model/data/model-data/model-data-f
import { HttpClient } from '@angular/common/http';
import { DataBuffer } from '@babylonjs/core';
import { Photo360Tool } from 'src/app/babylon/tool/photo360-tool';
import { SpeakingTool } from 'src/app/babylon/tool/speaking-tool';
@ -633,8 +634,10 @@ export class PlanComponent implements OnInit {
this.message.info(msg);
if (this.isSuspend) { //暂停
window.clearTimeout(this.updateTimer) //清除定时器
SpeakingTool.Instance.pause()
} else { //开启
this.updateTimer ? window.clearTimeout(this.updateTimer) : null //清除定时器
SpeakingTool.Instance.resume()
this.progressList.forEach((item, index) => { index > this.nzCurrent ? this.progressList[index] = 0 : null })
if (this.progressList[this.nzCurrent] === 0) { MarkWindow.instance.selectMarkNode(this.beforeEmergencyPlan.id, this.beforePlanNode.id, false, true) }
this.updateProgress()

Loading…
Cancel
Save