|
|
|
@ -154,10 +154,15 @@ export class PageTwoNameComponent implements OnInit {
|
|
|
|
|
}] |
|
|
|
|
}; |
|
|
|
|
this.addEchart.setOption(option); |
|
|
|
|
this.addEchart.on('click', function (params) { |
|
|
|
|
_this.data.statefulInspectionName = '预案新增' |
|
|
|
|
_this.data.statefulInspectionToggle = false |
|
|
|
|
}); |
|
|
|
|
this.addEchart.getZr().on('click', (params) => { |
|
|
|
|
const pointInPixel= [params.offsetX, params.offsetY]; |
|
|
|
|
if (this.addEchart.containPixel('grid',pointInPixel)) { |
|
|
|
|
let xIndex=this.addEchart.convertFromPixel({seriesIndex:0},[params.offsetX, params.offsetY])[0]; |
|
|
|
|
/*事件处理代码书写位置*/ |
|
|
|
|
this.router.navigate(['/statisticanalysis/stataPageThere'],{queryParams:{'level':option.xAxis.data[xIndex],'headtext':option.title.text}}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
passPlanEchartObj |
|
|
|
|
//预案审核通过
|
|
|
|
@ -210,10 +215,15 @@ export class PageTwoNameComponent implements OnInit {
|
|
|
|
|
}] |
|
|
|
|
}; |
|
|
|
|
this.passPlanEchartObj.setOption(option); |
|
|
|
|
this.passPlanEchartObj.on('click', function (params) { |
|
|
|
|
_this.data.statefulInspectionName = '预案审核通过' |
|
|
|
|
_this.data.statefulInspectionToggle = false |
|
|
|
|
}); |
|
|
|
|
this.passPlanEchartObj.getZr().on('click', (params) => { |
|
|
|
|
const pointInPixel= [params.offsetX, params.offsetY]; |
|
|
|
|
if (this.passPlanEchartObj.containPixel('grid',pointInPixel)) { |
|
|
|
|
let xIndex=this.passPlanEchartObj.convertFromPixel({seriesIndex:0},[params.offsetX, params.offsetY])[0]; |
|
|
|
|
/*事件处理代码书写位置*/ |
|
|
|
|
this.router.navigate(['/statisticanalysis/stataPageThere'],{queryParams:{'level':option.xAxis.data[xIndex],'headtext':option.title.text}}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
passMakeEchart |
|
|
|
|
//预案编制
|
|
|
|
@ -267,10 +277,15 @@ export class PageTwoNameComponent implements OnInit {
|
|
|
|
|
}] |
|
|
|
|
}; |
|
|
|
|
this.passMakeEchart.setOption(option); |
|
|
|
|
this.passMakeEchart.on('click', function (params) { |
|
|
|
|
_this.data.statefulInspectionName = '预案编制' |
|
|
|
|
_this.data.statefulInspectionToggle = false |
|
|
|
|
}); |
|
|
|
|
this.passMakeEchart.getZr().on('click', (params) => { |
|
|
|
|
const pointInPixel= [params.offsetX, params.offsetY]; |
|
|
|
|
if (this.passMakeEchart.containPixel('grid',pointInPixel)) { |
|
|
|
|
let xIndex=this.passMakeEchart.convertFromPixel({seriesIndex:0},[params.offsetX, params.offsetY])[0]; |
|
|
|
|
/*事件处理代码书写位置*/ |
|
|
|
|
this.router.navigate(['/statisticanalysis/stataPageThere'],{queryParams:{'level':option.xAxis.data[xIndex],'headtext':option.title.text}}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
passBackEchart |
|
|
|
|
//预案审核退回
|
|
|
|
@ -324,10 +339,15 @@ export class PageTwoNameComponent implements OnInit {
|
|
|
|
|
}] |
|
|
|
|
}; |
|
|
|
|
this.passBackEchart.setOption(option); |
|
|
|
|
this.passBackEchart.on('click', function (params) { |
|
|
|
|
_this.data.statefulInspectionName = '预案审核退回' |
|
|
|
|
_this.data.statefulInspectionToggle = false |
|
|
|
|
}); |
|
|
|
|
this.passBackEchart.getZr().on('click', (params) => { |
|
|
|
|
const pointInPixel= [params.offsetX, params.offsetY]; |
|
|
|
|
if (this.passBackEchart.containPixel('grid',pointInPixel)) { |
|
|
|
|
let xIndex=this.passBackEchart.convertFromPixel({seriesIndex:0},[params.offsetX, params.offsetY])[0]; |
|
|
|
|
/*事件处理代码书写位置*/ |
|
|
|
|
this.router.navigate(['/statisticanalysis/stataPageThere'],{queryParams:{'level':option.xAxis.data[xIndex],'headtext':option.title.text}}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
planAuditEchart |
|
|
|
|
//预案审核中
|
|
|
|
@ -381,10 +401,15 @@ export class PageTwoNameComponent implements OnInit {
|
|
|
|
|
}] |
|
|
|
|
}; |
|
|
|
|
this.planAuditEchart.setOption(option); |
|
|
|
|
this.planAuditEchart.on('click', function (params) { |
|
|
|
|
_this.data.statefulInspectionName = '预案审核中' |
|
|
|
|
_this.data.statefulInspectionToggle = false |
|
|
|
|
}); |
|
|
|
|
this.planAuditEchart.getZr().on('click', (params) => { |
|
|
|
|
const pointInPixel= [params.offsetX, params.offsetY]; |
|
|
|
|
if (this.planAuditEchart.containPixel('grid',pointInPixel)) { |
|
|
|
|
let xIndex=this.planAuditEchart.convertFromPixel({seriesIndex:0},[params.offsetX, params.offsetY])[0]; |
|
|
|
|
/*事件处理代码书写位置*/ |
|
|
|
|
this.router.navigate(['/statisticanalysis/stataPageThere'],{queryParams:{'level':option.xAxis.data[xIndex],'headtext':option.title.text}}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
topEchart |
|
|
|
|
//预案状态统计
|
|
|
|
@ -402,7 +427,7 @@ export class PageTwoNameComponent implements OnInit {
|
|
|
|
|
tooltip: { |
|
|
|
|
trigger: 'item', |
|
|
|
|
formatter: (params)=>{ |
|
|
|
|
return this.data.biaogeTishi(params.name) |
|
|
|
|
return this.data.biaogeTishiZhi(params.name) |
|
|
|
|
}, |
|
|
|
|
position: this.data.tableTooltipNoShow2 |
|
|
|
|
}, |
|
|
|
|