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.
46 lines
1.9 KiB
46 lines
1.9 KiB
2 years ago
|
<h2 mat-dialog-title>新增/编辑管理员</h2>
|
||
|
|
||
|
<form (ngSubmit)="onSubmit(form.value)" #form="ngForm" class="example-container">
|
||
|
|
||
|
<div>
|
||
|
<mat-form-field>
|
||
|
<input matInput name="name" [(ngModel)]="name" required placeholder="登录账号" autocomplete="off">
|
||
|
</mat-form-field>
|
||
|
</div>
|
||
|
|
||
|
<div>
|
||
|
<mat-form-field>
|
||
|
<input matInput name="realName" [(ngModel)]="realName" required placeholder="用户姓名" autocomplete="off">
|
||
|
</mat-form-field>
|
||
|
</div>
|
||
|
|
||
|
<div style="margin-bottom: 10px;">
|
||
|
<p style="font-size: 14px;">消防救援站: <label style="margin-left: 10px;">{{organizationName}}</label></p>
|
||
|
</div>
|
||
|
|
||
|
<div class="treeDiv">
|
||
|
<mat-tree [dataSource]="dataSource" [treeControl]="treeControl">
|
||
|
<mat-tree-node *matTreeNodeDef="let node" matTreeNodePadding (click)='selectTree(node)'>
|
||
|
<button type="button" mat-icon-button disabled></button>
|
||
|
<li>{{node.name}}</li>
|
||
|
</mat-tree-node>
|
||
|
<mat-tree-node *matTreeNodeDef="let node;when: hasChild" matTreeNodePadding (click)='selectTree(node)'>
|
||
|
<button type="button" mat-icon-button matTreeNodeToggle [attr.aria-label]="'toggle ' + node.name">
|
||
|
<mat-icon mat-icon class="mat-icon-rtl-mirror">{{treeControl.isExpanded(node) ? 'expand_more' :
|
||
|
'chevron_right'}}</mat-icon>
|
||
|
</button>
|
||
|
<li>{{node.name}}</li>
|
||
|
</mat-tree-node>
|
||
|
</mat-tree>
|
||
|
</div>
|
||
|
|
||
|
<div mat-dialog-content *ngIf="errmsg">
|
||
|
<p style="font-size: 14px; color: red;">{{errmsg}}</p>
|
||
|
</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>
|