-
-
+
diff --git a/src/app/statistic-analysis/scheduled-updates/scheduled-updates.component.ts b/src/app/statistic-analysis/scheduled-updates/scheduled-updates.component.ts
index 6a27965..15400d5 100644
--- a/src/app/statistic-analysis/scheduled-updates/scheduled-updates.component.ts
+++ b/src/app/statistic-analysis/scheduled-updates/scheduled-updates.component.ts
@@ -127,9 +127,25 @@ export class ScheduledUpdatesComponent implements OnInit {
if(params.name=="维护删除"){this.router.navigateByUrl('/statisticanalysis/delete_one/delete_two');}
else{
if(pieid=="pie"){
+ this.echartsData.scheduledUpdatesToggle = 1
this.echartsData.zhuXname=["平均值","维护无需修改","维护修改","维护删除"]
- }else{this.echartsData.zhuXname=["平均值","维护中","维护通过审核","未维护"]}
- this.router.navigateByUrl('/statisticanalysis/scheduledUpdates/PublicEcharts');
+ this.router.navigateByUrl('/statisticanalysis/scheduledUpdates/PublicEcharts');
+
+ }else{
+ this.echartsData.zhuXname=["平均值","维护中","维护通过审核","未维护"]
+ //this.router.navigateByUrl('/statisticanalysis/scheduledUpdates/PublicEcharts');
+ if(this.echartsData.level=='0'){
+ //总队跳转
+ this.echartsData.scheduledUpdatesToggle = 2
+ this.router.navigateByUrl('/statisticanalysis/scheduledUpdates/PublicEcharts');
+ this.echartsData.findShow=false
+ }else if(this.echartsData.level=='1'){
+ this.echartsData.scheduledUpdatesToggle = 3
+ this.echartsData.findShow=false
+ this.router.navigateByUrl('/statisticanalysis/scheduledUpdates/PublicEcharts');
+ }
+ }
+
}
//console.log(this.echartsData.scheduledUpdatesToggle)
});
@@ -180,7 +196,7 @@ export class publicEchartsComponent implements OnInit {
@ViewChild('verified')verifieds :verifiedComponent; //父组件中获得子组件的引用
ngOnInit(): void {
- this.echartsData.scheduledUpdatesToggle = 1
+ //this.echartsData.scheduledUpdatesToggle = 1
this.dateInit()
}
@@ -257,9 +273,10 @@ export class publicEchartsComponent implements OnInit {
//已核查
verified () {
this.isToggle = true
- this.echartsData.findShow=true
- //this.echartsData.scheduledUpdatesToggle ="one"
+ this.echartsData.level=='1'? this.echartsData.findShow=true:this.echartsData.findShow=false
this.echartsData.scheduledUpdatesToggle =1
+ //this.echartsData.scheduledUpdatesToggle ="one"
+ //this.echartsData.level=='0'? this.echartsData.scheduledUpdatesToggle =1:this.echartsData.level=='1'?this.echartsData.scheduledUpdatesToggle =3:''
}
//未核查
@@ -272,7 +289,7 @@ export class publicEchartsComponent implements OnInit {
//返回
goBack () {
- if(this.echartsData.scheduledUpdatesToggle==1||this.echartsData.scheduledUpdatesToggle==-3){
+ /* if(this.echartsData.scheduledUpdatesToggle==1||this.echartsData.scheduledUpdatesToggle==-3){
this.router.navigateByUrl('/statisticanalysis/scheduledUpdates');
}else{
this.echartsData.scheduledUpdatesToggle--
@@ -280,7 +297,8 @@ export class publicEchartsComponent implements OnInit {
this.echartsData.findShow=true
//this.router.navigateByUrl('/statisticanalysis/scheduledUpdates');
}
- }
+ } */
+ window.history.go(-1)
}
//更多 窗口
@@ -311,7 +329,7 @@ export class publicEchartsComponent implements OnInit {
})
export class verifiedComponent implements OnInit {
- constructor(private router: Router,public echartsData:EchartsDataService) { }
+ constructor(private router: Router,public echartsData:EchartsDataService,public snackBar: MatSnackBar) { }
ngOnInit(): void {
window.setTimeout(()=>{
@@ -460,6 +478,7 @@ export class verifiedComponent implements OnInit {
],
};
this.oneEcharts.getZr().on('click', (params) => {
+ if(this.echartsData.scheduledUpdatesToggle == 1){
/* const pointInPixel= [params.offsetX, params.offsetY];
if (this.oneEcharts.containPixel('grid',pointInPixel)) {
let xIndex=this.oneEcharts.convertFromPixel({seriesIndex:0},[params.offsetX, params.offsetY])[0];
@@ -472,12 +491,32 @@ export class verifiedComponent implements OnInit {
/*事件处理代码书写位置*/
this.echartsData.scheduledUpdatesType = 0
//this.echartsData.scheduledUpdatesName = "ff"
- this.echartsData.zhiorBuinding=="zhi"?this.echartsData.scheduledUpdatesToggle = 2:this.echartsData.scheduledUpdatesToggle = -2
+ 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"){
+ this.echartsData.findShow=false
+ this.echartsData.scheduledUpdatesToggle = -2
+ if(this.echartsData.level=='0'){
+ this.echartsData.scheduledUpdatesToggle = 2
+ }else if(this.echartsData.level=='1'){
+ this.echartsData.scheduledUpdatesToggle = 3
+ }
+ }else{
+ this.echartsData.findShow=true
+ const config = new MatSnackBarConfig();
+ config.verticalPosition = 'top';
+ config.duration = 3000
+ if(this.echartsData.level=='2'){
+ this.snackBar.open('已经是最后一层!','确定',config);
+ }
+
+ }
//this.echartsData.scheduledUpdatesToggle = 2
this.echartsData.scheduledUpdatesXName=option.xAxis.data[xIndex]
- this.echartsData.findShow=false
+
+ }
}
+
});
this.oneEcharts.setOption(option);
}
@@ -698,7 +737,8 @@ export class notVerifiedComponent implements OnInit {
color: "#000", //刻度线标签颜色
formatter: '{value}'
},
- data: ['浦东支队','黄浦支队','徐汇支队','长宁支队','静安支队','普陀支队','虹口支队','杨浦支队','闵行支队','宝山支队','嘉定支队','崇明支队','金山支队'],
+ data: this.echartsData.level=='0'? ['浦东支队','黄浦支队','徐汇支队','长宁支队','静安支队','普陀支队','虹口支队','杨浦支队','闵行支队','宝山支队','嘉定支队','崇明支队','金山支队']
+ :['浦东中队','黄浦中队','徐汇中队','长宁中队','静安中队','普陀中队','虹口中队','杨浦中队','闵行中队','宝山中队','嘉定中队','崇明中队','金山中队'],
},
series: [
{
@@ -789,6 +829,7 @@ export class yueDateComponent implements OnInit {
}
},
legend: {
+ right:10,
data: this.echartsData.zhuXname,
textStyle: { fontSize :16,color: '#000' }
},
@@ -1103,7 +1144,12 @@ export class yuebuildingDateComponent implements OnInit {
this.echartsData.scheduledUpdatesType = 0
//console.log(option.xAxis[0].data[xIndex])
this.echartsData.scheduledUpdatesXName+= option.xAxis[0].data[xIndex]
- this.echartsData.scheduledUpdatesToggle = 2
+
+ if(this.echartsData.level=='0'){
+ this.echartsData.scheduledUpdatesToggle = 2
+ }else if(this.echartsData.level=='1'){
+ this.echartsData.scheduledUpdatesToggle = 3
+ }
//this.echartsData.scheduledUpdatesXName=option.xAxis.data[xIndex]
}
@@ -1145,7 +1191,7 @@ export class detailedInformationComponent implements OnInit {
if (this.echartsData.scheduledUpdatesType ===0) { //已核查
var option = {
title: {
- text: `${this.echartsData.scheduledUpdatesName}${this.echartsData.scheduledUpdatesXName}总数(0)`,
+ text: `总数(0)`,//${this.echartsData.scheduledUpdatesName}${this.echartsData.scheduledUpdatesXName}
top: -2,
right: 655,
textStyle:{
@@ -1163,7 +1209,8 @@ export class detailedInformationComponent implements OnInit {
legend: {
//data: ['平均值','维护无需修改', '维护修改', '维护通过审核'],
data:this.echartsData.zhuXname,
- textStyle: { color: '#000',fontSize: 16 }
+ textStyle: { color: '#000',fontSize: 16 },
+ right:20
},
xAxis: [{
axisLabel: {
diff --git a/src/app/statistic-analysis/scheduled-updates/verified.html b/src/app/statistic-analysis/scheduled-updates/verified.html
index e03ee90..e9d447e 100644
--- a/src/app/statistic-analysis/scheduled-updates/verified.html
+++ b/src/app/statistic-analysis/scheduled-updates/verified.html
@@ -4,7 +4,7 @@
* @Author: sueRimn
* @Date: 2020-09-05 08:59:24
* @LastEditors: sueRimn
- * @LastEditTime: 2020-11-14 15:06:08
+ * @LastEditTime: 2021-06-24 10:42:22
-->
+
@@ -76,8 +76,8 @@
-
-
+
+