|
|
@ -152,18 +152,17 @@ export class ScheduledUpdatesComponent implements OnInit { |
|
|
|
this.example.setOption(options); |
|
|
|
this.example.setOption(options); |
|
|
|
this.example.on('click', (params) => { |
|
|
|
this.example.on('click', (params) => { |
|
|
|
this.echartsData.findShow=true |
|
|
|
this.echartsData.findShow=true |
|
|
|
if(params.name=="维护删除"){this.router.navigateByUrl(`/statisticanalysis/delete_one/delete_two?dwOryuan=${this.dwOryuan}&type=3`);} |
|
|
|
//if(params.name=="维护删除"){this.router.navigateByUrl(`/statisticanalysis/delete_one/delete_two?dwOryuan=${this.dwOryuan}&type=3`);}
|
|
|
|
else{ |
|
|
|
|
|
|
|
if(pieid=="pie"){ |
|
|
|
if(pieid=="pie"){ |
|
|
|
this.echartsData.scheduledUpdatesToggle = 1 |
|
|
|
this.echartsData.scheduledUpdatesToggle = 1 |
|
|
|
this.echartsData.zhuXname=["平均值","维护无需修改","维护修改","维护删除"] |
|
|
|
//this.echartsData.zhuXname=["平均值","维护无需修改","维护修改","维护删除"]
|
|
|
|
this.router.navigateByUrl(`/statisticanalysis/scheduledUpdates/PublicEcharts?type=${params.data.name=='维护修改'?2:1}&dwOryuan=${this.dwOryuan}`); |
|
|
|
this.router.navigateByUrl(`/statisticanalysis/scheduledUpdates/PublicEcharts?type=${params.data.name=='维护修改'?2:params.data.name=='维护无需修改'?1:3}&dwOryuan=${this.dwOryuan}&pieid=pie`); |
|
|
|
|
|
|
|
|
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
this.echartsData.zhuXname=["平均值","维护中","维护通过审核","未维护"] |
|
|
|
//this.echartsData.zhuXname=["平均值","维护中","维护通过审核","未维护"]
|
|
|
|
//this.router.navigateByUrl('/statisticanalysis/scheduledUpdates/PublicEcharts');
|
|
|
|
//this.router.navigateByUrl('/statisticanalysis/scheduledUpdates/PublicEcharts');
|
|
|
|
if(this.echartsData.level=='0'){ |
|
|
|
/* if(this.echartsData.level=='0'){ |
|
|
|
//总队跳转
|
|
|
|
|
|
|
|
this.echartsData.scheduledUpdatesToggle = 2 |
|
|
|
this.echartsData.scheduledUpdatesToggle = 2 |
|
|
|
this.router.navigateByUrl('/statisticanalysis/scheduledUpdates/PublicEcharts'); |
|
|
|
this.router.navigateByUrl('/statisticanalysis/scheduledUpdates/PublicEcharts'); |
|
|
|
this.echartsData.findShow=false |
|
|
|
this.echartsData.findShow=false |
|
|
@ -171,10 +170,14 @@ export class ScheduledUpdatesComponent implements OnInit { |
|
|
|
this.echartsData.scheduledUpdatesToggle = 3 |
|
|
|
this.echartsData.scheduledUpdatesToggle = 3 |
|
|
|
this.echartsData.findShow=false |
|
|
|
this.echartsData.findShow=false |
|
|
|
this.router.navigateByUrl('/statisticanalysis/scheduledUpdates/PublicEcharts'); |
|
|
|
this.router.navigateByUrl('/statisticanalysis/scheduledUpdates/PublicEcharts'); |
|
|
|
} |
|
|
|
} */ |
|
|
|
} |
|
|
|
this.echartsData.scheduledUpdatesToggle = 2 |
|
|
|
|
|
|
|
this.router.navigateByUrl(`/statisticanalysis/scheduledUpdates/PublicEcharts?pieid=pieTwo&type=${params.data.name=='维护通过审核'?2:params.data.name=='未维护'?1:3}&dwOryuan=${this.dwOryuan}`); |
|
|
|
|
|
|
|
this.echartsData.findShow=false |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//console.log(this.echartsData.scheduledUpdatesToggle)
|
|
|
|
//console.log(this.echartsData.scheduledUpdatesToggle)
|
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
@ -385,7 +388,13 @@ export class publicEchartsComponent implements OnInit { |
|
|
|
//this.router.navigateByUrl('/statisticanalysis/scheduledUpdates');
|
|
|
|
//this.router.navigateByUrl('/statisticanalysis/scheduledUpdates');
|
|
|
|
} |
|
|
|
} |
|
|
|
} */ |
|
|
|
} */ |
|
|
|
window.history.go(-1) |
|
|
|
if(this.verifieds.pieid=='pie'&& this.echartsData.scheduledUpdatesToggle>1){ |
|
|
|
|
|
|
|
this.echartsData.scheduledUpdatesToggle-- |
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
this.router.navigateByUrl('/statisticanalysis/scheduledUpdates'); |
|
|
|
|
|
|
|
//window.history.go(-1)
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//更多 窗口
|
|
|
|
//更多 窗口
|
|
|
@ -398,14 +407,14 @@ export class publicEchartsComponent implements OnInit { |
|
|
|
this.verifieds.oneEcharts.clear() |
|
|
|
this.verifieds.oneEcharts.clear() |
|
|
|
this.verifieds.oneEcharts.dispose() |
|
|
|
this.verifieds.oneEcharts.dispose() |
|
|
|
this.echartsData.zhiorBuinding="zhi" |
|
|
|
this.echartsData.zhiorBuinding="zhi" |
|
|
|
this.verifieds.getechartsdata('2021','1','2022','12') |
|
|
|
this.verifieds.getechartsdata(this.echartsData.time,'1',this.echartsData.time,'12') |
|
|
|
} |
|
|
|
} |
|
|
|
//建筑类型查询
|
|
|
|
//建筑类型查询
|
|
|
|
buildingFind(){ |
|
|
|
buildingFind(){ |
|
|
|
this.verifieds.oneEcharts.clear() |
|
|
|
this.verifieds.oneEcharts.clear() |
|
|
|
this.verifieds.oneEcharts.dispose() |
|
|
|
this.verifieds.oneEcharts.dispose() |
|
|
|
this.echartsData.zhiorBuinding="building" |
|
|
|
this.echartsData.zhiorBuinding="building" |
|
|
|
this.verifieds.getechartsdata('2021','1','2022','12') |
|
|
|
this.verifieds.getechartsdata(this.echartsData.time,'1',this.echartsData.time,'12') |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -426,18 +435,20 @@ export class verifiedComponent implements OnInit { |
|
|
|
|
|
|
|
|
|
|
|
ngOnInit(): void { |
|
|
|
ngOnInit(): void { |
|
|
|
window.setTimeout(()=>{ |
|
|
|
window.setTimeout(()=>{ |
|
|
|
|
|
|
|
if(this.echartsData.scheduledUpdatesToggle==1){ |
|
|
|
this.getechartsdata('2021','1','2022','12') |
|
|
|
this.getechartsdata('2021','1','2022','12') |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
},0) |
|
|
|
},0) |
|
|
|
|
|
|
|
console.log(this.echartsData.scheduledUpdatesToggle) |
|
|
|
|
|
|
|
this.pieid=this.route.snapshot.queryParams.pieid |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/* ngOnDestroy () { |
|
|
|
ngOnDestroy () { |
|
|
|
this.oneEcharts.dispose() |
|
|
|
//this.oneEcharts.dispose()
|
|
|
|
this.oneEcharts.clear() |
|
|
|
//this.oneEcharts.clear()
|
|
|
|
this.items.forEach((element,index) => { |
|
|
|
} |
|
|
|
element.echart.dispose() |
|
|
|
pieid=this.route.snapshot.queryParams.pieid |
|
|
|
element.echart.clear() |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} */ |
|
|
|
|
|
|
|
//TimeType=0//按月查询还是按年查询
|
|
|
|
//TimeType=0//按月查询还是按年查询
|
|
|
|
async changeTime (e,selectOneYear,nselectStartMoth,selectTwoYear,selectEndMonth){ |
|
|
|
async changeTime (e,selectOneYear,nselectStartMoth,selectTwoYear,selectEndMonth){ |
|
|
|
console.log(e) |
|
|
|
console.log(e) |
|
|
@ -486,7 +497,8 @@ export class verifiedComponent implements OnInit { |
|
|
|
this.ydatayue.push(element.count) |
|
|
|
this.ydatayue.push(element.count) |
|
|
|
}); |
|
|
|
}); |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
await this.echartsData.getData(Parameters,`/api/StatisticsAnalysis/Companies/Maintained/BuildingTypeTrend`) |
|
|
|
await this.echartsData.getData(Parameters,this.route.snapshot.queryParams.dwOryuan=='danwei'? |
|
|
|
|
|
|
|
`/api/StatisticsAnalysis/Companies/Maintained/BuildingTypeTrend`:`/api/StatisticsAnalysis/Plans/Maintained/BuildingTypeTrend`) |
|
|
|
this.tabledata=JSON.parse(JSON.stringify(this.echartsData.allDate)) |
|
|
|
this.tabledata=JSON.parse(JSON.stringify(this.echartsData.allDate)) |
|
|
|
console.log(this.tabledata) |
|
|
|
console.log(this.tabledata) |
|
|
|
this.xdatayue=[] |
|
|
|
this.xdatayue=[] |
|
|
@ -634,17 +646,19 @@ export class verifiedComponent implements OnInit { |
|
|
|
let xIndex=this.oneEcharts.convertFromPixel({seriesIndex:0},[params.offsetX, params.offsetY])[0]; |
|
|
|
let xIndex=this.oneEcharts.convertFromPixel({seriesIndex:0},[params.offsetX, params.offsetY])[0]; |
|
|
|
/*事件处理代码书写位置*/ |
|
|
|
/*事件处理代码书写位置*/ |
|
|
|
this.echartsData.scheduledUpdatesType = 0 |
|
|
|
this.echartsData.scheduledUpdatesType = 0 |
|
|
|
|
|
|
|
this.echartsData.scheduledUpdatesToggle = 2 |
|
|
|
//this.echartsData.scheduledUpdatesName = "ff"
|
|
|
|
//this.echartsData.scheduledUpdatesName = "ff"
|
|
|
|
this.echartsData.zhiorBuinding!="zhi"?this.echartsData.scheduledUpdatesToggle = -2:this.echartsData.level=='0'? this.echartsData.scheduledUpdatesToggle = 2:this.echartsData.level=='1'?this.echartsData.scheduledUpdatesToggle = 3:'' |
|
|
|
//this.echartsData.zhiorBuinding!="zhi"?this.echartsData.scheduledUpdatesToggle = -2:this.echartsData.level=='0'? this.echartsData.scheduledUpdatesToggle = 2:this.echartsData.level=='1'?this.echartsData.scheduledUpdatesToggle = 3:''
|
|
|
|
if(this.echartsData.zhiorBuinding!="zhi"){ |
|
|
|
if(this.echartsData.zhiorBuinding!="zhi"){ |
|
|
|
this.echartsData.findShow=false |
|
|
|
this.echartsData.findShow=false |
|
|
|
this.echartsData.scheduledUpdatesToggle = -2 |
|
|
|
//this.echartsData.scheduledUpdatesToggle = -2
|
|
|
|
|
|
|
|
|
|
|
|
if(this.echartsData.level=='0'&&this.tabledata[0].items[xIndex].organizations.length>=1){ |
|
|
|
if(this.echartsData.level=='0'&&this.tabledata[0].items[xIndex].organizations.length>=1){ |
|
|
|
this.echartsData.scheduledUpdatesToggle = 2 |
|
|
|
this.echartsData.scheduledUpdatesToggle = 2 |
|
|
|
//this.echartsData.time=xIndex
|
|
|
|
//this.echartsData.time=xIndex
|
|
|
|
//this.router.navigateByUrl(`/statisticanalysis/scheduledUpdates/PublicEcharts?type=${this.route.snapshot.queryParams.type}&TimeType=${this.TimeType}`);
|
|
|
|
//this.router.navigateByUrl(`/statisticanalysis/scheduledUpdates/PublicEcharts?type=${this.route.snapshot.queryParams.type}&TimeType=${this.TimeType}`);
|
|
|
|
}else if(this.echartsData.level=='1' &&this.tabledata[0].items[xIndex].organizations.length>=1){ |
|
|
|
}else if(this.echartsData.level=='1' &&this.tabledata[0].items[xIndex].organizations.length>=1){ |
|
|
|
this.echartsData.scheduledUpdatesToggle = 3 |
|
|
|
this.echartsData.scheduledUpdatesToggle = 2//原来是3
|
|
|
|
} |
|
|
|
} |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
this.echartsData.findShow=true |
|
|
|
this.echartsData.findShow=true |
|
|
@ -810,6 +824,7 @@ export class yueDateComponent implements OnInit { |
|
|
|
|
|
|
|
|
|
|
|
level:string; |
|
|
|
level:string; |
|
|
|
ngOnInit(): void { |
|
|
|
ngOnInit(): void { |
|
|
|
|
|
|
|
//console.log(this.echartsData.scheduledUpdatesToggle)
|
|
|
|
this.router.queryParams.subscribe(param=>{ |
|
|
|
this.router.queryParams.subscribe(param=>{ |
|
|
|
this.level=param.level |
|
|
|
this.level=param.level |
|
|
|
});
|
|
|
|
});
|
|
|
@ -833,6 +848,7 @@ export class yueDateComponent implements OnInit { |
|
|
|
ynum=[] |
|
|
|
ynum=[] |
|
|
|
OrganizationIds=''//点击的组织
|
|
|
|
OrganizationIds=''//点击的组织
|
|
|
|
async getechartsdata(){ |
|
|
|
async getechartsdata(){ |
|
|
|
|
|
|
|
if(this.router.snapshot.queryParams.pieid!='pieTwo'){ |
|
|
|
let Parameters={ |
|
|
|
let Parameters={ |
|
|
|
MaintainedState:this.router.snapshot.queryParams.type, |
|
|
|
MaintainedState:this.router.snapshot.queryParams.type, |
|
|
|
TimeType:this.echartsData.TimeType, |
|
|
|
TimeType:this.echartsData.TimeType, |
|
|
@ -840,7 +856,7 @@ export class yueDateComponent implements OnInit { |
|
|
|
//TimeEnd:this.echartsData.TimeType==0?selectEndYear+'-'+selectEndMonth:selectEndYear,
|
|
|
|
//TimeEnd:this.echartsData.TimeType==0?selectEndYear+'-'+selectEndMonth:selectEndYear,
|
|
|
|
OrganizationId:this.OrganizationIds |
|
|
|
OrganizationId:this.OrganizationIds |
|
|
|
} |
|
|
|
} |
|
|
|
console.log(this.echartsData.zhiorBuinding) |
|
|
|
//console.log(this.echartsData.zhiorBuinding)
|
|
|
|
await this.echartsData.getData(Parameters,this.echartsData.zhiorBuinding=='zhi'? `/api/StatisticsAnalysis/Companies/Maintained/OrganizationTrend`:`/api/StatisticsAnalysis/Companies/Maintained/BuildingTypeTrend`) |
|
|
|
await this.echartsData.getData(Parameters,this.echartsData.zhiorBuinding=='zhi'? `/api/StatisticsAnalysis/Companies/Maintained/OrganizationTrend`:`/api/StatisticsAnalysis/Companies/Maintained/BuildingTypeTrend`) |
|
|
|
this.tabledata=JSON.parse(JSON.stringify(this.echartsData.allDate)) |
|
|
|
this.tabledata=JSON.parse(JSON.stringify(this.echartsData.allDate)) |
|
|
|
console.log(this.tabledata) |
|
|
|
console.log(this.tabledata) |
|
|
@ -851,14 +867,45 @@ export class yueDateComponent implements OnInit { |
|
|
|
this.organizationId.push(this.echartsData.zhiorBuinding=='zhi'? element.organizationId:element.buildingTypeId) |
|
|
|
this.organizationId.push(this.echartsData.zhiorBuinding=='zhi'? element.organizationId:element.buildingTypeId) |
|
|
|
//this.ydatayue.push(element.count)
|
|
|
|
//this.ydatayue.push(element.count)
|
|
|
|
}); |
|
|
|
}); |
|
|
|
/* this.ydatayue=[] |
|
|
|
|
|
|
|
this.tabledata[0].items.forEach(element => { |
|
|
|
|
|
|
|
this.zhiNameData.push(element.date) |
|
|
|
|
|
|
|
this.ydatayue.push(element.count) |
|
|
|
|
|
|
|
}); */ |
|
|
|
|
|
|
|
this.tiaoshiPao=this.echartsData.qipao(this.tiaoshiPao,this.ynum,this.zhiNameData) |
|
|
|
this.tiaoshiPao=this.echartsData.qipao(this.tiaoshiPao,this.ynum,this.zhiNameData) |
|
|
|
this.twoInit() |
|
|
|
this.twoInit() |
|
|
|
//this.oneInit(this.xdatayue,this.ydatayue)
|
|
|
|
}else{ |
|
|
|
|
|
|
|
let Parameters={ |
|
|
|
|
|
|
|
MaintenanceState:this.router.snapshot.queryParams.type, |
|
|
|
|
|
|
|
//TimeEnd:this.echartsData.TimeType==0?selectEndYear+'-'+selectEndMonth:selectEndYear,
|
|
|
|
|
|
|
|
OrganizationId:this.OrganizationIds |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
await this.echartsData.getData(Parameters,this.echartsData.zhiorBuinding=='zhi'? `/api/StatisticsAnalysis/Companies/Maintenance`:`/api/StatisticsAnalysis/Plans/Maintenance`) |
|
|
|
|
|
|
|
this.tabledata=JSON.parse(JSON.stringify(this.echartsData.allDate)) |
|
|
|
|
|
|
|
console.log(this.tabledata) |
|
|
|
|
|
|
|
this.zhiNameData=[] |
|
|
|
|
|
|
|
if(this.router.snapshot.queryParams.type=='1'){ |
|
|
|
|
|
|
|
this.tabledata[0].unMaintainCount.organizationCounts.forEach(element => { |
|
|
|
|
|
|
|
this.zhiNameData.push(this.echartsData.zhiorBuinding=='zhi'? element.organizationName:element.buildingTypeName) |
|
|
|
|
|
|
|
this.ynum.push(element.count) |
|
|
|
|
|
|
|
this.organizationId.push(this.echartsData.zhiorBuinding=='zhi'? element.organizationId:element.buildingTypeId) |
|
|
|
|
|
|
|
//this.ydatayue.push(element.count)
|
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}else if(this.router.snapshot.queryParams.type=='2'){ |
|
|
|
|
|
|
|
this.tabledata[0].maintainedCount.organizationCounts.forEach(element => { |
|
|
|
|
|
|
|
this.zhiNameData.push(this.echartsData.zhiorBuinding=='zhi'? element.organizationName:element.buildingTypeName) |
|
|
|
|
|
|
|
this.ynum.push(element.count) |
|
|
|
|
|
|
|
this.organizationId.push(this.echartsData.zhiorBuinding=='zhi'? element.organizationId:element.buildingTypeId) |
|
|
|
|
|
|
|
//this.ydatayue.push(element.count)
|
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}else if(this.router.snapshot.queryParams.type=='3'){ |
|
|
|
|
|
|
|
this.tabledata[0].maintainingCount.organizationCounts.forEach(element => { |
|
|
|
|
|
|
|
this.zhiNameData.push(this.echartsData.zhiorBuinding=='zhi'? element.organizationName:element.buildingTypeName) |
|
|
|
|
|
|
|
this.ynum.push(element.count) |
|
|
|
|
|
|
|
this.organizationId.push(this.echartsData.zhiorBuinding=='zhi'? element.organizationId:element.buildingTypeId) |
|
|
|
|
|
|
|
//this.ydatayue.push(element.count)
|
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.tiaoshiPao=this.echartsData.qipao(this.tiaoshiPao,this.ynum,this.zhiNameData) |
|
|
|
|
|
|
|
this.twoInit() |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
tiaoshiPao:any |
|
|
|
tiaoshiPao:any |
|
|
|
//气泡提示数据获取
|
|
|
|
//气泡提示数据获取
|
|
|
@ -879,7 +926,7 @@ export class yueDateComponent implements OnInit { |
|
|
|
this.oneEcharts = echarts.init(document.getElementById("center"), 'skinUpp'); |
|
|
|
this.oneEcharts = echarts.init(document.getElementById("center"), 'skinUpp'); |
|
|
|
var option = { |
|
|
|
var option = { |
|
|
|
title: { |
|
|
|
title: { |
|
|
|
text: this.echartsData.scheduledUpdatesXName+`已核查总数:(${this.tabledata[0].totalCount})`, |
|
|
|
text:this.router.snapshot.queryParams.pieid=='pieTwo'?'': this.echartsData.scheduledUpdatesXName+`已核查总数:(${this.tabledata[0].totalCount})`, |
|
|
|
top: -4, |
|
|
|
top: -4, |
|
|
|
left: '35%', |
|
|
|
left: '35%', |
|
|
|
textStyle:{ |
|
|
|
textStyle:{ |
|
|
@ -899,7 +946,12 @@ export class yueDateComponent implements OnInit { |
|
|
|
fontSize :18 |
|
|
|
fontSize :18 |
|
|
|
}, |
|
|
|
}, |
|
|
|
formatter: (params)=>{ |
|
|
|
formatter: (params)=>{ |
|
|
|
|
|
|
|
if(this.router.snapshot.queryParams.pieid=='pieTwo'){ |
|
|
|
|
|
|
|
return this.echartsData.zhiorBuinding=='zhi'? this.echartsData.weihuTooltipRight(params,this.router.snapshot.queryParams.type):'' |
|
|
|
|
|
|
|
}else{ |
|
|
|
return this.echartsData.zhiorBuinding=='zhi'? this.echartsData.weihuTooltip(params):'' |
|
|
|
return this.echartsData.zhiorBuinding=='zhi'? this.echartsData.weihuTooltip(params):'' |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//return this.echartsData.zhiorBuinding=="zhi"?this.echartsData.tableTooltip(this.echartsData.tableDataZhi,params[0].name):this.echartsData.tableTooltip(this.echartsData.buildingType,params[0].name)
|
|
|
|
//return this.echartsData.zhiorBuinding=="zhi"?this.echartsData.tableTooltip(this.echartsData.tableDataZhi,params[0].name):this.echartsData.tableTooltip(this.echartsData.buildingType,params[0].name)
|
|
|
|
}, |
|
|
|
}, |
|
|
|
position:this.echartsData.tableTooltipNoShow2 |
|
|
|
position:this.echartsData.tableTooltipNoShow2 |
|
|
@ -991,17 +1043,31 @@ export class yueDateComponent implements OnInit { |
|
|
|
if (this.oneEcharts.containPixel('grid',pointInPixel)) { |
|
|
|
if (this.oneEcharts.containPixel('grid',pointInPixel)) { |
|
|
|
let xIndex=this.oneEcharts.convertFromPixel({seriesIndex:0},[params.offsetX, params.offsetY])[0]; |
|
|
|
let xIndex=this.oneEcharts.convertFromPixel({seriesIndex:0},[params.offsetX, params.offsetY])[0]; |
|
|
|
/*事件处理代码书写位置*/ |
|
|
|
/*事件处理代码书写位置*/ |
|
|
|
if(this.echartsData.zhiorBuinding=='zhi'){ |
|
|
|
if(this.echartsData.zhiorBuinding=='zhi'&&this.router.snapshot.queryParams.pieid=='pie'){ |
|
|
|
this.OrganizationIds=option.xAxis.id[xIndex] |
|
|
|
this.OrganizationIds=option.xAxis.id[xIndex] |
|
|
|
this.getechartsdata() |
|
|
|
this.getechartsdata() |
|
|
|
|
|
|
|
if(this.tabledata[0].items.length>=1){ |
|
|
|
|
|
|
|
this.oneEcharts.dispose() |
|
|
|
|
|
|
|
this.oneEcharts.clear() |
|
|
|
|
|
|
|
//this.getechartsdata()
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
this.echartsData.scheduledUpdatesType = 0 |
|
|
|
/* this.echartsData.scheduledUpdatesType = 0 |
|
|
|
//console.log(option.xAxis)
|
|
|
|
|
|
|
|
this.echartsData.scheduledUpdatesName = option.xAxis.data[xIndex] |
|
|
|
this.echartsData.scheduledUpdatesName = option.xAxis.data[xIndex] |
|
|
|
this.echartsData.scheduledUpdatesToggle = 3 |
|
|
|
this.echartsData.scheduledUpdatesToggle = 3 |
|
|
|
console.log(option.xAxis.id[xIndex]) |
|
|
|
console.log(option.xAxis.id[xIndex]) */ |
|
|
|
|
|
|
|
}else if(this.echartsData.zhiorBuinding=='zhi'&&this.router.snapshot.queryParams.pieid=='pieTwo'){ |
|
|
|
|
|
|
|
this.OrganizationIds=option.xAxis.id[xIndex] |
|
|
|
|
|
|
|
this.getechartsdata() |
|
|
|
|
|
|
|
if((this.router.snapshot.queryParams.type=='1'&&this.tabledata[0].unMaintainCount.organizationCounts.length>=1) |
|
|
|
|
|
|
|
||(this.router.snapshot.queryParams.type=='2'&&this.tabledata[0].maintainedCount.organizationCounts.length>=1) |
|
|
|
|
|
|
|
||(this.router.snapshot.queryParams.type=='3'&&this.tabledata[0].maintainingCount.organizationCounts.length>=1)){ |
|
|
|
|
|
|
|
this.oneEcharts.dispose() |
|
|
|
|
|
|
|
this.oneEcharts.clear() |
|
|
|
|
|
|
|
//this.getechartsdata()
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|