From 1889410c01313b2b5d9696e6b1e82f28bcfe0ecb Mon Sep 17 00:00:00 2001 From: cpf <1105965053@qq.com> Date: Tue, 28 Dec 2021 16:57:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../left-domain/left-domain.component.html | 5 +++-- .../left-domain/left-domain.component.ts | 19 +++++++++++++++++++ 2 files changed, 22 insertions(+), 2 deletions(-) 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)