|
|
|
@ -140,7 +140,12 @@
|
|
|
|
|
<div class="publicBox disposalPlan" *ngIf="beforeFence === 7 && allMarkPlanData"> |
|
|
|
|
<div class="interval" *ngFor="let item of allMarkPlanData.datas;let key = index;"> |
|
|
|
|
<div class="publicDisposal disposalHeader"> |
|
|
|
|
{{item.name}}<label *ngIf="editMode"><i nz-icon nzType="plus-circle" nzTheme="outline" (click)="addNodePop = item.id;"></i><i nz-icon nzType="delete" nzTheme="outline" (click)="deleteDisposal(item)"></i></label> |
|
|
|
|
{{item.name}} |
|
|
|
|
<label *ngIf="editMode"> |
|
|
|
|
<i nz-icon nzType="plus-circle" nzTheme="outline" (click)="addNodePop = item.id;"></i> |
|
|
|
|
<i nz-icon nzType="edit" nzTheme="outline" (click)="openEditDisposal(item)"></i> |
|
|
|
|
<i nz-icon nzType="delete" nzTheme="outline" (click)="deleteDisposal(item)"></i> |
|
|
|
|
</label> |
|
|
|
|
</div> |
|
|
|
|
<ul> |
|
|
|
|
<li class="publicDisposal disposalContent" *ngFor="let items of item.nodes;let keys = index;"> |
|
|
|
@ -162,6 +167,16 @@
|
|
|
|
|
</nz-form-item> |
|
|
|
|
</form> |
|
|
|
|
</nz-modal> |
|
|
|
|
<nz-modal [(nzVisible)]="editSelectDisposal" nzTitle="编辑预案名称" (nzOnCancel)="editSelectDisposal = null;" (nzOnOk)="editDisposal(editForm.value)" [nzOkDisabled]='name.invalid'> |
|
|
|
|
<form nz-form #editForm='ngForm'> |
|
|
|
|
<nz-form-item> |
|
|
|
|
<nz-form-label [nzSpan]="6">预案名称</nz-form-label> |
|
|
|
|
<nz-form-control [nzSpan]="18" nzErrorTip="请输入必填项"> |
|
|
|
|
<input nz-input #name='ngModel' [(ngModel)]="editDisposalName" name="name" required/> |
|
|
|
|
</nz-form-control> |
|
|
|
|
</nz-form-item> |
|
|
|
|
</form> |
|
|
|
|
</nz-modal> |
|
|
|
|
<nz-modal [(nzVisible)]="saveDisposalDialog" nzTitle="处置节点保存" (nzOnCancel)="saveDisposalDialog = false;" [nzFooter]="null"> |
|
|
|
|
<div class="submitBottom"> |
|
|
|
|
<button (click)='saveNode(true)'>新建节点并保存</button><button (click)='saveNode(false)'>保存到已有节点</button> |
|
|
|
|