From 1ee82c648a44ba308745a2d3a19ec39fcfce7eaa Mon Sep 17 00:00:00 2001 From: SHAOJIAHAO <55341701@qq.com> Date: Tue, 8 Sep 2020 13:44:20 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=AE=8C=E5=96=84]=E5=88=A0=E9=99=A4console.l?= =?UTF-8?q?og?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../edit-unit-info/edit-unit-info.component.html | 2 +- .../deleteUnit/delete-four/delete-four.component.ts | 2 +- .../delete-there/delete-there.component.ts | 6 +++--- .../deleteUnit/delete-two/delete-two.component.ts | 12 ++++++------ src/app/statistic-analysis/home/home.component.html | 2 +- src/app/statistic-analysis/home/home.component.ts | 6 ++++++ 6 files changed, 18 insertions(+), 12 deletions(-) diff --git a/src/app/key-unit/edit-unit-info/edit-unit-info.component.html b/src/app/key-unit/edit-unit-info/edit-unit-info.component.html index a940ac0..bd900df 100644 --- a/src/app/key-unit/edit-unit-info/edit-unit-info.component.html +++ b/src/app/key-unit/edit-unit-info/edit-unit-info.component.html @@ -53,7 +53,7 @@ - + diff --git a/src/app/statistic-analysis/deleteUnit/delete-four/delete-four.component.ts b/src/app/statistic-analysis/deleteUnit/delete-four/delete-four.component.ts index f43c0b6..63c02a8 100644 --- a/src/app/statistic-analysis/deleteUnit/delete-four/delete-four.component.ts +++ b/src/app/statistic-analysis/deleteUnit/delete-four/delete-four.component.ts @@ -61,7 +61,7 @@ export class DeleteFourComponent implements OnInit { tooltip: { trigger: 'item', formatter: (params)=>{ - console.log(666,params) + // console.log(666,params) return this.tableTooltip(params) }, backgroundColor:'rgba(255,255,255,1)',//通过设置rgba调节背景颜色与透明度 diff --git a/src/app/statistic-analysis/deleteUnit/delete-there/delete-there.component.ts b/src/app/statistic-analysis/deleteUnit/delete-there/delete-there.component.ts index f39b7a6..7f8860c 100644 --- a/src/app/statistic-analysis/deleteUnit/delete-there/delete-there.component.ts +++ b/src/app/statistic-analysis/deleteUnit/delete-there/delete-there.component.ts @@ -36,7 +36,7 @@ export class DeleteThereComponent implements OnInit { let headtext:string; let datayuex:string; let headName:string; - console.log(this.activatedRoute.queryParams.subscribe) + // console.log(this.activatedRoute.queryParams.subscribe) //headtext=this.activatedRoute.queryParams["headtext"]; this.activatedRoute.queryParams.subscribe(param=>{ headtext=param.headtext @@ -61,7 +61,7 @@ export class DeleteThereComponent implements OnInit { for (let i=date; i>=date-10;i--) { this.years.unshift(i) } - console.log(this.years) + // console.log(this.years) } selectOneYear:any = (new Date()).getFullYear() //开始年份 @@ -163,7 +163,7 @@ export class DeleteThereComponent implements OnInit { }] }; this.zhutu.getZr().on('click',params=>{ - console.log(params.name) + // console.log(params.name) const pointInPixel= [params.offsetX, params.offsetY]; if (this.zhutu.containPixel('grid',pointInPixel)) { let xIndex=this.zhutu.convertFromPixel({seriesIndex:0},[params.offsetX, params.offsetY])[0]; diff --git a/src/app/statistic-analysis/deleteUnit/delete-two/delete-two.component.ts b/src/app/statistic-analysis/deleteUnit/delete-two/delete-two.component.ts index 21920f5..047f13a 100644 --- a/src/app/statistic-analysis/deleteUnit/delete-two/delete-two.component.ts +++ b/src/app/statistic-analysis/deleteUnit/delete-two/delete-two.component.ts @@ -109,14 +109,14 @@ export class DeleteTwoComponent implements OnInit { if (e.selectTwoYear > e.selectOneYear) { let startTime = e.selectOneYear + '-' + e.selectStartMonth + '-' + 1 + ' ' + 0 + ':' + 0 +':'+ 0 let endTime = e.selectTwoYear + '-' + e.selectEndMonth + '-' + 31 + ' ' + 23 + ':' + 59 +':'+ 59 - console.log(startTime) - console.log(endTime) + // console.log(startTime) + // console.log(endTime) } else if (e.selectTwoYear === e.selectOneYear) { if(e.selectEndMonth >= e.selectStartMonth) { let startTime = e.selectOneYear + '-' + e.selectStartMonth + '-' + 1 + ' ' + 0 + ':' + 0 +':'+ 0 let endTime = e.selectTwoYear + '-' + e.selectEndMonth + '-' + 31 + ' ' + 23 + ':' + 59 +':'+ 59 - console.log(startTime) - console.log(endTime) + // console.log(startTime) + // console.log(endTime) } else { const config = new MatSnackBarConfig(); config.verticalPosition = 'top'; @@ -149,7 +149,7 @@ export class DeleteTwoComponent implements OnInit { } //按年查询 yearSubmit (e) { - console.log(this.selectType) + // console.log(this.selectType) this.headZhexian('heads','删除数量总统计',this.datanianx,this.dataniany) this.headZhexian('leftOne','高层',this.datanianx,this.dataniany) this.headZhexian('leftTwo','轨道交通',this.datanianx,this.dataniany) @@ -274,7 +274,7 @@ export class DeleteTwoComponent implements OnInit { }] }; this.headZx.getZr().on('click', (params) => { - console.log(params.name) + // console.log(params.name) if(`${headtext}`!=="删除数量总统计"){ /* this.echartsData.statefulInspectionName =params.name+headtext; this.router.navigateByUrl(`/statisticanalysis/delete_one/delete_there`); */ diff --git a/src/app/statistic-analysis/home/home.component.html b/src/app/statistic-analysis/home/home.component.html index e06e0c6..f6b2876 100644 --- a/src/app/statistic-analysis/home/home.component.html +++ b/src/app/statistic-analysis/home/home.component.html @@ -10,7 +10,7 @@
-
+
计划完成情况
diff --git a/src/app/statistic-analysis/home/home.component.ts b/src/app/statistic-analysis/home/home.component.ts index e1e0bb6..3142ed8 100644 --- a/src/app/statistic-analysis/home/home.component.ts +++ b/src/app/statistic-analysis/home/home.component.ts @@ -41,7 +41,13 @@ export class HomeComponent implements OnInit { } otherPlan(){ // this.router.navigate(['/planManagement/entryPlan']) + } + + //计划更新页面跳转 + scheduled(){ + this.router.navigate(['/statisticanalysis/scheduledUpdates']) } + ngOnDestroy(): void { this.planState.clear() this.planState.dispose()