diff --git a/src/app/gis-management/fire-facilities/fire-facilities.component.html b/src/app/gis-management/fire-facilities/fire-facilities.component.html index 9623bec..1bc4861 100644 --- a/src/app/gis-management/fire-facilities/fire-facilities.component.html +++ b/src/app/gis-management/fire-facilities/fire-facilities.component.html @@ -4,7 +4,7 @@ * @Author: sueRimn * @Date: 2020-11-23 09:28:54 * @LastEditors: sueRimn - * @LastEditTime: 2020-11-27 16:17:53 + * @LastEditTime: 2021-03-15 16:35:56 -->
@@ -45,9 +45,9 @@

楼层/区域名称: {{tableMsg.name? tableMsg.name: '暂无名称'}}

- + - +
{{header}}{{body[header]? body[header] : '暂无数据'}}{{body[header]? body[header] : '暂无数据'}}
diff --git a/src/app/plan-audit/fire-facilities/fire-facilities.component.html b/src/app/plan-audit/fire-facilities/fire-facilities.component.html index 9623bec..a2aae13 100644 --- a/src/app/plan-audit/fire-facilities/fire-facilities.component.html +++ b/src/app/plan-audit/fire-facilities/fire-facilities.component.html @@ -4,7 +4,7 @@ * @Author: sueRimn * @Date: 2020-11-23 09:28:54 * @LastEditors: sueRimn - * @LastEditTime: 2020-11-27 16:17:53 + * @LastEditTime: 2021-03-15 16:32:59 -->
@@ -45,9 +45,9 @@

楼层/区域名称: {{tableMsg.name? tableMsg.name: '暂无名称'}}

