|
|
|
@ -42,8 +42,8 @@ export class EntryPlanComponent implements OnInit {
|
|
|
|
|
pageSize:any; //每页条数
|
|
|
|
|
pageSizeOptions: number[] = [10] //设置每页条数
|
|
|
|
|
PageNumber:any; //第几页
|
|
|
|
|
IsNewData:boolean //预案维护更新或者新增
|
|
|
|
|
IsNewCompanyData:boolean//单位维护更新或者新增
|
|
|
|
|
IsNewData='' //预案维护更新或者新增
|
|
|
|
|
IsNewCompanyData=''//单位维护更新或者新增
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
displayedColumns: string[] = ['state','unitname','integrity','level','jurisdictionsquadron', 'unittype','plantype', 'passstate','projectlevel','operation']; |
|
|
|
@ -335,8 +335,8 @@ export class EntryPlanComponent implements OnInit {
|
|
|
|
|
SortType: this.integritySort || '', |
|
|
|
|
HasPlanComponents:this.haveyuan||'', |
|
|
|
|
PlanCategories:this.planCategory, |
|
|
|
|
/* IsNewData:this.IsNewData, |
|
|
|
|
IsNewCompanyData:this.IsNewCompanyData */ |
|
|
|
|
IsNewData:this.IsNewData, |
|
|
|
|
IsNewCompanyData:this.IsNewCompanyData |
|
|
|
|
} |
|
|
|
|
this.http.get("/api/Plans",{params:paramsdata}).subscribe((data:any)=>{ |
|
|
|
|
|
|
|
|
@ -358,36 +358,7 @@ export class EntryPlanComponent implements OnInit {
|
|
|
|
|
onSubmit (value) { |
|
|
|
|
this.PageNumber = 1 |
|
|
|
|
this.pageEvent.pageIndex = 0 |
|
|
|
|
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 = { |
|
|
|
|
CompanyName: this.companyName || '', |
|
|
|
|
OrganizationId: this.jsId || '', |
|
|
|
|
HasChildrenOrganization:this.jscheck || '', |
|
|
|
|
BuildingTypeId: this.unittype || '', |
|
|
|
|
PlanType: reservePlanType || '', |
|
|
|
|
AuditStatus: this.toExamine || '', |
|
|
|
|
PlanLevel: this.preparelevel || '', |
|
|
|
|
HasChildrenPlanLevel: this.plcheck || '', |
|
|
|
|
PageNumber: this.PageNumber || '1', |
|
|
|
|
PageSize: this.pageSizeOptions[0], |
|
|
|
|
Sort: this.integritySort ? 'integrityscore' : '', |
|
|
|
|
SortType: this.integritySort || '', |
|
|
|
|
HasPlanComponents:this.haveyuan||'', |
|
|
|
|
PlanCategories:this.planCategory, |
|
|
|
|
IsNewData:this.IsNewData==undefined?true:this.IsNewData, |
|
|
|
|
IsNewCompanyData:this.IsNewCompanyData==undefined?true:this.IsNewCompanyData |
|
|
|
|
} |
|
|
|
|
this.http.get("/api/Plans",{params:paramsdata}).subscribe((data:any)=>{ |
|
|
|
|
|
|
|
|
|
this.length = data.totalCount |
|
|
|
|
this.allPlanInfo = data |
|
|
|
|
|
|
|
|
|
this.tabledataSource = data.items |
|
|
|
|
}) |
|
|
|
|
this.getAllPlanInfo() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
companyName:any //单位名称
|
|
|
|
@ -402,8 +373,8 @@ export class EntryPlanComponent implements OnInit {
|
|
|
|
|
planCategory=[] //预案级别
|
|
|
|
|
//重置
|
|
|
|
|
reset(){ |
|
|
|
|
this.IsNewCompanyData=undefined |
|
|
|
|
this.IsNewData=undefined |
|
|
|
|
this.IsNewCompanyData='' |
|
|
|
|
this.IsNewData='' |
|
|
|
|
this.companyName = '' |
|
|
|
|
this.js = '' |
|
|
|
|
this.jsId = '' |
|
|
|
|