|
|
|
@ -16,6 +16,7 @@ import { ServeManager } from 'src/app/babylon/controller/serve-manager';
|
|
|
|
|
import { ObjectsService } from 'src/app/service/objects.service'; |
|
|
|
|
import Viewer from 'viewerjs'; |
|
|
|
|
import { HttpClient } from '@angular/common/http'; |
|
|
|
|
import { MarkTemplate } from 'src/app/babylon/model/data/mark/mark-template-data'; |
|
|
|
|
|
|
|
|
|
@Component({ |
|
|
|
|
selector: 'app-left-domain', |
|
|
|
@ -239,6 +240,7 @@ export class LeftDomainComponent implements OnInit {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
allMarkPlanData: AllMarkPlanData; //处置预案节点数据
|
|
|
|
|
allSandBoxTemplate: MarkTemplate[] = []; //所有模板
|
|
|
|
|
selectPlanId: number; |
|
|
|
|
selectNodeId: number; |
|
|
|
|
addDisposalPop: boolean = false; //显示/隐藏 创建预案 弹窗
|
|
|
|
@ -247,8 +249,13 @@ export class LeftDomainComponent implements OnInit {
|
|
|
|
|
//创建预案/节点
|
|
|
|
|
addDisposal(e) { |
|
|
|
|
if (this.addDisposalPop) { //创建预案
|
|
|
|
|
MarkWindow.instance.createMarkPlaneData(e.name) |
|
|
|
|
this.addDisposalPop = false |
|
|
|
|
if (e.selectMould) { |
|
|
|
|
MarkWindow.instance.addMarkPlanByTemplate(e.selectMould) |
|
|
|
|
this.addDisposalPop = false |
|
|
|
|
} else { |
|
|
|
|
MarkWindow.instance.createMarkPlaneData(e.name) |
|
|
|
|
this.addDisposalPop = false |
|
|
|
|
} |
|
|
|
|
} else { //创建节点
|
|
|
|
|
MarkWindow.instance.createMarkNodeData(this.addNodePop, e.name) |
|
|
|
|
this.addNodePop = null |
|
|
|
|