- + - +
{{header}}{{body[header]? body[header] : '暂无数据'}}{{body[header]? body[header] : '暂无数据'}}
diff --git a/src/app/plan-audit/plan-audit-routing.module.ts b/src/app/plan-audit/plan-audit-routing.module.ts index b217fd5..312c7fe 100644 --- a/src/app/plan-audit/plan-audit-routing.module.ts +++ b/src/app/plan-audit/plan-audit-routing.module.ts @@ -4,7 +4,7 @@ * @Author: sueRimn * @Date: 2020-12-24 10:59:48 * @LastEditors: sueRimn - * @LastEditTime: 2021-02-02 15:48:12 + * @LastEditTime: 2021-03-15 15:53:17 */ import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; @@ -19,7 +19,7 @@ const routes: Routes = [ { path: 'planaudit', component: PlanAuditComponent }, //{ path: 'planpass', component: PlanPassComponent }, { path: 'planrecord', component: PlanRecordComponent },//预案审核记录 - { path: 'waitexamineer', component: WaitExamineerComponent },//预案待审核 + { path: 'waitexamineergis', component: WaitExamineerComponent },//预案待审核 ]; @NgModule({ diff --git a/src/app/plan-audit/plan-list/plan-list.component.ts b/src/app/plan-audit/plan-list/plan-list.component.ts index 8dc7ae8..6bfcd72 100644 --- a/src/app/plan-audit/plan-list/plan-list.component.ts +++ b/src/app/plan-audit/plan-list/plan-list.component.ts @@ -88,7 +88,7 @@ export class OpenPlanToolDialog { buildingIndex: this.data.key, //总平面图/建筑 index storeyId: this.data.select.id } - this.http.get("/api/Buildings",{params:{companyId : sessionStorage.getItem('unitId')} }).subscribe((data:any)=>{ + this.http.get("/api/Buildings",{params:{companyId : sessionStorage.getItem('companyId')} }).subscribe((data:any)=>{ this.plan.allBuildings = data this.plan.seekPanelPoint(parameter) }) diff --git a/src/app/plan-audit/wait-examineer/wait-examineer.component.ts b/src/app/plan-audit/wait-examineer/wait-examineer.component.ts index 70a6a62..c93f4cd 100644 --- a/src/app/plan-audit/wait-examineer/wait-examineer.component.ts +++ b/src/app/plan-audit/wait-examineer/wait-examineer.component.ts @@ -4,7 +4,7 @@ * @Author: sueRimn * @Date: 2020-12-25 16:13:50 * @LastEditors: sueRimn - * @LastEditTime: 2021-03-10 08:36:31 + * @LastEditTime: 2021-03-15 15:51:30 */ import { Component, Inject, OnInit } from '@angular/core'; import { FormControl } from '@angular/forms'; @@ -28,6 +28,7 @@ export class WaitExamineerComponent implements OnInit { } ngOnInit(): void { + sessionStorage.setItem('gisplan','look') let level = sessionStorage.getItem("level"); if(level == "0"){//如果是总队 this.preparelevels = [ diff --git a/src/app/statistic-analysis/addUnit/add-unit-two-type-details/add-unit-two-type-details.component.ts b/src/app/statistic-analysis/addUnit/add-unit-two-type-details/add-unit-two-type-details.component.ts index ba4f526..59da13e 100644 --- a/src/app/statistic-analysis/addUnit/add-unit-two-type-details/add-unit-two-type-details.component.ts +++ b/src/app/statistic-analysis/addUnit/add-unit-two-type-details/add-unit-two-type-details.component.ts @@ -151,11 +151,11 @@ export class AddUnitTwoTypeDetailsComponent implements OnInit { const pointInPixel= [params.offsetX, params.offsetY]; if (this.detailPlanEchart.containPixel('grid',pointInPixel)){ let xIndex=this.detailPlanEchart.convertFromPixel({seriesIndex:0},[params.offsetX, params.offsetY])[0]; - if(this.echartsData.level=='0'||this.echartsData.level=='1'){ + if((this.echartsData.level=='0'||this.echartsData.level=='1')&&this.tabledata[0].organizations[xIndex].subOrganizations.length>=1){ //总队和支队跳转 - this.router.navigate(['/statisticanalysis/addUnit_one/addUnit_two_time/three_barDetails'],{queryParams:{'time':'','buildingTpye':option.xAxis.data[xIndex]+this.organizationName,'zhuid':option.xAxis.id[xIndex],'id':this.canshuId}}); + this.router.navigate(['/statisticanalysis/addUnit_one/addUnit_two_time/three_barDetails'],{queryParams:{'time':'','buildingTpye':option.xAxis.data[xIndex]+this.organizationName,'zhuid':option.xAxis.id[xIndex],'id':this.echartsData.zuzhiorBuilding=='zhi'?this.canshuId:this.lastId}}); }else{ - this.router.navigate(['/statisticanalysis/CompangInfo'],{queryParams:{'name':params.name,'type':1}}); + this.router.navigate(['/statisticanalysis/CompangInfo'],{queryParams:{'name':option.xAxis.data[xIndex],'type':1,'jsid':option.xAxis.id[xIndex]}}); } } diff --git a/src/app/statistic-analysis/all-plan/all-plan.component.html b/src/app/statistic-analysis/all-plan/all-plan.component.html new file mode 100644 index 0000000..c60fb08 --- /dev/null +++ b/src/app/statistic-analysis/all-plan/all-plan.component.html @@ -0,0 +1,54 @@ + +
+
+
+ +
+
+
+ {{titlename}} +
+
+ + + + + + + + + + + + + + + + + + + + + + + +
名称{{element.name}}修改时间{{element.modifiedTime|date:'yyyy-MM-dd'}}消防救援站{{element.organizationName}}类型{{element.buildingTypes.length != 0 ? element.buildingTypes[0].name : ''}}操作 + 详情 +
+ + + + +
+
+ diff --git a/src/app/statistic-analysis/all-plan/all-plan.component.scss b/src/app/statistic-analysis/all-plan/all-plan.component.scss new file mode 100644 index 0000000..dceb5cf --- /dev/null +++ b/src/app/statistic-analysis/all-plan/all-plan.component.scss @@ -0,0 +1,73 @@ +.body{ + display: flex; + flex-direction: column; + .topbox{ + width: 100%; + height: 80px; + min-height: 80px; + border-bottom: 1px gray solid; + .btnbox{ + display: flex; + flex-direction:row-reverse; + float: right; + justify-content: center; + align-items: center; + height: 100%; + button{ + width: 88px; + height: 36px; + } + margin-right:4%; + + } + } + .title{ + width: 100%; + text-align: center; + margin-top: 2%; + span{ + text-align: center; + font-size: 28px; + } + } + .buttonbox{ + padding-left: 50px; + button{ + margin:0 10px + } + } + .tablebox{ + width: 100%; + text-align: center; + table{ + width: 50%; + text-align: center; + margin-left: 25%; + margin-top:20px; + th,td{ + text-align: center; + font-size: 15px; + color: #000000; + } + } + mat-paginator{ + width: 100%; + margin-left: 0%; + } + .mat-column-unitname{ + width: 15%; + } + .mat-column-integrity{ + width: 13%; + } + .mat-column-operation{ + width: 5%; + } + .mat-column-jurisdictionsquadron{ + width: 10%; + } + span:hover{ + text-decoration:underline + } + } +} \ No newline at end of file diff --git a/src/app/statistic-analysis/all-plan/all-plan.component.spec.ts b/src/app/statistic-analysis/all-plan/all-plan.component.spec.ts new file mode 100644 index 0000000..d383a7d --- /dev/null +++ b/src/app/statistic-analysis/all-plan/all-plan.component.spec.ts @@ -0,0 +1,25 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; + +import { AllPlanComponent } from './all-plan.component'; + +describe('AllPlanComponent', () => { + let component: AllPlanComponent; + let fixture: ComponentFixture; + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [ AllPlanComponent ] + }) + .compileComponents(); + })); + + beforeEach(() => { + fixture = TestBed.createComponent(AllPlanComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/statistic-analysis/all-plan/all-plan.component.ts b/src/app/statistic-analysis/all-plan/all-plan.component.ts new file mode 100644 index 0000000..89f0fe4 --- /dev/null +++ b/src/app/statistic-analysis/all-plan/all-plan.component.ts @@ -0,0 +1,63 @@ +/* + * @Descripttion: + * @version: + * @Author: sueRimn + * @Date: 2021-03-15 11:32:30 + * @LastEditors: sueRimn + * @LastEditTime: 2021-03-15 13:51:48 + */ +import { Component, OnInit, ViewChild, Inject } from '@angular/core'; +import { HttpClient } from '@angular/common/http' +import { MatTreeFlatDataSource, MatTreeFlattener } from '@angular/material/tree'; +import { MatPaginator } from '@angular/material/paginator'; +import { FlatTreeControl } from '@angular/cdk/tree'; +import { FormControl } from '@angular/forms'; +import { Router,ActivatedRoute } from '@angular/router' +import { PageEvent } from '@angular/material/paginator'; +import { MatDialogRef, MatDialog, MAT_DIALOG_DATA } from '@angular/material/dialog'; +import { MatSnackBar, MatSnackBarConfig } from '@angular/material/snack-bar'; +import { TreeService } from '../../http-interceptors/tree.service' +import { MatTableDataSource } from '@angular/material/table'; +declare var CryptoJS + +@Component({ + selector: 'app-all-plan', + templateUrl: './all-plan.component.html', + styleUrls: ['./all-plan.component.scss'] +}) +export class AllPlanComponent implements OnInit { + + constructor(private http: HttpClient,public snackBar: MatSnackBar,public route: ActivatedRoute,private router: Router) { } + + ngOnInit(): void { + this.route.queryParams.subscribe(params => { + this.titlename = params['name']; + this.type = params['type']; + this.jsId=params['jsid'] + }); + } + displayedColumns: string[] = ['unitname','modifiedTime','organizationName','buildingTypes','operation']; + tabledataSource + titlename //上个页面传过来的名称 + type //上个页面传过来:1重点单位 2预案 + jsId //组织机构id + //分页 + @ViewChild(MatPaginator, {static: true}) + pageEvent: PageEvent; + paginator: MatPaginator; + length:any; //共多少条数据 + pageSize:any; //每页条数 + pageSizeOptions: number[] = [10] //设置每页条数 + PageNumber:any; //第几页 + //分页事件 + changePage(e){ + this.PageNumber = e.pageIndex+1 + //this.getAlltabledate() + } + //返回 + goBack () { + history.go(-1) + //this.echartsData.statefulInspectionToggle = true + } + +} diff --git a/src/app/statistic-analysis/buildingType/building-type-one/building-type-one.component.ts b/src/app/statistic-analysis/buildingType/building-type-one/building-type-one.component.ts index 1145a2f..4c88ae9 100644 --- a/src/app/statistic-analysis/buildingType/building-type-one/building-type-one.component.ts +++ b/src/app/statistic-analysis/buildingType/building-type-one/building-type-one.component.ts @@ -104,7 +104,7 @@ export class BuildingTypeOneComponent implements OnInit { this.router.navigate(['/statisticanalysis/buildingType_one/buildingType_two_reverse'],{queryParams:{'level':params.name,'id':params.data.id}}); }else if(this.echartsData.level=='3'){ //中队跳转 - this.router.navigate(['/statisticanalysis/CompangInfo'],{queryParams:{'name':params.name,'type':1}}); + this.router.navigate(['/statisticanalysis/CompangInfo'],{queryParams:{'name':params.name,'type':1,'buildid':params.id}}); } }); diff --git a/src/app/statistic-analysis/buildingType/building-type-three-details/building-type-three-details.component.ts b/src/app/statistic-analysis/buildingType/building-type-three-details/building-type-three-details.component.ts index 24a98d4..6edb22d 100644 --- a/src/app/statistic-analysis/buildingType/building-type-three-details/building-type-three-details.component.ts +++ b/src/app/statistic-analysis/buildingType/building-type-three-details/building-type-three-details.component.ts @@ -173,7 +173,6 @@ export class BuildingTypeThreeDetailsComponent implements OnInit { this.tiao=true } else{ - console.log(option.series[0].id) this.router.navigate(['/statisticanalysis/CompangInfo'],{queryParams:{'name':option.xAxis.data[xIndex],'type':1,'jsid':option.xAxis.id[xIndex]}}); } diff --git a/src/app/statistic-analysis/buildingType/building-type-two-reverse/building-type-two-reverse.component.ts b/src/app/statistic-analysis/buildingType/building-type-two-reverse/building-type-two-reverse.component.ts index 4cbd064..092d9a5 100644 --- a/src/app/statistic-analysis/buildingType/building-type-two-reverse/building-type-two-reverse.component.ts +++ b/src/app/statistic-analysis/buildingType/building-type-two-reverse/building-type-two-reverse.component.ts @@ -321,12 +321,12 @@ export class BuildingTypeTwoReverseComponent implements OnInit { if (item.echart.containPixel('grid',pointInPixel)) { let xIndex=item.echart.convertFromPixel({seriesIndex:0},[params.offsetX, params.offsetY])[0]; /*事件处理代码书写位置*/ - if(this.data.level=='0'||this.data.level=='1'){ + if((this.data.level=='0'||this.data.level=='1')&&this.tabledata[0].organizations[xIndex].subOrganizations.length>=1){ //总队,支队跳转 this.router.navigate(['/statisticanalysis/buildingType_one/buildingType_three_details'],{queryParams:{'organizationName':option.xAxis.data[xIndex],'buildingTypeName':this.headname,'buildId':this.buildId,'organizationId':option.xAxis.id[xIndex]}}) } else{ - this.router.navigate(['/statisticanalysis/CompangInfo'],{queryParams:{'name':params.name,'type':1}}); + this.router.navigate(['/statisticanalysis/CompangInfo'],{queryParams:{'name':option.xAxis.data[xIndex],'type':1,'jsid':option.xAxis.id[xIndex],'buildid':this.buildId}}); } //this.router.navigate(['/statisticanalysis/delete_one/delete_four'],{queryParams:{'level':this.option.xAxis.data[xIndex]+headName}}); } diff --git a/src/app/statistic-analysis/compang-info/compang-info.component.ts b/src/app/statistic-analysis/compang-info/compang-info.component.ts index fe03854..b68ff07 100644 --- a/src/app/statistic-analysis/compang-info/compang-info.component.ts +++ b/src/app/statistic-analysis/compang-info/compang-info.component.ts @@ -4,7 +4,7 @@ * @Author: sueRimn * @Date: 2021-03-05 15:57:08 * @LastEditors: sueRimn - * @LastEditTime: 2021-03-12 10:05:29 + * @LastEditTime: 2021-03-15 14:40:56 */ import { Component, OnInit, ViewChild, Inject } from '@angular/core'; import { HttpClient } from '@angular/common/http' @@ -34,6 +34,7 @@ export class CompangInfoComponent implements OnInit{ this.titlename = params['name']; this.type = params['type']; this.jsId=params['jsid'] + this.BuildingTypeId=params['buildid'] }); this.getAlltabledate() } @@ -42,6 +43,7 @@ export class CompangInfoComponent implements OnInit{ titlename //上个页面传过来的名称 type //上个页面传过来:1重点单位 2预案 jsId //组织机构id + BuildingTypeId//建筑类型id //分页 @ViewChild(MatPaginator, {static: true}) pageEvent: PageEvent; @@ -67,6 +69,7 @@ export class CompangInfoComponent implements OnInit{ //重点单位 let paramsdata:any = { OrganizationId: this.jsId || '', + BuildingTypeId:this.BuildingTypeId|| '', PageNumber: this.PageNumber || '1', PageSize: this.pageSizeOptions[0], IntegrityScoreMin:0, diff --git a/src/app/statistic-analysis/echarts-data.service.ts b/src/app/statistic-analysis/echarts-data.service.ts index 2119436..87b7d79 100644 --- a/src/app/statistic-analysis/echarts-data.service.ts +++ b/src/app/statistic-analysis/echarts-data.service.ts @@ -486,24 +486,66 @@ export class EchartsDataService { apidata=[] biaogeTishiyuan(datas){ //localStorage.setItem('tishi',this.tishiData) + console.log(datas) let paramdata={ planStatus:datas.type } - if(localStorage.getItem('tishi')==undefined){ - this.http.get(`/api/StatisticsAnalysis/Plans/Status`).subscribe((data:any)=>{ - this.tishiData=data.organizations - localStorage.setItem('tishi',JSON.stringify(this.tishiData)) - }) + if(datas.name=='预案新增'){ + this.localData='' + if(localStorage.getItem('addtishi')==undefined){ + this.http.get(`/api/StatisticsAnalysis/Plans/Status`,{params:paramdata}).subscribe((data:any)=>{ + this.tishiData=data.organizations + localStorage.setItem('addtishi',JSON.stringify(this.tishiData)) + }) + } + this.localData=localStorage.getItem('addtishi') + }else if(datas.name=='预案审核中'){ + this.localData='' + if(localStorage.getItem('shenheingtishi')==undefined){ + this.http.get(`/api/StatisticsAnalysis/Plans/Status`,{params:paramdata}).subscribe((data:any)=>{ + this.tishiData=data.organizations + localStorage.setItem('shenheingtishi',JSON.stringify(this.tishiData)) + }) + } + this.localData=localStorage.getItem('shenheingtishi') + }else if(datas.name=='预案审核退回'){ + this.localData='' + if(localStorage.getItem('shenhetuitishi')==undefined){ + this.http.get(`/api/StatisticsAnalysis/Plans/Status`,{params:paramdata}).subscribe((data:any)=>{ + this.tishiData=data.organizations + localStorage.setItem('shenhetuitishi',JSON.stringify(this.tishiData)) + }) + } + this.localData=localStorage.getItem('shenhetuitishi') + }else if(datas.name='预案审核通过'){ + this.localData='' + if(localStorage.getItem('yuansuccesstishi')==undefined){ + this.http.get(`/api/StatisticsAnalysis/Plans/Status`,{params:paramdata}).subscribe((data:any)=>{ + this.tishiData=data.organizations + localStorage.setItem('yuansuccesstishi',JSON.stringify(this.tishiData)) + }) + } + this.localData=localStorage.getItem('yuansuccesstishi') + }else{ + this.localData='' + if(localStorage.getItem('yuanbiantishi')==undefined){ + this.http.get(`/api/StatisticsAnalysis/Plans/Status`,{params:paramdata}).subscribe((data:any)=>{ + this.tishiData=data.organizations + localStorage.setItem('yuanbiantishi',JSON.stringify(this.tishiData)) + }) + } + this.localData=localStorage.getItem('yuanbiantishi') } - this.localData=localStorage.getItem('tishi') - - /* window.setTimeout(()=>{ + + console.log(JSON.parse(this.localData) ) + this.localData=JSON.parse(this.localData) + window.setTimeout(()=>{ var countall=0//总计 var countbi=0//站比 var allCountbi=0//总站比 - for(var i=0;i
' this.res+='
'; @@ -513,19 +555,19 @@ export class EchartsDataService { this.res+='' this.res+='' this.res+=''; - for(var i=0;i' - this.res+='' + this.res+='' + this.res+='' this.res+='' } this.res+='' this.res+='' this.res+='
总占比
'+this.tishiData[i].count+''+this.localData[i].organizationName+''+this.localData[i].count+''+countbi+'%
总计'+countall+''+allCountbi.toFixed(2)+'%
' return this.res - },1000) */ + },1000) } diff --git a/src/app/statistic-analysis/state/page-one/page-one.component.ts b/src/app/statistic-analysis/state/page-one/page-one.component.ts index e6285d0..7897d67 100644 --- a/src/app/statistic-analysis/state/page-one/page-one.component.ts +++ b/src/app/statistic-analysis/state/page-one/page-one.component.ts @@ -4,7 +4,7 @@ * @Author: sueRimn * @Date: 2020-09-01 15:24:39 * @LastEditors: sueRimn - * @LastEditTime: 2021-03-12 16:25:28 + * @LastEditTime: 2021-03-15 11:19:36 */ import { Component, OnInit } from '@angular/core'; import { Router } from '@angular/router'; diff --git a/src/app/statistic-analysis/state/page-there/page-there.component.ts b/src/app/statistic-analysis/state/page-there/page-there.component.ts index 3ee366c..a17b0f7 100644 --- a/src/app/statistic-analysis/state/page-there/page-there.component.ts +++ b/src/app/statistic-analysis/state/page-there/page-there.component.ts @@ -24,6 +24,7 @@ export class PageThereComponent implements OnInit { type tabledata organizationId=[] + lastid ngOnDestroy():void{ this.zhutu.clear() @@ -35,6 +36,7 @@ export class PageThereComponent implements OnInit { let datayuex:string; let headName:string; this.activatedRoute.queryParams.subscribe(param=>{ + this.lastid=param.id this.type=param.type this.headtext=param.headtext datayuex=param.level @@ -44,17 +46,17 @@ export class PageThereComponent implements OnInit { }); let paramdata={ planStatus:this.type, - TrendType:this.echartsData.selectType + OrganizationId:this.lastid } - this.echartsData.getData(paramdata,`/api/StatisticsAnalysis`) + this.echartsData.getData(paramdata,`/api/StatisticsAnalysis/Plans/Status`) window.setTimeout(()=>{ this.tabledata=JSON.parse(JSON.stringify(this.echartsData.allDate)) console.log(this.tabledata) - for(var i=0;i{ - return this.data.biaogeTishi(params.name) + /* this.data.biaogeTishiyuan(params) + return this.data.res */ }, position: this.data.tableTooltipNoShow2 }, @@ -166,9 +167,9 @@ export class PageTwoNameComponent implements OnInit { let xIndex=this.addEchart.convertFromPixel({seriesIndex:0},[params.offsetX, params.offsetY])[0]; /*事件处理代码书写位置*/ if(this.data.level=='0'||this.data.level=='1'){ - this.router.navigate(['/statisticanalysis/PageZhongDuiDetails'],{queryParams:{'level':option.xAxis.data[xIndex],'headtext':_this.headname,'id':option.xAxis.id[xIndex],'type':this.type}}); + this.router.navigate(['/statisticanalysis/stataPageThere'],{queryParams:{'level':option.xAxis.data[xIndex],'headtext':_this.headname,'id':option.xAxis.id[xIndex],'type':this.type}}); }else{ - this.router.navigate(['/statisticanalysis/CompangInfo'],{queryParams:{'name':params.name,'type':1}}); + this.router.navigate(['/statisticanalysis/CompangInfo'],{queryParams:{'name':params.name,'type':1,'jsid':option.xAxis.id[xIndex]}}); } } diff --git a/src/app/statistic-analysis/state/page-two-time/page-two-time.component.ts b/src/app/statistic-analysis/state/page-two-time/page-two-time.component.ts index acd17d0..ee14fcf 100644 --- a/src/app/statistic-analysis/state/page-two-time/page-two-time.component.ts +++ b/src/app/statistic-analysis/state/page-two-time/page-two-time.component.ts @@ -347,7 +347,7 @@ export class echartsComponent implements OnInit { this.router.navigate(['/statisticanalysis/stataPageThere'],{queryParams:{'level':option.xAxis.data[xIndex],'headtext':this.headtext,'type':this.type}}); } else if(this.echartsData.level=='3'){ //中队跳转 - this.router.navigate(['/statisticanalysis/CompangInfo'],{queryParams:{'name':params.name,'type':1}}); + this.router.navigate(['/statisticanalysis/AllPlan'],{queryParams:{'name':params.name,'type':1}}); } } diff --git a/src/app/statistic-analysis/state/page-zhong-dui-details/page-zhong-dui-details.component.ts b/src/app/statistic-analysis/state/page-zhong-dui-details/page-zhong-dui-details.component.ts index da1545a..b36f5ba 100644 --- a/src/app/statistic-analysis/state/page-zhong-dui-details/page-zhong-dui-details.component.ts +++ b/src/app/statistic-analysis/state/page-zhong-dui-details/page-zhong-dui-details.component.ts @@ -4,7 +4,7 @@ * @Author: sueRimn * @Date: 2020-09-05 13:50:45 * @LastEditors: sueRimn - * @LastEditTime: 2021-03-12 16:08:24 + * @LastEditTime: 2021-03-15 14:17:36 */ import { Component, OnInit } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; @@ -31,9 +31,9 @@ export class PageZhongDuiDetailsComponent implements OnInit { ngOnInit(): void { let level:string; this.route.queryParams.subscribe(param=>{ - this.headtext=param.headtext + //this.headtext=param.headtext level=param.level - this.headName=level+''+this.headtext; + this.headName=level; this.type=param.type this.lastid=param.id }); diff --git a/src/app/statistic-analysis/statistic-analysis-routing.module.ts b/src/app/statistic-analysis/statistic-analysis-routing.module.ts index ed3ef96..4a7a690 100644 --- a/src/app/statistic-analysis/statistic-analysis-routing.module.ts +++ b/src/app/statistic-analysis/statistic-analysis-routing.module.ts @@ -4,7 +4,7 @@ * @Author: sueRimn * @Date: 2020-09-02 16:57:00 * @LastEditors: sueRimn - * @LastEditTime: 2021-03-06 09:50:16 + * @LastEditTime: 2021-03-15 14:04:09 */ import { Component, NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; @@ -34,6 +34,7 @@ import { AddUnitThreeBarDetailsComponent } from './addUnit/add-unit-three-bar-de import { HomeComponent } from './home/home.component'; import { yueDateComponent }from './scheduled-updates/scheduled-updates.component' import { CompangInfoComponent }from './compang-info/compang-info.component' +import { AllPlanComponent } from './all-plan/all-plan.component' import { from } from 'rxjs'; @@ -67,7 +68,8 @@ const routes: Routes = [ { path: 'scheduledUpdates/yueDate', component: yueDateComponent}, { path: 'scheduledUpdates/PublicEcharts', component: publicEchartsComponent}, { path: 'home', component: HomeComponent}, - { path: 'CompangInfo',component:CompangInfoComponent} + { path: 'CompangInfo',component:CompangInfoComponent}, + { path:'AllPlan',component:AllPlanComponent} ]; @NgModule({ diff --git a/src/app/statistic-analysis/statistic-analysis.module.ts b/src/app/statistic-analysis/statistic-analysis.module.ts index b8229e8..02981c7 100644 --- a/src/app/statistic-analysis/statistic-analysis.module.ts +++ b/src/app/statistic-analysis/statistic-analysis.module.ts @@ -69,11 +69,12 @@ import { PageThereComponent } from './state/page-there/page-there.component'; import { PageThereYearComponent } from './state/page-there-year/page-there-year.component'; import { DeleteTwoNewaddComponent } from './deleteUnit/delete-two-newadd/delete-two-newadd.component'; import { CompangInfoComponent } from './compang-info/compang-info.component'; +import { AllPlanComponent } from './all-plan/all-plan.component'; @NgModule({ - declarations: [PageOneComponent, PageTwoTimeComponent, PageTwoNameComponent, PageZhongDuiDetailsComponent,echartsComponent, DeleteOneComponent, DeleteTwoComponent, DeleteThereComponent, DeleteFourComponent, BuildingTypeOneComponent, ScheduledUpdatesComponent,publicEchartsComponent,verifiedComponent,notVerifiedComponent,detailedInformationComponent,moreTableComponent,yueDateComponent,yuebuildingDateComponent,indexConditionComponent, BuildingTypeTwoForwardComponent, BuildingTypeTwoReverseComponent, BuildingTypeThreeDetailsComponent, AddUnitOneComponent, AddUnitTwoTypeStatisticsComponent, AddUnitTwoTypeDetailsComponent, AddUnitTwoTimeComponent,AddUnitThreeLineDetailsComponent,AddUnitThreeBarDetailsComponent, HomeComponent, DeleteThereLineDetailsComponent, PageThereComponent, PageThereYearComponent, DeleteTwoNewaddComponent, CompangInfoComponent], + declarations: [PageOneComponent, PageTwoTimeComponent, PageTwoNameComponent, PageZhongDuiDetailsComponent,echartsComponent, DeleteOneComponent, DeleteTwoComponent, DeleteThereComponent, DeleteFourComponent, BuildingTypeOneComponent, ScheduledUpdatesComponent,publicEchartsComponent,verifiedComponent,notVerifiedComponent,detailedInformationComponent,moreTableComponent,yueDateComponent,yuebuildingDateComponent,indexConditionComponent, BuildingTypeTwoForwardComponent, BuildingTypeTwoReverseComponent, BuildingTypeThreeDetailsComponent, AddUnitOneComponent, AddUnitTwoTypeStatisticsComponent, AddUnitTwoTypeDetailsComponent, AddUnitTwoTimeComponent,AddUnitThreeLineDetailsComponent,AddUnitThreeBarDetailsComponent, HomeComponent, DeleteThereLineDetailsComponent, PageThereComponent, PageThereYearComponent, DeleteTwoNewaddComponent, CompangInfoComponent, AllPlanComponent], imports: [ CommonModule, StatisticAnalysisRoutingModule,