diff --git a/src/app/key-unit/key-unit-management/key-unit-management.component.html b/src/app/key-unit/key-unit-management/key-unit-management.component.html index 3e66280..7ea9790 100644 --- a/src/app/key-unit/key-unit-management/key-unit-management.component.html +++ b/src/app/key-unit/key-unit-management/key-unit-management.component.html @@ -95,7 +95,7 @@
- +
@@ -104,7 +104,7 @@ - + diff --git a/src/app/key-unit/key-unit-management/key-unit-management.component.ts b/src/app/key-unit/key-unit-management/key-unit-management.component.ts index e0659d1..c56d218 100644 --- a/src/app/key-unit/key-unit-management/key-unit-management.component.ts +++ b/src/app/key-unit/key-unit-management/key-unit-management.component.ts @@ -430,16 +430,30 @@ export class KeyUnitManagementComponent implements OnInit { //勾选框事件 verifyState //判断是否可以修改 checkChange(e,element){ + console.log(e) console.log(element) if(element.contentVerify!=null){ this.verifyState=element.contentVerify.verifyState + }else{ this.verifyState=null } + if(e.checked){ + //this.deleteArr=element + this.deleteAll.push(element) + }else{ + for(var i=0;i{ - const config = new MatSnackBarConfig(); - config.verticalPosition = 'top'; - config.duration = 3000 - this.snackBar.open('删除成功','确定',config); - this.getAllKeyUnit(); - }) + let body:any = { + title:this.deleteAll[0].name, + Operation:2, + itemId:this.deleteAll[0].id, + verifyState:3, + contentType:11 + } + this.http.post(`/api/ContentVerifies`,body).subscribe(data=>{ + this.snackBar.open('操作成功','确定',config); + this.getAllKeyUnit() + },err=>{ + this.snackBar.open(err,'确定',config); + }) } + }else if(this.deleteAll.length > 1){ + let isTrue = confirm('您确定要提交删除审核吗') + if(isTrue){ + for(var i=0;i{ + this.snackBar.open('操作成功','确定',config); + this.getAllKeyUnit() + },err=>{ + this.snackBar.open(err,'确定',config); + }) + } } } @@ -844,7 +889,7 @@ export class companyAuditResult{ createTime='' organizationName=this.data.element.organizationName verifyTime='' - remark=this.data.element.contentVerify.remark + remark='' verifyOrganizationName verifyState=100 ngOnInit(): void { @@ -855,6 +900,7 @@ export class companyAuditResult{ //this.remark=this.data.element.remark this.verifyState=this.data.element.contentVerify.verifyState this.verifyOrganizationName=this.data.element.contentVerify.verifyOrganizationName + this.remark=this.data.element.contentVerify.remark } } onNoClick(): void { diff --git a/src/app/statistic-analysis/addUnit/add-unit-one/add-unit-one.component.ts b/src/app/statistic-analysis/addUnit/add-unit-one/add-unit-one.component.ts index 371fdd1..0793251 100644 --- a/src/app/statistic-analysis/addUnit/add-unit-one/add-unit-one.component.ts +++ b/src/app/statistic-analysis/addUnit/add-unit-one/add-unit-one.component.ts @@ -120,7 +120,8 @@ export class AddUnitOneComponent implements OnInit { ] }; this.indexBzt.on('click', (params) => { - if(this.echartsData.level=='0'||this.echartsData.level=='1'||this.echartsData.level=='2'){ + tid=="pieone"?this.echartsData.zuzhiorBuilding="zhi":this.echartsData.zuzhiorBuilding="building" + if((this.echartsData.level=='0'||this.echartsData.level=='1'||this.echartsData.level=='2')&&this.tishiData.length>0){ //总队,支队,大队跳转 this.router.navigate(['/statisticanalysis/addUnit_one/addUnit_two_type'],{queryParams:{'level':params.name,'id':params.data.id}}); }else{ @@ -128,7 +129,7 @@ export class AddUnitOneComponent implements OnInit { this.router.navigate(['/statisticanalysis/CompangInfo'],{queryParams:{'name':params.name,'type':1}}); } - tid=="pieone"?this.echartsData.zuzhiorBuilding="zhi":this.echartsData.zuzhiorBuilding="building" + }); this.indexBzt.setOption(options); } @@ -179,9 +180,13 @@ export class AddUnitOneComponent implements OnInit { } this.res+=''+this.tishiData[i].count+'' - this.res+=''+countbi+'%' + if(countall==0){ + this.res+='0%' + }else{ + this.res+=''+countbi+'%' + } + } - this.res+='' this.res+='总计'+countall+''+allCountbi.toFixed(2)+'%' this.res+='
' diff --git a/src/app/statistic-analysis/addUnit/add-unit-three-bar-details/add-unit-three-bar-details.component.ts b/src/app/statistic-analysis/addUnit/add-unit-three-bar-details/add-unit-three-bar-details.component.ts index 328531b..10106d2 100644 --- a/src/app/statistic-analysis/addUnit/add-unit-three-bar-details/add-unit-three-bar-details.component.ts +++ b/src/app/statistic-analysis/addUnit/add-unit-three-bar-details/add-unit-three-bar-details.component.ts @@ -205,7 +205,7 @@ export class AddUnitThreeBarDetailsComponent implements OnInit { this.tiao=true }else{ console.log(this.organizationId,this.option.xAxis.id) - this.router.navigate(['/statisticanalysis/CompangInfo'],{queryParams:{'name':this.option.xAxis.data[xIndex],'type':1,'jsid':this.option.xAxis.id[xIndex]}}); + this.router.navigate(['/statisticanalysis/CompangInfo'],{queryParams:{'name':this.option.xAxis.data[xIndex],'type':1,'jsid':this.option.xAxis.id[xIndex],'buildid':this.buildId}}); } } /* if(this.serviceData.level == "1"){//如果是支队则跳转 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 b550cc0..95ff8af 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 @@ -155,11 +155,12 @@ 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')&&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.echartsData.zuzhiorBuilding=='zhi'?this.canshuId:this.lastId}}); }else{ - this.router.navigate(['/statisticanalysis/CompangInfo'],{queryParams:{'name':option.xAxis.data[xIndex],'type':1,'jsid':option.xAxis.id[xIndex]}}); + this.router.navigate(['/statisticanalysis/CompangInfo'],{queryParams:{'name':option.xAxis.data[xIndex],'type':1,'jsid':option.xAxis.id[xIndex],'buildid':this.lastId}}); } } diff --git a/src/app/statistic-analysis/addUnit/add-unit-two-type-statistics/add-unit-two-type-statistics.component.ts b/src/app/statistic-analysis/addUnit/add-unit-two-type-statistics/add-unit-two-type-statistics.component.ts index 44b78c4..cfa2693 100644 --- a/src/app/statistic-analysis/addUnit/add-unit-two-type-statistics/add-unit-two-type-statistics.component.ts +++ b/src/app/statistic-analysis/addUnit/add-unit-two-type-statistics/add-unit-two-type-statistics.component.ts @@ -353,13 +353,24 @@ export class AddUnitTwoTypeStatisticsComponent implements OnInit { const pointInPixel= [params.offsetX, params.offsetY]; 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'){ - //总队,支队跳转 - this.router.navigate(['/statisticanalysis/addUnit_one/addUnit_two_typeDetails'],{queryParams:{'organizationName':option.xAxis.data[xIndex],'buildingTypeName':this.headname,'id':this.lastId,'zhuId':option.xAxis.id[xIndex]}}) - } - else{ - this.router.navigate(['/statisticanalysis/CompangInfo'],{queryParams:{'name':params.name,'type':1}}); + if(this.data.zuzhiorBuilding=='zhi'){ + if((this.data.level=='0'||this.data.level=='1')&&this.tabledata[0].buildingTypes[xIndex].organizations.length>=1){ + //总队,支队跳转 + this.router.navigate(['/statisticanalysis/addUnit_one/addUnit_two_typeDetails'],{queryParams:{'organizationName':option.xAxis.data[xIndex],'buildingTypeName':this.headname,'id':this.lastId,'zhuId':option.xAxis.id[xIndex]}}) + } + else{ + this.router.navigate(['/statisticanalysis/CompangInfo'],{queryParams:{'name':option.xAxis.data[xIndex],'type':1,'jsid':this.lastId,'buildid':option.xAxis.id[xIndex]}}); + } + }else{ + if((this.data.level=='0'||this.data.level=='1')&&this.tabledata[0].organizations[xIndex].subOrganizations.length>=1){ + //总队,支队跳转 + this.router.navigate(['/statisticanalysis/addUnit_one/addUnit_two_typeDetails'],{queryParams:{'organizationName':option.xAxis.data[xIndex],'buildingTypeName':this.headname,'id':this.lastId,'zhuId':option.xAxis.id[xIndex]}}) + } + else{ + this.router.navigate(['/statisticanalysis/CompangInfo'],{queryParams:{'name':option.xAxis.data[xIndex],'type':1,'jsid':option.xAxis.id[xIndex],'buildid':this.lastId}}); + } } + } 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 4c88ae9..0fa0ea9 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 @@ -99,14 +99,21 @@ export class BuildingTypeOneComponent implements OnInit { ] }; this.indexBzt.on('click', (params) => { - if(this.echartsData.level=='0'||this.echartsData.level=='1'||this.echartsData.level=='2'){ - //总队,支队,大队跳转 - 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,'buildid':params.id}}); + var index=0 + for(var i=0;i0){ + //总队,支队,大队跳转 + this.router.navigate(['/statisticanalysis/buildingType_one/buildingType_two_reverse'],{queryParams:{'level':params.name,'id':params.data.id}}); + }else { + //中队跳转 + this.router.navigate(['/statisticanalysis/CompangInfo'],{queryParams:{'name':params.name,'type':1,'buildid':params.data.id}}); + } + } } + + }); this.indexBzt.setOption(options); 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 c0dd44f..24e54bc 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,7 @@ export class BuildingTypeThreeDetailsComponent implements OnInit { this.tiao=true } else{ - this.router.navigate(['/statisticanalysis/CompangInfo'],{queryParams:{'name':option.xAxis.data[xIndex],'type':1,'jsid':option.xAxis.id[xIndex]}}); + this.router.navigate(['/statisticanalysis/CompangInfo'],{queryParams:{'name':option.xAxis.data[xIndex],'type':1,'jsid':option.xAxis.id[xIndex],'buildid':this.buildingTypeId}}); } } diff --git a/src/app/statistic-analysis/echarts-data.service.ts b/src/app/statistic-analysis/echarts-data.service.ts index a4f766b..ea0e6ef 100644 --- a/src/app/statistic-analysis/echarts-data.service.ts +++ b/src/app/statistic-analysis/echarts-data.service.ts @@ -407,7 +407,7 @@ export class EchartsDataService { tishiData localData biaogeTishiZhi(datas){ - console.log(datas) + //console.log(datas) for(var a in this.obdata[0].buildingTypes){ if(this.obdata[0].buildingTypes[a].buildingTypeName==datas.name){ this.tishiData=this.obdata[0].buildingTypes[a].organizations @@ -436,7 +436,6 @@ export class EchartsDataService { this.res+=''+this.tishiData[i].count+'' this.res+=''+countbi+'%' } - this.res+='' this.res+='总计'+countall+''+allCountbi.toFixed(2)+'%' this.res+='' @@ -526,7 +525,7 @@ export class EchartsDataService { }) } this.localData=localStorage.getItem('yuansuccesstishi') - }else{ + }else if(datas.name='预案编制'){ this.localData='' if(localStorage.getItem('yuanbiantishi')==undefined){ this.http.get(`/api/StatisticsAnalysis/Plans/Status`,{params:paramdata}).subscribe((data:any)=>{ 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 422b4e1..cb01654 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-17 10:30:24 + * @LastEditTime: 2021-03-19 14:06:41 */ import { Component, OnInit } from '@angular/core'; import { Router } from '@angular/router'; @@ -116,7 +116,7 @@ export class PageOneComponent implements OnInit { let rawJwt = CryptoJS.enc.Base64.parse(jwt.split('.')[1]); let identityJson = CryptoJS.enc.Utf8.stringify(rawJwt); let identityJsonparse=JSON.parse(identityJson) */ - if(this.echartsData.level=='0'||this.echartsData.level=='1'||this.echartsData.level=='2'){ + if((this.echartsData.level=='0'||this.echartsData.level=='1'||this.echartsData.level=='2')&&this.echartsData.localData.length>0){ window.setTimeout(()=>{ this.router.navigate(['/statisticanalysis/statePageOne/time'],{queryParams:{'level':params.name,'type':params.data.type}}); })