预案级别 |
{{element.planCategory==1?'Ⅰ级预案':element.planCategory==2?'Ⅱ级预案':
diff --git a/src/app/statistic-analysis/all-plan/all-plan.component.scss b/src/app/statistic-analysis/all-plan/all-plan.component.scss
index 3900afd..a35901d 100644
--- a/src/app/statistic-analysis/all-plan/all-plan.component.scss
+++ b/src/app/statistic-analysis/all-plan/all-plan.component.scss
@@ -39,6 +39,7 @@
}
}
.tablebox{
+ overflow-y: auto;
width: 100%;
text-align: center;
margin-top:2%;
diff --git a/src/app/statistic-analysis/all-plan/all-plan.component.ts b/src/app/statistic-analysis/all-plan/all-plan.component.ts
index 0327f73..077786a 100644
--- a/src/app/statistic-analysis/all-plan/all-plan.component.ts
+++ b/src/app/statistic-analysis/all-plan/all-plan.component.ts
@@ -4,7 +4,7 @@
* @Author: sueRimn
* @Date: 2021-03-15 11:32:30
* @LastEditors: sueRimn
- * @LastEditTime: 2021-05-17 17:19:25
+ * @LastEditTime: 2021-07-22 14:12:43
*/
import { Component, OnInit, ViewChild, Inject } from '@angular/core';
import { HttpClient } from '@angular/common/http'
@@ -32,19 +32,41 @@ export class AllPlanComponent implements OnInit {
ngOnInit(): void {
this.route.queryParams.subscribe(params => {
- this.titlename = params['name'];
+ this.titlename = params['xname'];
this.type = params['type'];
this.jsId = params['id']
this.tid = params.tid
+ this.yuantype=params.name
+ this.pieonetype=params.pieonetype
});
+ if(this.yuantype=='二维预案'){
+ this.planType=1
+ }else if(this.yuantype=='三维预案'){
+ this.planType=2
+ }else if(this.yuantype=='其他预案'){
+ this.planType=4
+ }else if(this.yuantype=='文本预案'){
+ this.planType=16
+ }
+ if(this.tid=='pieone'&&(this.yuantype=='Ⅲ级预案'||this.yuantype=='Ⅳ级预案'||this.yuantype=='Ⅴ级预案')){
+ this.danwei=true
+ this.displayedColumns=['unitname', 'modifiedTime','unitName','buildtype', 'organizationName', 'buildingTypes', 'operation']
+ }else{
+ this.danwei=false
+ this.displayedColumns=['unitname', 'modifiedTime', 'organizationName', 'buildingTypes', 'operation']
+ }
this.getAlltabledate()
}
tid
- displayedColumns: string[] = ['unitname', 'modifiedTime', 'organizationName', 'buildingTypes', 'operation'];
+ displayedColumns: string[]
tabledataSource
titlename //上个页面传过来的名称
type //上个页面传过来:1重点单位 2预案
jsId //组织机构id
+ yuantype//上个页面传过来的预案类型或者级别
+ danwei=true//控制单位字段显示或隐藏
+ pieonetype//判断是级别还是类型,上个页面传过来的参数
+ planType//预案类型
//分页
@ViewChild(MatPaginator, { static: true })
pageEvent: PageEvent;
@@ -68,8 +90,9 @@ export class AllPlanComponent implements OnInit {
getAlltabledate() {
let paramtedate: any = {
organizationId: this.jsId || '',
- planStatus: this.tid == 'pieone' ? '' : this.type,
- PlanCategory: this.tid == 'pieone' ? this.type : '',
+ planStatus:this.tid=='pieone'?'': this.type,
+ PlanCategory:this.tid=='pieone'&&this.pieonetype=='true'?this.type:'',
+ PlanType:this.tid=='pieone'&&this.pieonetype=='false'?this.planType:'',
PageNumber: this.PageNumber || '1',
PageSize: this.pageSizeOptions[0]
}
@@ -133,6 +156,14 @@ export class AllPlanComponent implements OnInit {
window.open(`/planManagement/webLook`)
}
}
+ //单位类型查看
+ lookunit(){
+ const dialogRef = this.dialog.open(lookunit, {
+ width: '350px',
+ height: '700px',
+ data: {jsId:this.jsId,type:this.type}
+ });
+ }
}
@@ -151,4 +182,42 @@ export class PsViewer {
});
}
+}
+//单位类型查看弹出框
+@Component({
+ selector: 'lookunit',
+ templateUrl: './lookunit.html',
+ styleUrls: ['./all-plan.component.scss']
+})
+export class lookunit{
+ constructor(private router: Router, private http: HttpClient, public dialog: MatDialog, public snackBar: MatSnackBar, public dialogRef: MatDialogRef, @Inject(MAT_DIALOG_DATA) public data: any) { }
+ ngOnInit(): void{
+ this.getAlltabledate()
+ }
+ tabledataSource//表格数据
+ displayedColumns=['unitname', 'count']
+ //分页
+ @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()
+ }
+ //获取表格数据
+ getAlltabledate(){
+ let paramtedate: any = {
+ organizationId: this.data.jsId || '',
+ PlanCategory:this.data.type ||''
+ }
+ this.http.get(`/api/StatisticsAnalysis/Plans/BuildingTypes`, { params: paramtedate }).subscribe((data: any) => {
+ this.tabledataSource=data.planBuildingTypes
+ // console.log(this.tabledataSource)
+ })
+ }
}
\ No newline at end of file
diff --git a/src/app/statistic-analysis/all-plan/lookunit.html b/src/app/statistic-analysis/all-plan/lookunit.html
new file mode 100644
index 0000000..80257f5
--- /dev/null
+++ b/src/app/statistic-analysis/all-plan/lookunit.html
@@ -0,0 +1,28 @@
+
+
+
+ 单位类型统计
+
+
+
+
+ 单位名称 |
+ {{element.buildingTypeName}} |
+
+
+ 数量 |
+ {{element.count}} |
+
+
+
+
+
+
+
diff --git a/src/app/statistic-analysis/echarts-data.service.ts b/src/app/statistic-analysis/echarts-data.service.ts
index 210455e..d72cad1 100644
--- a/src/app/statistic-analysis/echarts-data.service.ts
+++ b/src/app/statistic-analysis/echarts-data.service.ts
@@ -485,23 +485,34 @@ export class EchartsDataService {
}
//预案表格提示
apidata=[]
- biaogeTishiyuan(datas,tid){
+ biaogeTishiyuan(datas,tid,pieonetype){
//localStorage.setItem('tishi',this.tishiData)
this.tishiData=''
var countall=0//总计
var countbi=0//站比
var allCountbi=0//总站比
if(tid=='pieone'){
- this.tishiData=''
- for(var a in this.obdata[0].planCategoryStatistics.planCategories){
- if(this.obdata[0].planCategoryStatistics.planCategories[a].planCategoryName==datas.planStatusName){
- this.tishiData=this.obdata[0].planCategoryStatistics.planCategories[a].organizations
+ if(pieonetype){
+ for(var a in this.obdata[0].planCategoryStatistics.planCategories){
+ if(this.obdata[0].planCategoryStatistics.planCategories[a].planCategoryName==datas.planStatusName){
+ this.tishiData=this.obdata[0].planCategoryStatistics.planCategories[a].organizations
+ }
}
+ for(var i=0;i {
if(array[index].planTypeName=='Plan2D'){
- this.planTypeStatisticsdata.push({name:'二维预案',value:array[index].count,planStatusName:array[index].planCategoryName,type:1})
+ this.planTypeStatisticsdata.push({name:'二维预案',value:array[index].count,planStatusName:array[index].planTypeName,type:1})
}else if(array[index].planTypeName=='Plan3D'){
- this.planTypeStatisticsdata.push({name:'三维预案',value:array[index].count,planStatusName:array[index].planCategoryName,type:2})
+ this.planTypeStatisticsdata.push({name:'三维预案',value:array[index].count,planStatusName:array[index].planTypeName,type:2})
}else if(array[index].planTypeName=='Other'){
- this.planTypeStatisticsdata.push({name:'其它预案',value:array[index].count,planStatusName:array[index].planCategoryName,type:3})
+ this.planTypeStatisticsdata.push({name:'其它预案',value:array[index].count,planStatusName:array[index].planTypeName,type:3})
}else if(array[index].planTypeName=='PlanText'){
- this.planTypeStatisticsdata.push({name:'文本预案',value:array[index].count,planStatusName:array[index].planCategoryName,type:4})
+ this.planTypeStatisticsdata.push({name:'文本预案',value:array[index].count,planStatusName:array[index].planTypeName,type:4})
}
});
}
@@ -135,7 +135,7 @@ export class PageOneComponent implements OnInit {
tooltip: {
trigger: 'item',
formatter: (params)=>{
- this.echartsData.biaogeTishiyuan(params.data,tid)
+ this.echartsData.biaogeTishiyuan(params.data,tid,this.pieonetype)
return this.echartsData.res
}
},
@@ -185,30 +185,58 @@ export class PageOneComponent implements OnInit {
this.indexBzt.on('click', (params) => {
// console.log(params)
if(tid=='pieone'){
- for(var i=0;i0){
- this.tabledata[0].planCategoryStatistics.planCategories[i].organizations.forEach((element,index,array) => {
- if(array[index].organizationId==this.orid){
- array.splice(index,1)
- }
- window.setTimeout(()=>{
- if(array.length>0){
- this.router.navigate(['/statisticanalysis/statePageOne/time'],{queryParams:{'level':params.name,'type':params.data.type,'tid':'pieone'}});
+ if(this.pieonetype){
+ for(var i=0;i0){
+ this.tabledata[0].planCategoryStatistics.planCategories[i].organizations.forEach((element,index,array) => {
+ if(array[index].organizationId==this.orid){
+ array.splice(index,1)
}
- else{
- this.router.navigate(['/statisticanalysis/AllPlan'],{queryParams:{'name':params.name,'id':null,'type':params.data.type,'tid':'pieone'}});
- }
- })
- });
-
+ window.setTimeout(()=>{
+ if(array.length>0){
+ this.router.navigate(['/statisticanalysis/statePageOne/time'],{queryParams:{'level':params.name,'type':params.data.type,'tid':'pieone','pieonetype':this.pieonetype}});
+ }
+ else{
+ this.router.navigate(['/statisticanalysis/AllPlan'],{queryParams:{'xname':params.name,'name':params.name,'id':null,'type':params.data.type,'tid':'pieone','pieonetype':this.pieonetype}});
+ }
+ })
+ });
+
+ }
+ else if(this.echartsData.level=='3'){
+ //中队跳转
+ this.router.navigate(['/statisticanalysis/AllPlan'],{queryParams:{'xname':params.name,'name':params.name,'id':null,'type':params.data.type,'tid':'pieone','pieonetype':this.pieonetype}});
+ }
}
- else if(this.echartsData.level=='3'){
- //中队跳转
- this.router.navigate(['/statisticanalysis/AllPlan'],{queryParams:{'name':params.name,'id':null,'type':params.data.type,'tid':'pieone'}});
+ }
+ }else{
+ for(var i=0;i0){
+ this.tabledata[0].planTypeStatistics.planTypes[i].organizations.forEach((element,index,array) => {
+ if(array[index].organizationId==this.orid){
+ array.splice(index,1)
+ }
+ window.setTimeout(()=>{
+ if(array.length>0){
+ this.router.navigate(['/statisticanalysis/statePageOne/time'],{queryParams:{'level':params.name,'type':params.data.type,'tid':'pieone','pieonetype':this.pieonetype}});
+ }
+ else{
+ this.router.navigate(['/statisticanalysis/AllPlan'],{queryParams:{'xname':params.name,'name':params.name,'id':null,'type':params.data.type,'tid':'pieone','pieonetype':this.pieonetype}});
+ }
+ })
+ });
+
+ }
+ else if(this.echartsData.level=='3'){
+ //中队跳转
+ this.router.navigate(['/statisticanalysis/AllPlan'],{queryParams:{'xname':params.name,'name':params.name,'id':null,'type':params.data.type,'tid':'pieone','pieonetype':this.pieonetype}});
+ }
}
}
}
+
}else{
for(var i=0;i=1){
- this.router.navigate(['/statisticanalysis/PageZhongDuiDetails'],{queryParams:{'level':this.option.xAxis.data[xIndex]+this.headtext,'id':this.option.xAxis.id[xIndex],'type':this.type,'tid':this.tid}});
+ this.router.navigate(['/statisticanalysis/PageZhongDuiDetails'],{queryParams:{'level':this.option.xAxis.data[xIndex],'name':this.headtext,'id':this.option.xAxis.id[xIndex],'type':this.type,'tid':this.tid,'pieonetype':this.pieonetype}});
}else{
- this.router.navigate(['/statisticanalysis/AllPlan'],{queryParams:{'name':this.option.xAxis.data[xIndex],'id':this.option.xAxis.id[xIndex],'type':this.type,'tid':this.tid}});
+ this.router.navigate(['/statisticanalysis/AllPlan'],{queryParams:{'xname':this.option.xAxis.data[xIndex],'name':this.headtext,'id':this.option.xAxis.id[xIndex],'type':this.type,'tid':this.tid,'pieonetype':this.pieonetype}});
}
}
diff --git a/src/app/statistic-analysis/state/page-two-name/page-two-name.component.ts b/src/app/statistic-analysis/state/page-two-name/page-two-name.component.ts
index 7084409..c2facd5 100644
--- a/src/app/statistic-analysis/state/page-two-name/page-two-name.component.ts
+++ b/src/app/statistic-analysis/state/page-two-name/page-two-name.component.ts
@@ -29,6 +29,16 @@ export class PageTwoNameComponent implements OnInit {
this.headname=param.level
this.type=param.type
this.tid=param.tid
+ this.pieonetype=param.pieonetype
+ if(this.headname=='二维预案'){
+ this.planType=1
+ }else if(this.headname=='三维预案'){
+ this.planType=2
+ }else if(this.headname=='其他预案'){
+ this.planType=4
+ }else if(this.headname=='文本预案'){
+ this.planType=16
+ }
});
@@ -42,11 +52,12 @@ export class PageTwoNameComponent implements OnInit {
async getechartsdata(){
let paramdata={
planStatus:this.tid=='pieone'?'': this.type,
- PlanCategory:this.tid=='pieone'?this.type:''
+ PlanCategory:this.tid=='pieone'&&this.pieonetype=='true'?this.type:'',
+ PlanType:this.tid=='pieone'&&this.pieonetype=='false'?this.planType:''
}
- await this.data.getData(paramdata,this.tid=='pieone'?'/api/StatisticsAnalysis/Plans/Category': `/api/StatisticsAnalysis/Plans/Status`)
+ await this.data.getData(paramdata,this.tid=='pieone'&&this.pieonetype=='true'?'/api/StatisticsAnalysis/Plans/Category':this.tid=='pieone'&&this.pieonetype=='false'?'/api/StatisticsAnalysis/Plans/Type': `/api/StatisticsAnalysis/Plans/Status`)
this.tabledata=JSON.parse(JSON.stringify(this.data.allDate))
- //console.log(this.tabledata)
+ console.log(this.tabledata)
for(var i=0;i=1){
- this.router.navigate(['/statisticanalysis/stataPageThere'],{queryParams:{'level':option.xAxis.data[xIndex],'headtext':_this.headname,'id':option.xAxis.id[xIndex],'type':this.type,'tid':this.tid}});
+ this.router.navigate(['/statisticanalysis/stataPageThere'],{queryParams:{'level':option.xAxis.data[xIndex],'headtext':_this.headname,'id':option.xAxis.id[xIndex],'type':this.type,'tid':this.tid,'pieonetype':this.pieonetype}});
}else{
- this.router.navigate(['/statisticanalysis/AllPlan'],{queryParams:{'name':option.xAxis.data[xIndex],'id':option.xAxis.id[xIndex],'type':this.type,'tid':this.tid}});
+ this.router.navigate(['/statisticanalysis/AllPlan'],{queryParams:{'xname':option.xAxis.data[xIndex],'name':this.headname,'id':option.xAxis.id[xIndex],'type':this.type,'tid':this.tid,'pieonetype':this.pieonetype}});
}
//this.router.navigate(['/statisticanalysis/AllPlan'],{queryParams:{'name':option.xAxis.data[xIndex],'id':option.xAxis.id[xIndex],'type':this.type}});
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 9c54ba8..7b66a7d 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
@@ -166,6 +166,8 @@ export class echartsComponent implements OnInit {
datayuex=[]
dataYearX = []
dataYearY = []
+ pieonetype//判断是级别还是类型,上个页面传过来的参数
+ planType//预案类型
toggleTrue (){}
//气泡提示数据获取
bianli(){
@@ -186,8 +188,17 @@ export class echartsComponent implements OnInit {
this.headtext=param.level
this.type=param.type
this.tid=param.tid
+ this.pieonetype=param.pieonetype
});
-
+ if(this.headtext=='二维预案'){
+ this.planType=1
+ }else if(this.headtext=='三维预案'){
+ this.planType=2
+ }else if(this.headtext=='其他预案'){
+ this.planType=4
+ }else if(this.headtext=='文本预案'){
+ this.planType=16
+ }
window.setTimeout(()=>{
this.getechartsData()
})
@@ -205,8 +216,8 @@ export class echartsComponent implements OnInit {
this.zongcount=0
let paramdata={
planStatus:this.tid=='pieone'?'': this.type,
- PlanCategory:this.tid=='pieone'?this.type:'',
- objectType:this.tid=='pieone'?2: 1,
+ PlanCategory:this.tid=='pieone'&&this.pieonetype=='true'?this.type:'',
+ objectType:this.tid=='pieone'&&this.pieonetype=='true'?2:this.tid=='pieone'&&this.pieonetype=='false'?5: 1,
TrendType:0
}
await this.echartsData.getData(paramdata,`/api/StatisticsAnalysis/Trends`)
@@ -419,7 +430,7 @@ export class echartsComponent implements OnInit {
if (this.twoExample.containPixel('grid',pointInPixel)) {
let xIndex=this.twoExample.convertFromPixel({seriesIndex:0},[params.offsetX, params.offsetY])[0];
if(this.echartsData.selectType==2){
- this.router.navigate(['/statisticanalysis/stataPageThereYearComponent'],{queryParams:{'level':this.headtext,'headtext':X[xIndex],'type':this.type,'tid':this.tid}});
+ this.router.navigate(['/statisticanalysis/stataPageThereYearComponent'],{queryParams:{'level':this.headtext,'headtext':X[xIndex],'type':this.type,'tid':this.tid,'pieonetype':this.pieonetype}});
}else{
/*事件处理代码书写位置*/
if(this.echartsData.level=='0'||this.echartsData.level=='1'||this.echartsData.level=='2'){
@@ -429,7 +440,7 @@ export class echartsComponent implements OnInit {
//this.router.navigate(['/statisticanalysis/statePageOne/name'],{queryParams:{'level':option.xAxis.data[xIndex],'headtext':this.headtext,'type':this.type}});
} else if(this.echartsData.level=='3'){
//中队跳转
- this.router.navigate(['/statisticanalysis/AllPlan'],{queryParams:{'name':params.name,'type':this.type,'tid':this.tid}});
+ this.router.navigate(['/statisticanalysis/AllPlan'],{queryParams:{'name':params.name,'type':this.type,'tid':this.tid,'pieonetype':this.pieonetype}});
}
}
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 a7f2b45..79b966b 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-04-20 15:42:08
+ * @LastEditTime: 2021-07-22 11:28:02
*/
import { Component, OnInit } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
@@ -30,6 +30,9 @@ export class PageZhongDuiDetailsComponent implements OnInit {
organizationId=[]
padHw
tid
+ yuanName
+ pieonetype//判断是级别还是类型,上个页面传过来的参数
+ planType//预案类型
ngOnInit(): void {
if(sessionStorage.getItem('refresh') === 'true') {
sessionStorage.removeItem('refresh');
@@ -49,8 +52,18 @@ export class PageZhongDuiDetailsComponent implements OnInit {
this.type=param.type
this.lastid=param.id
this.tid=param.tid
+ this.yuanName=param.name
+ this.pieonetype=param.pieonetype
});
-
+ if(this.yuanName=='二维预案'){
+ this.planType=1
+ }else if(this.yuanName=='三维预案'){
+ this.planType=2
+ }else if(this.yuanName=='其他预案'){
+ this.planType=4
+ }else if(this.yuanName=='文本预案'){
+ this.planType=16
+ }
window.setTimeout(()=>{
this.getechartsdata()
})
@@ -62,10 +75,11 @@ export class PageZhongDuiDetailsComponent implements OnInit {
async getechartsdata(){
let paramdata={
planStatus:this.tid=='pieone'?'': this.type,
- PlanCategory:this.tid=='pieone'?this.type:'',
- OrganizationId:this.lastid
+ PlanCategory:this.tid=='pieone'&&this.pieonetype=='true'?this.type:'',
+ OrganizationId:this.lastid,
+ PlanType:this.tid=='pieone'&&this.pieonetype=='false'?this.planType:''
}
- await this.data.getData(paramdata,this.tid=='pieone'?'/api/StatisticsAnalysis/Plans/Category': `/api/StatisticsAnalysis/Plans/Status`)
+ await this.data.getData(paramdata,this.tid=='pieone'&&this.pieonetype=='true'?'/api/StatisticsAnalysis/Plans/Category':this.tid=='pieone'&&this.pieonetype=='false'?'/api/StatisticsAnalysis/Plans/Type': `/api/StatisticsAnalysis/Plans/Status`)
this.tabledata=JSON.parse(JSON.stringify(this.data.allDate))
// console.log(this.tabledata)
for(var i=0;i |