|
|
|
@ -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
|
|
|
|
@ -279,15 +280,18 @@ export class LeftDomainComponent implements OnInit {
|
|
|
|
|
this.addNodePop = id |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
selectMould: number = 0; //当前选择模板
|
|
|
|
|
|
|
|
|
|
//删除模板
|
|
|
|
|
deleteMould(e) { |
|
|
|
|
if (e.selectMould) { |
|
|
|
|
let isTrue = confirm('您确定要删除当前选中模板吗') |
|
|
|
|
if (isTrue) { |
|
|
|
|
// MarkWindow.instance.
|
|
|
|
|
MarkWindow.instance.deleteSandBoxTemplate(e.selectMould) |
|
|
|
|
this.allSandBoxTemplate.splice(this.allSandBoxTemplate.findIndex(item => item.id === e.selectMould), 1) |
|
|
|
|
this.selectMould = 0 |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
console.log(e) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//保存为模板
|
|
|
|
|