diff --git a/src/app/pages/left-domain/left-domain.component.html b/src/app/pages/left-domain/left-domain.component.html index c679b77..ddde5e5 100644 --- a/src/app/pages/left-domain/left-domain.component.html +++ b/src/app/pages/left-domain/left-domain.component.html @@ -209,12 +209,12 @@ - +
预案/节点名称 - + @@ -224,6 +224,7 @@ +
diff --git a/src/app/pages/left-domain/left-domain.component.ts b/src/app/pages/left-domain/left-domain.component.ts index 2fbf4ef..c0cbe80 100644 --- a/src/app/pages/left-domain/left-domain.component.ts +++ b/src/app/pages/left-domain/left-domain.component.ts @@ -253,10 +253,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 +279,17 @@ export class LeftDomainComponent implements OnInit { this.addNodePop = id } + //删除模板 + deleteMould(e) { + if (e.selectMould) { + let isTrue = confirm('您确定要删除当前选中模板吗') + if (isTrue) { + // MarkWindow.instance. + } + } + console.log(e) + } + //保存为模板 saveMould() { MarkWindow.instance.saveToSandBoxTemplate(this.editSelectDisposal)