|
|
|
@ -33,6 +33,7 @@ export class LeftDomainComponent implements OnInit {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
editMode: boolean = true; //编辑/查看模式
|
|
|
|
|
userMode: boolean = ModeManager.s_isMakeMode; //是否为 内部权限
|
|
|
|
|
beforeFence: number; //当前选中功能栏
|
|
|
|
|
FacilityList: FacilityInfoUIItem[] = []; //统计设备 list
|
|
|
|
|
selectFacilityId: string = null; //选中设备 ID
|
|
|
|
@ -253,10 +254,18 @@ export class LeftDomainComponent implements OnInit {
|
|
|
|
|
MarkWindow.instance.addMarkPlanByTemplate(e.selectMould) |
|
|
|
|
this.addDisposalPop = false |
|
|
|
|
} else { |
|
|
|
|
if (!e.name) { |
|
|
|
|
this.message.info('请填写名称!'); |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
MarkWindow.instance.createMarkPlaneData(e.name) |
|
|
|
|
this.addDisposalPop = false |
|
|
|
|
} |
|
|
|
|
} else { //创建节点
|
|
|
|
|
if (!e.name) { |
|
|
|
|
this.message.info('请填写名称!'); |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
MarkWindow.instance.createMarkNodeData(this.addNodePop, e.name) |
|
|
|
|
this.addNodePop = null |
|
|
|
|
} |
|
|
|
@ -271,6 +280,20 @@ export class LeftDomainComponent implements OnInit {
|
|
|
|
|
this.addNodePop = id |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
selectMould: number = 0; //当前选择模板
|
|
|
|
|
|
|
|
|
|
//删除模板
|
|
|
|
|
deleteMould(e) { |
|
|
|
|
if (e.selectMould) { |
|
|
|
|
let isTrue = confirm('您确定要删除当前选中模板吗') |
|
|
|
|
if (isTrue) { |
|
|
|
|
MarkWindow.instance.deleteSandBoxTemplate(e.selectMould) |
|
|
|
|
this.allSandBoxTemplate.splice(this.allSandBoxTemplate.findIndex(item => item.id === e.selectMould), 1) |
|
|
|
|
this.selectMould = 0 |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//保存为模板
|
|
|
|
|
saveMould() { |
|
|
|
|
MarkWindow.instance.saveToSandBoxTemplate(this.editSelectDisposal) |
|
|
|
|