|
|
|
@ -92,6 +92,7 @@ export class CombinedQueryComponent implements OnInit {
|
|
|
|
|
this.getAllPlanInfo() |
|
|
|
|
} |
|
|
|
|
//获得所有预案或单位信息
|
|
|
|
|
tableDataNull=false |
|
|
|
|
async getAllPlanInfo() { |
|
|
|
|
let paramsdata:any={ |
|
|
|
|
QueryMode:this.preparelevels, |
|
|
|
@ -99,22 +100,25 @@ export class CombinedQueryComponent implements OnInit {
|
|
|
|
|
HasChildren:this.jscheck||'', |
|
|
|
|
TimeIntervalStart:this.dwaddtime||'', |
|
|
|
|
TimeIntervalEnd:this.dwendtime||'', |
|
|
|
|
BuildingTypeIds:this.unittype||'', |
|
|
|
|
BuildingTypeIds:this.unittype||[], |
|
|
|
|
CompanyStatus:this.preparelevel||'' |
|
|
|
|
} |
|
|
|
|
let yuandata={ |
|
|
|
|
QueryMode:this.preparelevels, |
|
|
|
|
OrganizationId:this.jsId||'', |
|
|
|
|
HasChildren:this.jscheck||'', |
|
|
|
|
HasChildren:this.yuanjscheck||'', |
|
|
|
|
TimeIntervalStart:this.yuanaddtime||'', |
|
|
|
|
TimeIntervalEnd:this.yuanendtime||'', |
|
|
|
|
PlanCategory:this.planCategory||'', |
|
|
|
|
PlanType:this.reservePlanType||'' |
|
|
|
|
PlanCategory:this.planCategory||[], |
|
|
|
|
PlanType:this.reservePlanType||[] |
|
|
|
|
} |
|
|
|
|
let result = await new Promise((resolve, reject)=>{ |
|
|
|
|
this.http.get("/api/StatisticsAnalysis/ReportTable", { params:this.preparelevels==0? paramsdata:yuandata }).subscribe((data: any) => { |
|
|
|
|
console.log(data) |
|
|
|
|
//this.tabledataSource=data
|
|
|
|
|
//console.log(data)
|
|
|
|
|
if(data.length==0){ |
|
|
|
|
this.tableDataNull=true |
|
|
|
|
}else{ |
|
|
|
|
this.tableDataNull=false |
|
|
|
|
if(this.preparelevels==0){ |
|
|
|
|
//单位查询
|
|
|
|
|
this.tabledataSource=[] |
|
|
|
@ -252,8 +256,11 @@ export class CombinedQueryComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
console.log(this.yuanColumns) |
|
|
|
|
console.log(this.yuanTable) |
|
|
|
|
} |
|
|
|
|
//this.tabledataSource=data
|
|
|
|
|
|
|
|
|
|
//console.log(this.yuanColumns)
|
|
|
|
|
//console.log(this.yuanTable)
|
|
|
|
|
this.excelData=data |
|
|
|
|
resolve(this.excelData) |
|
|
|
|
} |
|
|
|
@ -487,7 +494,7 @@ export class CombinedQueryComponent implements OnInit {
|
|
|
|
|
yuanjs: any //预案所选组织机构
|
|
|
|
|
yuanjsId: any //预案所选组织机构的id
|
|
|
|
|
yuanjscheck: boolean //预案所选组织机构勾选框
|
|
|
|
|
unittype: any //单位类型
|
|
|
|
|
unittype=[] //单位类型
|
|
|
|
|
reservePlanType=[] //预案类型
|
|
|
|
|
preparelevel: any //编制级别
|
|
|
|
|
plcheck: boolean //编制级别勾选框
|
|
|
|
@ -498,7 +505,7 @@ export class CombinedQueryComponent implements OnInit {
|
|
|
|
|
this.js = '' |
|
|
|
|
this.jsId = '' |
|
|
|
|
this.jscheck = false |
|
|
|
|
this.unittype = '' |
|
|
|
|
this.unittype = [] |
|
|
|
|
|
|
|
|
|
this.preparelevel = '' |
|
|
|
|
this.dwaddtime = '' |
|
|
|
|