Browse Source

保存模板功能

dev
陈鹏飞 3 years ago
parent
commit
2ccc2409ac
  1. 7
      src/app/pages/left-domain/left-domain.component.html
  2. 5
      src/app/pages/left-domain/left-domain.component.ts

7
src/app/pages/left-domain/left-domain.component.html

@ -219,7 +219,7 @@
</nz-form-item>
</form>
</nz-modal>
<nz-modal [(nzVisible)]="editSelectDisposal" nzTitle="编辑预案名称" (nzOnCancel)="editSelectDisposal = null;" (nzOnOk)="editDisposal(editForm.value)" [nzOkDisabled]='name.invalid'>
<nz-modal [(nzVisible)]="editSelectDisposal" nzTitle="编辑预案名称" [nzOkDisabled]='name.invalid'>
<form nz-form #editForm='ngForm'>
<nz-form-item>
<nz-form-label [nzSpan]="6">预案名称</nz-form-label>
@ -228,6 +228,11 @@
</nz-form-control>
</nz-form-item>
</form>
<div *nzModalFooter>
<button nz-button nzType="primary" (click)="saveMould()">保存为模板</button>
<button nz-button nzType="default" (click)="editSelectDisposal = null;">取消</button>
<button nz-button nzType="primary" (click)="editDisposal(editForm.value)">确定</button>
</div>
</nz-modal>
<nz-modal [(nzVisible)]="saveDisposalDialog" nzTitle="处置节点保存" (nzOnCancel)="saveDisposalDialog = false;" [nzFooter]="null">
<div class="submitBottom">

5
src/app/pages/left-domain/left-domain.component.ts

@ -264,6 +264,11 @@ export class LeftDomainComponent implements OnInit {
this.addNodePop = id
}
//保存为模板
saveMould() {
MarkWindow.instance.saveToSandBoxTemplate(this.editSelectDisposal)
}
//打开 编辑预案名称弹窗
openEditDisposal(event, item: MarkPlanData) {
event.stopPropagation()

Loading…
Cancel
Save