You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
2.2 KiB
53 lines
2.2 KiB
4 years ago
|
<div *ngIf="type == 'new'">
|
||
|
<div mat-dialog-title>新增节点</div>
|
||
|
<div>
|
||
|
<form (ngSubmit)="onSubmit(form.value,'new')" #form="ngForm" class="example-container">
|
||
|
|
||
|
<div mat-dialog-content>
|
||
|
<mat-form-field>
|
||
|
<input type="text" matInput ngModel
|
||
|
required name="name" placeholder="节点名称" autocomplete="off">
|
||
|
</mat-form-field>
|
||
|
</div>
|
||
|
<div mat-dialog-content>
|
||
|
<mat-form-field>
|
||
|
<mat-select [(value)]="allRootDisposalNode[0].name" required placeholder="父节点名称">
|
||
|
<mat-option *ngFor="let item of allRootDisposalNode" [value]="item.name" (click)="clickNode(item)">
|
||
|
{{item.name}}
|
||
|
</mat-option>
|
||
|
</mat-select>
|
||
|
</mat-form-field>
|
||
|
</div>
|
||
|
<div mat-dialog-actions>
|
||
|
<button mat-raised-button color="primary" type="submit"
|
||
|
[disabled]="!form.form.valid">
|
||
|
确定
|
||
|
</button>
|
||
|
<button mat-raised-button mat-dialog-close>取消</button>
|
||
|
</div>
|
||
|
</form>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div *ngIf="type == 'old'">
|
||
|
<div mat-dialog-title>保存到已有节点</div>
|
||
|
<div>
|
||
|
<form (ngSubmit)="onSubmit(form.value,'old')" #form="ngForm" class="example-container">
|
||
|
<div mat-dialog-content>
|
||
|
<mat-form-field>
|
||
|
<mat-select required ngModel placeholder="父节点名称" name="nodeId">
|
||
|
<mat-option *ngFor="let item of allPlanDisposalNode" [value]="item.id" (click)="clickNode(item)">
|
||
|
{{item.name}}
|
||
|
</mat-option>
|
||
|
</mat-select>
|
||
|
</mat-form-field>
|
||
|
</div>
|
||
|
<div mat-dialog-actions>
|
||
|
<button mat-raised-button color="primary" type="submit"
|
||
|
[disabled]="!form.form.valid">
|
||
|
确定
|
||
|
</button>
|
||
|
<button mat-raised-button mat-dialog-close>取消</button>
|
||
|
</div>
|
||
|
</form>
|
||
|
</div>
|
||
|
</div>
|