| | |
| | | <div class="content__title"> |
| | | <h1>Page Name</h1> |
| | | </div> |
| | | <pro-header [title]="'Page Name'"></pro-header> |
| | | <h1> |
| | | 设备维护 |
| | | <small>包含设备的查询、编辑、删除、配置等功能</small> |
| | | </h1> |
| | | </div> |
| | | <nz-card [nzBordered]="false"> |
| | | <div nz-row class="mb-sm"> |
| | | <div nz-col [nzSpan]="4"> |
| | | <button nz-button (click)="addOrModify($event)" [nzType]="'primary'" [nzSize]="'large'"> |
| | | <i class="anticon anticon-plus"></i><span>新建</span> |
| | | </button> |
| | | <ng-container *ngIf="selectedRows.length > 0"> |
| | | <button nz-button [nzSize]="'large'" (click)="deleteSelected()">批量删除</button> |
| | | </ng-container> |
| | | </div> |
| | | <div nz-col [nzSpan]="7"> |
| | | <span style="padding: 5px 10px;"> |
| | | 组织: |
| | | </span> |
| | | <nz-select style="width: 79%;" [(ngModel)]="queryMap.orgId" (ngModelChange)="setOrgId($event)" [nzPlaceHolder]="'选择 组织(输入名称搜索)'" |
| | | nzAllowClear [nzFilter]="false" nzShowSearch (nzSearchChange)="orgSelectChange($event)" [nzNotFoundContent]="'无法找到'" > |
| | | <nz-option *ngFor="let option of orgOptions" [nzLabel]="option.name" [nzValue]="option.id" [nzDisabled]="option.disabled"> |
| | | </nz-option> |
| | | </nz-select> |
| | | </div> |
| | | <div nz-col [nzSpan]="7"> |
| | | <span style="padding: 5px 10px;"> |
| | | 监控站: |
| | | </span> |
| | | <nz-select style="width: 75%;" [(ngModel)]="queryMap.mpointId" (ngModelChange)="setMpointId($event)" [nzPlaceHolder]="'选择 监控站名称(输入名称搜索)'" |
| | | nzAllowClear [nzFilter]="false" nzShowSearch (nzSearchChange)="monitorPointChange($event)" [nzNotFoundContent]="'无法找到'" > |
| | | <nz-option *ngFor="let option of monitorPoints" [nzLabel]="option.name" [nzValue]="option.id" [nzDisabled]="option.disabled"> |
| | | </nz-option> |
| | | </nz-select> |
| | | </div> |
| | | <div nz-col [nzSpan]="6"> |
| | | <nz-input [ngStyle]="{'width': '240px','float':'right'}" [(ngModel)]="queryText" name="" [nzPlaceHolder]="'请输入设备名称或设备mac'" |
| | | (keyup)="queryTextChanged($event)" (change)="queryTextChanged($event)" ></nz-input> |
| | | </div> |
| | | </div> |
| | | <div class="mb-md"> |
| | | <nz-alert *ngIf="selectedRows.length > 0" [nzType]="'info'" [nzShowIcon]="true"> |
| | | <span alert-body> |
| | | 已选择<strong class="text-primary">{{selectedRows.length}}</strong>项 |
| | | </span> |
| | | </nz-alert> |
| | | </div> |
| | | <simple-table #simpleTable [data]="listUrl" [extraParams]="extraParams" [columns]="columns" [showTotal]="true" |
| | | [reqReName]="{pi: 'pageIndex',ps: 'pageSize'}" (checkboxChange)="checkboxChange($event)" [ps]="10" [resReName]="{list: 'data',total: 'total'}"></simple-table> |
| | | </nz-card> |
| | | |