Browse Source

[完善]预案类型查询更改为多类型查询

dev
邵佳豪 4 years ago
parent
commit
4948a6bbe1
  1. 10
      src/app/plan-management/entry-plan/entry-plan.component.html
  2. 8
      src/app/plan-management/entry-plan/entry-plan.component.ts

10
src/app/plan-management/entry-plan/entry-plan.component.html

@ -52,11 +52,11 @@
<div class="queryField"> <div class="queryField">
<label style="margin-right: 10px;">预案类型:</label> <label style="margin-right: 10px;">预案类型:</label>
<mat-form-field> <mat-form-field>
<mat-select name="reservePlanType" [(ngModel)]="reservePlanType" placeholder='请选择预案类型'> <mat-select name="reservePlanType" [(ngModel)]="reservePlanType" placeholder='请选择预案类型' [multiple]="true">
<mat-option value="8">卡片预案</mat-option> <mat-option value=8>卡片预案</mat-option>
<mat-option value="1">二维预案</mat-option> <mat-option value=1>二维预案</mat-option>
<mat-option value="2">三维预案</mat-option> <mat-option value=2>三维预案</mat-option>
<mat-option value="4">其他预案</mat-option> <mat-option value=4>其他预案</mat-option>
</mat-select> </mat-select>
</mat-form-field> </mat-form-field>
</div> </div>

8
src/app/plan-management/entry-plan/entry-plan.component.ts

@ -283,16 +283,20 @@ export class EntryPlanComponent implements OnInit {
closediv(){ closediv(){
this.isorganizationbox = false this.isorganizationbox = false
} }
allPlanInfo:any //存储所有预案信息 allPlanInfo:any //存储所有预案信息
//获得所有预案信息 //获得所有预案信息
getAllPlanInfo(){ getAllPlanInfo(){
let reservePlanType
this.reservePlanType ? reservePlanType = JSON.parse(JSON.stringify(this.reservePlanType)) : reservePlanType = ''
if(this.reservePlanType && this.reservePlanType.length != 0){
reservePlanType = eval(this.reservePlanType.join("|"))
}
let paramsdata:any = { let paramsdata:any = {
CompanyName: this.companyName || '', CompanyName: this.companyName || '',
OrganizationId: this.jsId || '', OrganizationId: this.jsId || '',
HasChildrenOrganization:this.jscheck || '', HasChildrenOrganization:this.jscheck || '',
BuildingTypeId: this.unittype || '', BuildingTypeId: this.unittype || '',
PlanType: this.reservePlanType || '', PlanType: reservePlanType || '',
AuditStatus: this.toExamine || '', AuditStatus: this.toExamine || '',
PlanLevel: this.preparelevel || '', PlanLevel: this.preparelevel || '',
HasChildrenPlanLevel: this.plcheck || '', HasChildrenPlanLevel: this.plcheck || '',

Loading…
Cancel
Save