|
|
|
@ -8,45 +8,48 @@
|
|
|
|
|
<input matInput placeholder="请输入单位名称" name="CompanyName" [(ngModel)]="CompanyName"> |
|
|
|
|
</mat-form-field> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="queryField ordiv"> |
|
|
|
|
<label style="margin-right: 10px;">消防救援站:</label> |
|
|
|
|
<mat-form-field> |
|
|
|
|
<input readonly matInput placeholder="请选择消防救援站" [(ngModel)]="selectOrganizationIName" name="selectOrganizationIName" (focus)="openorganizationbox()"> |
|
|
|
|
<input readonly matInput placeholder="请选择消防救援站" [(ngModel)]="selectOrganizationIName" |
|
|
|
|
name="selectOrganizationIName" (focus)="openorganizationbox()"> |
|
|
|
|
</mat-form-field> |
|
|
|
|
<mat-checkbox style="margin-left: 5px;" [(ngModel)]="HasChildrenOrganization" name="HasChildrenOrganization">包含下级</mat-checkbox> |
|
|
|
|
|
|
|
|
|
<mat-checkbox style="margin-left: 5px;" [(ngModel)]="HasChildrenOrganization" |
|
|
|
|
name="HasChildrenOrganization">包含下级</mat-checkbox> |
|
|
|
|
|
|
|
|
|
<div class="organizationbox" *ngIf="isorganizationbox"> |
|
|
|
|
<div (click)="closediv()" class="closediv"><mat-icon>clear</mat-icon></div> |
|
|
|
|
<mat-tree [dataSource]="dataSource" [treeControl]="treeControl"> |
|
|
|
|
<mat-tree-node *matTreeNodeDef="let node" matTreeNodePadding (click)='add(node)' class="organizationlist"> |
|
|
|
|
<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)='add(node)' class="organizationlist"> |
|
|
|
|
<button type="button" mat-icon-button matTreeNodeToggle [attr.aria-label]="'toggle ' + node.name"> |
|
|
|
|
<div (click)="closediv()" class="closediv"><mat-icon>clear</mat-icon></div> |
|
|
|
|
<mat-tree [dataSource]="dataSource" [treeControl]="treeControl"> |
|
|
|
|
<mat-tree-node *matTreeNodeDef="let node" matTreeNodePadding (click)='add(node)' class="organizationlist"> |
|
|
|
|
<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)='add(node)' |
|
|
|
|
class="organizationlist"> |
|
|
|
|
<button type="button" mat-icon-button matTreeNodeToggle [attr.aria-label]="'toggle ' + node.name"> |
|
|
|
|
<mat-icon class="mat-icon-rtl-mirror"> |
|
|
|
|
{{treeControl.isExpanded(node) ? 'expand_more' : 'chevron_right'}} |
|
|
|
|
{{treeControl.isExpanded(node) ? 'expand_more' : 'chevron_right'}} |
|
|
|
|
</mat-icon> |
|
|
|
|
</button> |
|
|
|
|
<li>{{node.name}}</li> |
|
|
|
|
</mat-tree-node> |
|
|
|
|
</mat-tree> |
|
|
|
|
</button> |
|
|
|
|
<li>{{node.name}}</li> |
|
|
|
|
</mat-tree-node> |
|
|
|
|
</mat-tree> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="queryField"> |
|
|
|
|
<label style="margin-right: 10px;">单位类型:</label> |
|
|
|
|
<mat-form-field> |
|
|
|
|
<mat-select placeholder='请选择单位类型' [(ngModel)]="BuildingTypeId" name="BuildingTypeId"> |
|
|
|
|
<mat-option *ngFor="let unit of allunittype" [value]="unit.id" > |
|
|
|
|
<mat-option *ngFor="let unit of allunittype" [value]="unit.id"> |
|
|
|
|
{{unit.name}} |
|
|
|
|
</mat-option> |
|
|
|
|
</mat-select> |
|
|
|
|
</mat-form-field> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="queryField"> |
|
|
|
|
<label style="margin-right: 10px;">预案类型:</label> |
|
|
|
|
<mat-form-field class="maginleft"> |
|
|
|
@ -57,7 +60,7 @@
|
|
|
|
|
</mat-select> |
|
|
|
|
</mat-form-field> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="queryField"> |
|
|
|
|
<label style="margin-right: 10px;">审核状态:</label> |
|
|
|
|
<mat-form-field class="maginleft"> |
|
|
|
@ -68,7 +71,7 @@
|
|
|
|
|
</mat-select> |
|
|
|
|
</mat-form-field> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="queryField"> |
|
|
|
|
<label style="margin-right: 10px;">编制级别:</label> |
|
|
|
|
<mat-form-field class="maginleft"> |
|
|
|
@ -78,11 +81,12 @@
|
|
|
|
|
</mat-option> |
|
|
|
|
</mat-select> |
|
|
|
|
</mat-form-field> |
|
|
|
|
<mat-checkbox style="margin-left: 5px;" [(ngModel)]="HasChildrenPlanLevel" name="HasChildrenPlanLevel">包含下级</mat-checkbox> |
|
|
|
|
<mat-checkbox style="margin-left: 5px;" [(ngModel)]="HasChildrenPlanLevel" |
|
|
|
|
name="HasChildrenPlanLevel">包含下级</mat-checkbox> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div style="width: 100%;text-align: center;"> |
|
|
|
|
<button mat-raised-button color="primary">查询</button> |
|
|
|
|
<button mat-raised-button style="margin-left: 25px;" type="button" (click)="reset()">重置</button> |
|
|
|
@ -90,33 +94,33 @@
|
|
|
|
|
</form> |
|
|
|
|
</div> |
|
|
|
|
<mat-divider></mat-divider> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="body"> |
|
|
|
|
<div class="tablebox"> |
|
|
|
|
<table mat-table [dataSource]="tabledataSource"> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<ng-container matColumnDef="unitname"> |
|
|
|
|
<th mat-header-cell *matHeaderCellDef>单位名称</th> |
|
|
|
|
<td mat-cell *matCellDef="let element">{{element.companyName}}</td> |
|
|
|
|
</ng-container> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<ng-container matColumnDef="planname"> |
|
|
|
|
<th mat-header-cell *matHeaderCellDef>预案名称</th> |
|
|
|
|
<td mat-cell *matCellDef="let element">{{element.name}}</td> |
|
|
|
|
</ng-container> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<ng-container matColumnDef="addpeople"> |
|
|
|
|
<th mat-header-cell *matHeaderCellDef>添加人</th> |
|
|
|
|
<td mat-cell *matCellDef="let element">{{element.creatorName}}</td> |
|
|
|
|
</ng-container> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<ng-container matColumnDef="addtime"> |
|
|
|
|
<th mat-header-cell *matHeaderCellDef>添加时间</th> |
|
|
|
|
<td mat-cell *matCellDef="let element"> |
|
|
|
|
{{element.creationTime|date:'yyyy-MM-dd'}} |
|
|
|
|
</td> |
|
|
|
|
</ng-container> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<ng-container matColumnDef="plantype"> |
|
|
|
|
<th mat-header-cell *matHeaderCellDef>预案类型</th> |
|
|
|
|
<td mat-cell *matCellDef="let element"> |
|
|
|
@ -126,7 +130,7 @@
|
|
|
|
|
<label *ngIf="element.planType==4">其他预案</label> |
|
|
|
|
</td> |
|
|
|
|
</ng-container> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<ng-container matColumnDef="auditstate"> |
|
|
|
|
<th mat-header-cell *matHeaderCellDef>审核状态</th> |
|
|
|
|
<td mat-cell *matCellDef="let element"> |
|
|
|
@ -136,12 +140,12 @@
|
|
|
|
|
<label *ngIf="element.auditStatus==4">审核退回</label> |
|
|
|
|
</td> |
|
|
|
|
</ng-container> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<ng-container matColumnDef="isopen"> |
|
|
|
|
<th mat-header-cell *matHeaderCellDef>是否公开</th> |
|
|
|
|
<td mat-cell *matCellDef="let element">{{element.openRange}}</td> |
|
|
|
|
</ng-container> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<ng-container matColumnDef="preparethelevel"> |
|
|
|
|
<th mat-header-cell *matHeaderCellDef>编制级别</th> |
|
|
|
|
<td mat-cell *matCellDef="let element"> |
|
|
|
@ -151,24 +155,25 @@
|
|
|
|
|
<label *ngIf="element.planLevel==8">中队</label> |
|
|
|
|
</td> |
|
|
|
|
</ng-container> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<ng-container matColumnDef="operation"> |
|
|
|
|
<th mat-header-cell *matHeaderCellDef>操作</th> |
|
|
|
|
<td mat-cell *matCellDef="let element"> |
|
|
|
|
<label style="color: #0000FF;cursor: pointer;" (click)='toExamine(element)' *ngIf="element.auditStatus!=4">预案审核</label> |
|
|
|
|
<label style="color: #0000FF;margin-left: 10px;cursor: pointer;" (click)='openReserve(element)' *ngIf="element.auditStatus==2">预案公开</label> |
|
|
|
|
<label style="color: #0000FF;margin-left: 10px;cursor: pointer;" (click)='closeReserve(element)' *ngIf="element.auditStatus==2">预案取消公开</label> |
|
|
|
|
<label style="color: #999;"*ngIf="element.auditStatus==4">预案已驳回</label> |
|
|
|
|
<label style="color: #0000FF;cursor: pointer;" (click)='toExamine(element)' |
|
|
|
|
*ngIf="element.auditStatus!=4">预案审核</label> |
|
|
|
|
<label style="color: #0000FF;margin-left: 10px;cursor: pointer;" (click)='openReserve(element)' |
|
|
|
|
*ngIf="element.auditStatus==2">预案公开</label> |
|
|
|
|
<label style="color: #0000FF;margin-left: 10px;cursor: pointer;" (click)='closeReserve(element)' |
|
|
|
|
*ngIf="element.auditStatus==2">预案取消公开</label> |
|
|
|
|
<label style="color: #999;" *ngIf="element.auditStatus==4">预案已驳回</label> |
|
|
|
|
</td> |
|
|
|
|
</ng-container> |
|
|
|
|
|
|
|
|
|
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr> |
|
|
|
|
<tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr> |
|
|
|
|
|
|
|
|
|
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr> |
|
|
|
|
<tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr> |
|
|
|
|
</table> |
|
|
|
|
<mat-paginator [length]="length" |
|
|
|
|
[pageSize]="pageSize" |
|
|
|
|
[pageSizeOptions]="pageSizeOptions" |
|
|
|
|
(page)="chagePage($event)"> |
|
|
|
|
<mat-paginator [length]="length" [pageSize]="pageSize" [pageSizeOptions]="pageSizeOptions" |
|
|
|
|
(page)="chagePage($event)"> |
|
|
|
|
</mat-paginator> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|