@@ -146,6 +152,13 @@
+
单位名称 |
diff --git a/src/app/key-unit/key-unit-management/key-unit-management.component.scss b/src/app/key-unit/key-unit-management/key-unit-management.component.scss
index 91d8f73..5239b3a 100644
--- a/src/app/key-unit/key-unit-management/key-unit-management.component.scss
+++ b/src/app/key-unit/key-unit-management/key-unit-management.component.scss
@@ -92,6 +92,25 @@
}
}
.tablebox{
+ .add{
+ display: block;
+ width: 40px;
+ height: 20px;
+ background: #1AE2AC;
+ font-size: 12px;
+ line-height: 20px;
+ color: #FFFFFF;
+ margin-left: 50px;
+ }
+ .weihu{
+ //display: block;
+ width: 64px;
+ height: 20px;
+ background: #2196F3;
+ font-size: 12px;
+ color: #FFFFFF;
+ line-height: 20px;
+ }
table{
width: 100%;
margin-top: 15px;
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 5ea3df9..24a609a 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
@@ -67,7 +67,7 @@ export class KeyUnitManagementComponent implements OnInit {
pageSizeOptions: number[] = [10] //设置每页条数
PageNumber:any //第几页
- displayedColumns: string[] = ['checked','Follow','unitname','integrity','jurisdictionsquadron', 'unittype','scc', 'time','operation'];
+ displayedColumns: string[] = ['checked','Follow','state','unitname','integrity','jurisdictionsquadron', 'unittype','scc', 'time','operation'];
tabledataSource:any
allorganizations:any
oldDataSource:any; //原始表格数据
@@ -354,6 +354,7 @@ export class KeyUnitManagementComponent implements OnInit {
]
allKeyUnitInfo:any //所有的重点单位
+ IsNewData=true//是否是新增或者维护更新
getAllKeyUnit(){
// console.log(Boolean(Number(this.follow)))
let follow
@@ -378,7 +379,7 @@ export class KeyUnitManagementComponent implements OnInit {
PageSize: this.pageSizeOptions[0],
Sort: this.integritySort ? 'integrityscore' : '',
SortType: this.integritySort || '',
- IsNewData:true,
+ IsNewData:this.IsNewData,
IntegrityScoreMin:this.integrityScoreMin/100||0,
IntegrityScoreMax:this.integrityScoreMax/100||1
}
diff --git a/src/app/plan-management/entry-plan-look/entry-plan-look.component.html b/src/app/plan-management/entry-plan-look/entry-plan-look.component.html
index aad55ac..f38a9b6 100644
--- a/src/app/plan-management/entry-plan-look/entry-plan-look.component.html
+++ b/src/app/plan-management/entry-plan-look/entry-plan-look.component.html
@@ -43,6 +43,13 @@
+
+ 预案状态 |
+
+ 新增
+ 维护更新
+ |
+
预案名称 |
{{element.name}} |
diff --git a/src/app/plan-management/entry-plan-look/entry-plan-look.component.scss b/src/app/plan-management/entry-plan-look/entry-plan-look.component.scss
index 8cd793d..a50c639 100644
--- a/src/app/plan-management/entry-plan-look/entry-plan-look.component.scss
+++ b/src/app/plan-management/entry-plan-look/entry-plan-look.component.scss
@@ -25,6 +25,25 @@
}
.tablebox{
overflow: auto;
+ .add{
+ display: block;
+ width: 40px;
+ height: 20px;
+ background: #1AE2AC;
+ font-size: 12px;
+ line-height: 20px;
+ color: #FFFFFF;
+ margin-left: 50px;
+ }
+ .weihu{
+ //display: block;
+ width: 64px;
+ height: 20px;
+ background: #2196F3;
+ font-size: 12px;
+ color: #FFFFFF;
+ line-height: 20px;
+ }
table{
width: 100%;
margin-left: 0%;
diff --git a/src/app/plan-management/entry-plan-look/entry-plan-look.component.ts b/src/app/plan-management/entry-plan-look/entry-plan-look.component.ts
index 2727df6..f2cc0e7 100644
--- a/src/app/plan-management/entry-plan-look/entry-plan-look.component.ts
+++ b/src/app/plan-management/entry-plan-look/entry-plan-look.component.ts
@@ -39,8 +39,8 @@ export class EntryPlanLookComponent implements OnInit {
dataSource = new MatTreeFlatDataSource(this.treeControl, this.treeFlattener);
myControl = new FormControl();
hasChild = (_: number, node: any) => node.expandable;
-
- displayedColumns: string[] = ['planname', 'addpeople', 'addtime','planCategory', 'plantype', 'auditstate', 'isopen', 'preparethelevel', 'operation'];
+ IsNewData=true //维护更新活新增
+ displayedColumns: string[] = ['state','planname', 'addpeople', 'addtime','planCategory', 'plantype', 'auditstate', 'isopen', 'preparethelevel', 'operation'];
tabledataSource: any
//分页
@ViewChild(MatPaginator, { static: true })
diff --git a/src/app/plan-management/entry-plan/entry-plan.component.html b/src/app/plan-management/entry-plan/entry-plan.component.html
index a708170..3a2ddc2 100644
--- a/src/app/plan-management/entry-plan/entry-plan.component.html
+++ b/src/app/plan-management/entry-plan/entry-plan.component.html
@@ -18,8 +18,8 @@
- 更多筛选条件
- 收起
+ 更多筛选条件
+ 收起
@@ -64,8 +64,8 @@
其他预案
- 更多筛选条件
- 收起
+ 更多筛选条件
+ 收起
@@ -125,14 +125,39 @@
+
+
+
+
+
+ 新增
+ 维护更新
+
+
+
-
+
+
+ 单位状态 |
+
+ 新增
+ 维护更新
+ |
+
单位名称 |
{{element.company.name}} |
diff --git a/src/app/plan-management/entry-plan/entry-plan.component.scss b/src/app/plan-management/entry-plan/entry-plan.component.scss
index aea0e9b..3ffae1d 100644
--- a/src/app/plan-management/entry-plan/entry-plan.component.scss
+++ b/src/app/plan-management/entry-plan/entry-plan.component.scss
@@ -100,6 +100,25 @@
}
}
.tablebox{
+ .add{
+ display: block;
+ width: 40px;
+ height: 20px;
+ background: #1AE2AC;
+ font-size: 12px;
+ line-height: 20px;
+ color: #FFFFFF;
+ margin-left: 50px;
+ }
+ .weihu{
+ //display: block;
+ width: 64px;
+ height: 20px;
+ background: #2196F3;
+ font-size: 12px;
+ color: #FFFFFF;
+ line-height: 20px;
+ }
table{
width: 100%;
margin-left: 0%;
diff --git a/src/app/plan-management/entry-plan/entry-plan.component.ts b/src/app/plan-management/entry-plan/entry-plan.component.ts
index 7f8fcf8..928646d 100644
--- a/src/app/plan-management/entry-plan/entry-plan.component.ts
+++ b/src/app/plan-management/entry-plan/entry-plan.component.ts
@@ -42,10 +42,10 @@ export class EntryPlanComponent implements OnInit {
pageSize:any; //每页条数
pageSizeOptions: number[] = [10] //设置每页条数
PageNumber:any; //第几页
+ IsNewData=true //维护更新活新增
-
- displayedColumns: string[] = ['unitname','integrity','level','jurisdictionsquadron', 'unittype','plantype', 'passstate','projectlevel','operation'];
+ displayedColumns: string[] = ['state','unitname','integrity','level','jurisdictionsquadron', 'unittype','plantype', 'passstate','projectlevel','operation'];
allorganizations:any //所有组织机构
allunittype:any //所有单位类型
tabledataSource:any //表格数据
@@ -333,7 +333,8 @@ export class EntryPlanComponent implements OnInit {
Sort: this.integritySort ? 'integrityscore' : '',
SortType: this.integritySort || '',
HasPlanComponents:this.haveyuan||'',
- PlanCategories:this.planCategory
+ PlanCategories:this.planCategory,
+ IsNewData:this.IsNewData,
}
this.http.get("/api/Plans",{params:paramsdata}).subscribe((data:any)=>{
diff --git a/src/app/plan-management/meet-plan/meet-plan.component.html b/src/app/plan-management/meet-plan/meet-plan.component.html
index c8116d3..3ef9c32 100644
--- a/src/app/plan-management/meet-plan/meet-plan.component.html
+++ b/src/app/plan-management/meet-plan/meet-plan.component.html
@@ -21,8 +21,8 @@
包含下级
- 更多筛选条件
- 收起
+ 更多筛选条件
+ 收起
@@ -45,8 +45,8 @@
- 更多筛选条件
- 收起
+ 更多筛选条件
+ 收起
@@ -84,6 +84,12 @@
+
+
+
+
+
+
-
+
@@ -110,6 +116,13 @@
+
+ 预案状态 |
+
+ 新增
+ 维护更新
+ |
+
预案名称 |
{{element.name}} |
diff --git a/src/app/plan-management/meet-plan/meet-plan.component.scss b/src/app/plan-management/meet-plan/meet-plan.component.scss
index 996a31f..644ca36 100644
--- a/src/app/plan-management/meet-plan/meet-plan.component.scss
+++ b/src/app/plan-management/meet-plan/meet-plan.component.scss
@@ -111,6 +111,25 @@
}
}
.tablebox{
+ .add{
+ display: block;
+ width: 40px;
+ height: 20px;
+ background: #1AE2AC;
+ font-size: 12px;
+ line-height: 20px;
+ color: #FFFFFF;
+ margin-left: 50px;
+ }
+ .weihu{
+ //display: block;
+ width: 64px;
+ height: 20px;
+ background: #2196F3;
+ font-size: 12px;
+ color: #FFFFFF;
+ line-height: 20px;
+ }
table{
width: 100%;
margin-left: 0%;
diff --git a/src/app/plan-management/meet-plan/meet-plan.component.ts b/src/app/plan-management/meet-plan/meet-plan.component.ts
index d3c689c..41c1501 100644
--- a/src/app/plan-management/meet-plan/meet-plan.component.ts
+++ b/src/app/plan-management/meet-plan/meet-plan.component.ts
@@ -82,7 +82,8 @@ export class MeetPlanComponent implements OnInit {
preparelevels: any
plcheck: boolean //编制级别勾选框
- displayedColumns: string[] = ['unitname', 'level', 'addname', 'addtime', 'plantype', 'passstate', 'isopen', 'projectlevel', 'operation'];
+ IsNewData=true //维护更新活新增
+ displayedColumns: string[] = ['state','unitname', 'level', 'addname', 'addtime', 'plantype', 'passstate', 'isopen', 'projectlevel', 'operation'];
tabledataSource
typePlan//新预案类型
unitname//预案名称
@@ -140,7 +141,7 @@ export class MeetPlanComponent implements OnInit {
HasChildrenPlanLevel: this.plcheck || '',
PageNumber: this.PageNumber || '1',
PageSize: this.pageSizeOptions[0],
-
+ IsNewData:this.IsNewData,
}
this.http.get("/api/PlanComponentsMajor", { params: paramsdata }).subscribe((data: any) => {
this.length = data.totalCount
diff --git a/src/app/plan-management/onetwo-entry-plan/onetwo-entry-plan.component.html b/src/app/plan-management/onetwo-entry-plan/onetwo-entry-plan.component.html
index 5e012bf..9e99c67 100644
--- a/src/app/plan-management/onetwo-entry-plan/onetwo-entry-plan.component.html
+++ b/src/app/plan-management/onetwo-entry-plan/onetwo-entry-plan.component.html
@@ -28,8 +28,8 @@
包含下级
- 更多筛选条件
- 收起
+ 更多筛选条件
+ 收起
@@ -47,8 +47,8 @@
- 更多筛选条件
- 收起
+ 更多筛选条件
+ 收起
@@ -79,13 +79,18 @@
-
+
+
+
+
+
+
-
+
@@ -102,6 +107,13 @@
+
+ 预案状态 |
+
+ 新增
+ 维护更新
+ |
+
预案名称 |
{{element.name}} |
diff --git a/src/app/plan-management/onetwo-entry-plan/onetwo-entry-plan.component.scss b/src/app/plan-management/onetwo-entry-plan/onetwo-entry-plan.component.scss
index 5483b3e..c2a8398 100644
--- a/src/app/plan-management/onetwo-entry-plan/onetwo-entry-plan.component.scss
+++ b/src/app/plan-management/onetwo-entry-plan/onetwo-entry-plan.component.scss
@@ -119,6 +119,26 @@
text-align: center;
font-size: 15px;
color: #000000;
+
+ }
+ .add{
+ display: block;
+ width: 40px;
+ height: 20px;
+ background: #1AE2AC;
+ font-size: 12px;
+ line-height: 20px;
+ color: #FFFFFF;
+ margin-left: 50px;
+ }
+ .weihu{
+ //display: block;
+ width: 64px;
+ height: 20px;
+ background: #2196F3;
+ font-size: 12px;
+ color: #FFFFFF;
+ line-height: 20px;
}
}
mat-paginator{
diff --git a/src/app/plan-management/onetwo-entry-plan/onetwo-entry-plan.component.ts b/src/app/plan-management/onetwo-entry-plan/onetwo-entry-plan.component.ts
index 849ec9c..93cde8a 100644
--- a/src/app/plan-management/onetwo-entry-plan/onetwo-entry-plan.component.ts
+++ b/src/app/plan-management/onetwo-entry-plan/onetwo-entry-plan.component.ts
@@ -95,7 +95,7 @@ export class OnetwoEntryPlanComponent implements OnInit {
url
preparelevels: any
plcheck: boolean //编制级别勾选框
- displayedColumns: string[] = ['unitname', 'level', 'addname', 'addtime', 'plantype', 'passstate', 'isopen', 'projectlevel', 'operation'];
+ displayedColumns: string[] = ['state','unitname', 'level', 'addname', 'addtime', 'plantype', 'passstate', 'isopen', 'projectlevel', 'operation'];
tabledataSource
unitname//预案名称
level//预案级别
@@ -114,6 +114,7 @@ export class OnetwoEntryPlanComponent implements OnInit {
pageSize: any; //每页条数
pageSizeOptions: number[] = [10] //设置每页条数
PageNumber: any; //第几页
+ IsNewData=true //维护更新活新增
//获取表格数据
getAlltabledate() {
@@ -135,7 +136,7 @@ export class OnetwoEntryPlanComponent implements OnInit {
HasChildrenPlanLevel: this.plcheck || '',
PageNumber: this.PageNumber || '1',
PageSize: this.pageSizeOptions[0],
-
+ IsNewData:this.IsNewData,
}
this.http.get("/api/PlanComponentsMajor", { params: paramsdata }).subscribe((data: any) => {
this.length = data.totalCount
diff --git a/src/app/plan-management/open-plan/open-plan.component.html b/src/app/plan-management/open-plan/open-plan.component.html
index 168444b..24eae26 100644
--- a/src/app/plan-management/open-plan/open-plan.component.html
+++ b/src/app/plan-management/open-plan/open-plan.component.html
@@ -16,8 +16,8 @@
包含下级
- 更多筛选条件
- 收起
+ 更多筛选条件
+ 收起
@@ -46,7 +46,12 @@
-
+
+
+
+
+
+
@@ -56,10 +61,17 @@
-
+
+
+ 预案状态 |
+
+ 新增
+ 维护更新
+ |
+
单位名称 |
{{element.companyName}} |
diff --git a/src/app/plan-management/open-plan/open-plan.component.scss b/src/app/plan-management/open-plan/open-plan.component.scss
index 7e795ed..a67a989 100644
--- a/src/app/plan-management/open-plan/open-plan.component.scss
+++ b/src/app/plan-management/open-plan/open-plan.component.scss
@@ -89,6 +89,25 @@
}
}
.tablebox{
+ .add{
+ display: block;
+ width: 40px;
+ height: 20px;
+ background: #1AE2AC;
+ font-size: 12px;
+ line-height: 20px;
+ color: #FFFFFF;
+ margin-left: 50px;
+ }
+ .weihu{
+ //display: block;
+ width: 64px;
+ height: 20px;
+ background: #2196F3;
+ font-size: 12px;
+ color: #FFFFFF;
+ line-height: 20px;
+ }
table{
width: 100%;
margin-top: 15px;
diff --git a/src/app/plan-management/open-plan/open-plan.component.ts b/src/app/plan-management/open-plan/open-plan.component.ts
index f1e6306..cb2f62c 100644
--- a/src/app/plan-management/open-plan/open-plan.component.ts
+++ b/src/app/plan-management/open-plan/open-plan.component.ts
@@ -43,8 +43,9 @@ export class OpenPlanComponent implements OnInit {
pageSize: any; //每页条数
pageSizeOptions: number[] = [10] //设置每页条数
PageNumber: any; //第几页
+ IsNewData=true //维护更新活新增
- displayedColumns: string[] = ['unitname', 'planname', 'addpeople', 'addtime', 'plantype', 'auditStatus', 'openRange', 'projectlevel', 'operation'];
+ displayedColumns: string[] = ['state','unitname', 'planname', 'addpeople', 'addtime', 'plantype', 'auditStatus', 'openRange', 'projectlevel', 'operation'];
allorganizations: any //所有组织机构
allunittype: any //所有单位类型
@@ -126,7 +127,8 @@ export class OpenPlanComponent implements OnInit {
HasChildrenPlanLevel: this.plcheck || '',
PageNumber: this.PageNumber || '1',
PageSize: this.pageSizeOptions[0],
- Sort: ''
+ Sort: '',
+ IsNewData:this.IsNewData,
}
this.http.get("/api/PublicPlans", { params: paramsdata }).subscribe((data: any) => {
// console.log(111,data)
diff --git a/src/app/plan-management/pass-plan/pass-plan.component.html b/src/app/plan-management/pass-plan/pass-plan.component.html
index 6bed239..5a952fa 100644
--- a/src/app/plan-management/pass-plan/pass-plan.component.html
+++ b/src/app/plan-management/pass-plan/pass-plan.component.html
@@ -16,8 +16,8 @@
包含下级
- 更多筛选条件
- 收起
+ 更多筛选条件
+ 收起
@@ -109,20 +109,29 @@
+
+
+
+
+
+
-
+
-
+
+ 预案状态 |
+
+ 新增
+ 维护更新
+ |
+
预案名称 |
{{element.name}} |
diff --git a/src/app/plan-management/pass-plan/pass-plan.component.scss b/src/app/plan-management/pass-plan/pass-plan.component.scss
index 4303146..ae2da82 100644
--- a/src/app/plan-management/pass-plan/pass-plan.component.scss
+++ b/src/app/plan-management/pass-plan/pass-plan.component.scss
@@ -95,6 +95,25 @@
}
}
.tablebox{
+ .add{
+ display: block;
+ width: 40px;
+ height: 20px;
+ background: #1AE2AC;
+ font-size: 12px;
+ line-height: 20px;
+ color: #FFFFFF;
+ margin-left: 50px;
+ }
+ .weihu{
+ //display: block;
+ width: 64px;
+ height: 20px;
+ background: #2196F3;
+ font-size: 12px;
+ color: #FFFFFF;
+ line-height: 20px;
+ }
table{
width: 100%;
// margin-left: 2%;
diff --git a/src/app/plan-management/pass-plan/pass-plan.component.ts b/src/app/plan-management/pass-plan/pass-plan.component.ts
index 973f521..0d767d5 100644
--- a/src/app/plan-management/pass-plan/pass-plan.component.ts
+++ b/src/app/plan-management/pass-plan/pass-plan.component.ts
@@ -44,10 +44,11 @@ export class PassPlanComponent implements OnInit {
pageSizeOptions: number[] = [10] //设置每页条数
PageNumber: any; //第几页
- displayedColumns: string[] = ['planname', 'addpeople', 'level', 'addtime', 'plantype', 'auditStatus', 'openRange', 'projectlevel', 'operation'];
+ displayedColumns: string[] = ['state','planname', 'addpeople', 'level', 'addtime', 'plantype', 'auditStatus', 'openRange', 'projectlevel', 'operation'];
allorganizations: any //所有组织机构
allunittype: any //所有单位类型
tabledataSource: any //表格数据
+ IsNewData=true //维护更新活新增
url
preparelevels: any
@@ -136,7 +137,8 @@ export class PassPlanComponent implements OnInit {
PageNumber: this.PageNumber || '1',
PageSize: this.pageSizeOptions[0],
Sort: '',
- PlanCategories: this.planCategory
+ PlanCategories: this.planCategory,
+ IsNewData:this.IsNewData,
}
this.http.get("/api/ApprovedPlans", { params: paramsdata }).subscribe((data: any) => {
this.length = data.totalCount
diff --git a/src/app/plan-management/reinforce-plan/reinforce-plan.component.html b/src/app/plan-management/reinforce-plan/reinforce-plan.component.html
index f95a6c0..e9df805 100644
--- a/src/app/plan-management/reinforce-plan/reinforce-plan.component.html
+++ b/src/app/plan-management/reinforce-plan/reinforce-plan.component.html
@@ -78,21 +78,33 @@
-
-
-
-
-
+
-
+
+
+ 预案状态 |
+
+ 新增
+ 维护更新
+ |
+
单位名称 |
{{element.companyName}} |
diff --git a/src/app/plan-management/reinforce-plan/reinforce-plan.component.scss b/src/app/plan-management/reinforce-plan/reinforce-plan.component.scss
index 2929046..08c9400 100644
--- a/src/app/plan-management/reinforce-plan/reinforce-plan.component.scss
+++ b/src/app/plan-management/reinforce-plan/reinforce-plan.component.scss
@@ -90,6 +90,25 @@
}
}
.tablebox{
+ .add{
+ display: block;
+ width: 40px;
+ height: 20px;
+ background: #1AE2AC;
+ font-size: 12px;
+ line-height: 20px;
+ color: #FFFFFF;
+ margin-left: 50px;
+ }
+ .weihu{
+ //display: block;
+ width: 64px;
+ height: 20px;
+ background: #2196F3;
+ font-size: 12px;
+ color: #FFFFFF;
+ line-height: 20px;
+ }
table{
width: 100%;
// margin-left: 2%;
diff --git a/src/app/plan-management/reinforce-plan/reinforce-plan.component.ts b/src/app/plan-management/reinforce-plan/reinforce-plan.component.ts
index 3256776..75cb817 100644
--- a/src/app/plan-management/reinforce-plan/reinforce-plan.component.ts
+++ b/src/app/plan-management/reinforce-plan/reinforce-plan.component.ts
@@ -44,10 +44,11 @@ export class ReinforcePlanComponent implements OnInit {
pageSizeOptions: number[] = [10] //设置每页条数
PageNumber:any; //第几页
- displayedColumns: string[] = ['unitname','planname', 'addpeople','level','addtime','plantype','auditStatus','openRange','projectlevel','operation'];
+ displayedColumns: string[] = ['state','unitname','planname', 'addpeople','level','addtime','plantype','auditStatus','openRange','projectlevel','operation'];
allorganizations:any //所有组织机构
allunittype:any //所有单位类型
tabledataSource:any //表格数据
+ IsNewData=true //维护更新活新增
preparelevels:any
ngOnInit(): void {
@@ -127,7 +128,8 @@ export class ReinforcePlanComponent implements OnInit {
CreationTimeRangeEnd:this.endtime||'',
PageNumber: this.PageNumber || '1',
PageSize: this.pageSizeOptions[0],
- Sort: ''
+ Sort: '',
+ IsNewData:this.IsNewData,
}
this.http.get("/api/ApprovedPlans/GetReinforcementPlanComponents",{params:paramsdata}).subscribe((data:any)=>{
// console.log('增援预案列表',data)
diff --git a/src/app/plan-management/type-plan/type-plan.component.html b/src/app/plan-management/type-plan/type-plan.component.html
index ab79d23..a7dffbb 100644
--- a/src/app/plan-management/type-plan/type-plan.component.html
+++ b/src/app/plan-management/type-plan/type-plan.component.html
@@ -21,8 +21,8 @@
包含下级
- 更多筛选条件
- 收起
+ 更多筛选条件
+ 收起
@@ -47,8 +47,8 @@
审核退回
- 更多筛选条件
- 收起
+ 更多筛选条件
+ 收起
@@ -66,12 +66,17 @@
-
+
+
+
+
+
+
-
+
@@ -89,6 +94,13 @@
+
+ 预案状态 |
+
+ 新增
+ 维护更新
+ |
+
预案名称 |
{{element.name}} |
diff --git a/src/app/plan-management/type-plan/type-plan.component.scss b/src/app/plan-management/type-plan/type-plan.component.scss
index 81b800b..9126325 100644
--- a/src/app/plan-management/type-plan/type-plan.component.scss
+++ b/src/app/plan-management/type-plan/type-plan.component.scss
@@ -111,6 +111,25 @@
}
}
.tablebox{
+ .add{
+ display: block;
+ width: 40px;
+ height: 20px;
+ background: #1AE2AC;
+ font-size: 12px;
+ line-height: 20px;
+ color: #FFFFFF;
+ margin-left: 50px;
+ }
+ .weihu{
+ //display: block;
+ width: 64px;
+ height: 20px;
+ background: #2196F3;
+ font-size: 12px;
+ color: #FFFFFF;
+ line-height: 20px;
+ }
table{
width: 100%;
margin-left: 0%;
diff --git a/src/app/plan-management/type-plan/type-plan.component.ts b/src/app/plan-management/type-plan/type-plan.component.ts
index 6eb1bb3..9408be0 100644
--- a/src/app/plan-management/type-plan/type-plan.component.ts
+++ b/src/app/plan-management/type-plan/type-plan.component.ts
@@ -89,7 +89,8 @@ export class TypePlanComponent implements OnInit {
levels
preparelevels: any
plcheck: boolean //编制级别勾选框
- displayedColumns: string[] = ['unitname', 'addname', 'addtime', 'plantype', 'passstate', 'isopen', 'projectlevel', 'operation'];
+ IsNewData=true //维护更新活新增
+ displayedColumns: string[] = ['state','unitname', 'addname', 'addtime', 'plantype', 'passstate', 'isopen', 'projectlevel', 'operation'];
tabledataSource
unitname//预案名称
level//预案级别
@@ -121,7 +122,7 @@ export class TypePlanComponent implements OnInit {
HasChildrenPlanLevel: this.plcheck || '',
PageNumber: this.PageNumber || '1',
PageSize: this.pageSizeOptions[0],
-
+ IsNewData:this.IsNewData,
}
this.http.get("/api/PlanComponentsMajor", { params: paramsdata }).subscribe((data: any) => {
this.length = data.totalCount
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 2278e7a..e4926e1 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
@@ -7,7 +7,7 @@
* @LastEditTime: 2021-06-24 15:27:13
*/
import { Component, OnInit, ViewChild } from '@angular/core';
-import { Router } from '@angular/router';
+import { Router, ActivatedRoute } from '@angular/router';
import { MatDatepickerInputEvent } from '@angular/material/datepicker';
import { MatSnackBarConfig, MatSnackBar } from '@angular/material/snack-bar';
import { DateAdapter } from '@angular/material/core';
@@ -27,7 +27,7 @@ export class DeleteTwoComponent implements OnInit {
dataniany=[0,0]
tiaoshiPao:any//气泡
- constructor(private router: Router,public snackBar: MatSnackBar,private adapter: DateAdapter,public echartsData:EchartsDataService) { }
+ constructor(private router: Router,public snackBar: MatSnackBar,private adapter: DateAdapter,public echartsData:EchartsDataService, private route: ActivatedRoute) { }
/* @ViewChild('appEcharts')appEcharts :echartsComponent; //父组件中获得子组件的引用
@ViewChild('pageTwoName')pageTwoName :PageTwoNameComponent; //父组件中获得子组件的引用 */
@@ -37,29 +37,7 @@ export class DeleteTwoComponent implements OnInit {
this.tiaoshiPao=this.echartsData.qipao(this.tiaoshiPao,this.datayuey,this.datayuex)
//this.bianli()
window.setTimeout(()=>{
-
- this.headZhexian('Line','删除数量总统计',this.datayuex,this.datayuey)
- /* this.headZhexian('leftOne','高层',this.datayuex,this.datayuey)
- this.headZhexian('leftTwo','轨道交通',this.datayuex,this.datayuey)
- this.headZhexian('leftThere','储罐类',this.datayuex,this.datayuey)
- this.headZhexian('leftFour','古建筑',this.datayuex,this.datayuey)
- this.headZhexian('rightOne','地下',this.datayuex,this.datayuey)
- this.headZhexian('rightTwo','化工生产',this.datayuex,this.datayuey)
- this.headZhexian('rightThree','厂房',this.datayuex,this.datayuey)
- this.headZhexian('rightFour','商市场',this.datayuex,this.datayuey) */
-
- /* else if(this.selectType=='year'){
- this.headZhexian('heads','删除数量总统计',this.datanianx,this.dataniany)
- this.headZhexian('leftOne','高层',this.datayuex,this.datayuey)
- this.headZhexian('leftTwo','轨道交通',this.datayuex,this.datayuey)
- this.headZhexian('leftThere','储罐类',this.datayuex,this.datayuey)
- this.headZhexian('leftFour','古建筑',this.datayuex,this.datayuey)
- this.headZhexian('rightOne','地下',this.datayuex,this.datayuey)
- this.headZhexian('rightTwo','化工生产',this.datayuex,this.datayuey)
- this.headZhexian('rightThree','厂房',this.datayuex,this.datayuey)
- this.headZhexian('rightFour','商市场',this.datayuex,this.datayuey)
- } */
-
+ this.getechartsdata()
},0)
}
ngOnDestroy():void{
@@ -85,36 +63,21 @@ export class DeleteTwoComponent implements OnInit {
this.years.unshift(i)
}
}
-
+ TimeType=0//按月查询还是按年查询
selectOneYear:any = (new Date()).getFullYear() //开始年份
selectTwoYear:any = (new Date()).getFullYear() //结束年份
selectStartMonth:any = 1 //开始月份
selectEndMonth:any = (new Date()).getMonth()+1 //结束月份
//点击月
monthClick(){
+ this.TimeType=0
this.tiaoshiPao=null
this.tiaoshiPao=this.echartsData.qipao(this.tiaoshiPao,this.datayuey,this.datayuex)
this.headZhexian('Line','删除数量总统计',this.datayuex,this.datayuey)
- /* this.headZhexian('leftOne','高层',this.datayuex,this.datayuey)
- this.headZhexian('leftTwo','轨道交通',this.datayuex,this.datayuey)
- this.headZhexian('leftThere','储罐类',this.datayuex,this.datayuey)
- this.headZhexian('leftFour','古建筑',this.datayuex,this.datayuey)
- this.headZhexian('rightOne','地下',this.datayuex,this.datayuey)
- this.headZhexian('rightTwo','化工生产',this.datayuex,this.datayuey)
- this.headZhexian('rightThree','厂房',this.datayuex,this.datayuey)
- this.headZhexian('rightFour','商市场',this.datayuex,this.datayuey) */
}
//按月查询
monthSubmit (e) {
this.headZhexian('Line','删除数量总统计',this.datayuex,this.datayuey)
- /* this.headZhexian('leftOne','高层',this.datayuex,this.datayuey)
- this.headZhexian('leftTwo','轨道交通',this.datayuex,this.datayuey)
- this.headZhexian('leftThere','储罐类',this.datayuex,this.datayuey)
- this.headZhexian('leftFour','古建筑',this.datayuex,this.datayuey)
- this.headZhexian('rightOne','地下',this.datayuex,this.datayuey)
- this.headZhexian('rightTwo','化工生产',this.datayuex,this.datayuey)
- this.headZhexian('rightThree','厂房',this.datayuex,this.datayuey)
- this.headZhexian('rightFour','商市场',this.datayuex,this.datayuey) */
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
@@ -146,17 +109,10 @@ export class DeleteTwoComponent implements OnInit {
selectEndYear:any = (new Date()).getFullYear() //结束年份
//点击年
yearClick(){
+ this.TimeType=1
this.tiaoshiPao=null
this.tiaoshiPao=this.echartsData.qipao(this.tiaoshiPao,this.dataniany,this.datanianx)
this.headZhexian('Line','删除数量总统计',this.datanianx,this.dataniany)
- /* this.headZhexian('leftOne','高层',this.datanianx,this.dataniany)
- this.headZhexian('leftTwo','轨道交通',this.datanianx,this.dataniany)
- this.headZhexian('leftThere','储罐类',this.datanianx,this.dataniany)
- this.headZhexian('leftFour','古建筑',this.datanianx,this.dataniany)
- this.headZhexian('rightOne','地下',this.datanianx,this.dataniany)
- this.headZhexian('rightTwo','化工生产',this.datanianx,this.dataniany)
- this.headZhexian('rightThree','厂房',this.datanianx,this.dataniany)
- this.headZhexian('rightFour','商市场',this.datanianx,this.dataniany) */
}
//按年查询
yearSubmit (e) {
@@ -193,6 +149,21 @@ export class DeleteTwoComponent implements OnInit {
goBack(){
history.go(-1)
}
+ //获取数据
+ tabledata
+ async getechartsdata(){
+ let Parameters={
+ MaintainedState:this.route.snapshot.queryParams.type,
+ TimeType:this.TimeType,
+ TimeStart:this.TimeType==0?this.selectStartYear+'-'+this.selectStartMonth:this.selectStartYear,
+ TimeEnd:this.TimeType==0?this.selectEndYear+'-'+this.selectEndMonth:this.selectEndYear,
+ //OrganizationId
+ }
+ await this.echartsData.getData(Parameters,`/api/StatisticsAnalysis/Companies/Maintained/OrganizationTrend`)
+ this.tabledata=JSON.parse(JSON.stringify(this.echartsData.allDate))
+ console.log(this.tabledata)
+ this.headZhexian('Line','删除数量总统计',this.datayuex,this.datayuey)
+ }
/**
* @name: 折线图
@@ -223,7 +194,7 @@ export class DeleteTwoComponent implements OnInit {
},
// 标题
title: {
- text: `${headtext}`+':总数(0)',
+ text: `${headtext}`+`:总数(${this.tabledata[0].totalCount})`,
left:'center',
top: -4,
//副标题文本样式
diff --git a/src/app/statistic-analysis/echarts-data.service.ts b/src/app/statistic-analysis/echarts-data.service.ts
index d72cad1..22dd7ea 100644
--- a/src/app/statistic-analysis/echarts-data.service.ts
+++ b/src/app/statistic-analysis/echarts-data.service.ts
@@ -27,13 +27,16 @@ export class EchartsDataService {
//维护删除
dezhiorBuinding="zhi" //维护删除页面判断是支队查询还是建筑类型查询
-
+ dateYear=new Date().getFullYear()
+
//计划更新统计
scheduledUpdatesType:number = 0; //已核查/未核查
scheduledUpdatesName:string;
scheduledUpdatesXName:string;
//scheduledUpdatesToggle:string ="one"; // 显示 当前点击 已核查/未核查
scheduledUpdatesToggle:number=1
+ TimeType=0//按月查询还是按年查询
+ time//点击的年份或者月份
eventEmit = new EventEmitter();
zhiorBuinding="zhi"//维护更新页面判断是支队查询还是建筑类型查询
@@ -548,7 +551,122 @@ export class EchartsDataService {
this.res+=' '
return this.res
}
-
+ //维护更新提示框第一层
+ weihu(datas){
+ if(datas.name=='维护删除'){
+ for(var a in this.obdata[0].deletedCount){
+ this.tishiData=this.obdata[0].deletedCount.organizationCounts
+ }
+ }else if(datas.name=='维护无需修改'){
+ this.tishiData=this.obdata[0].preservedCount.organizationCounts
+ }else if(datas.name=='维护修改'){
+ this.tishiData=this.obdata[0].updatedCount.organizationCounts
+ }
+
+ //console.log(this.tishiData)
+ var countall=0//总计
+ var countbi=0//站比
+ var allCountbi=0//总站比
+ for(var i=0;i '
+ this.res+=' ';
+ this.res+='';
+ this.res+='名称 | ';
+ this.res+='数量 | '
+ this.res+='总占比 | '
+ this.res+=' '
+ this.res+='';
+ for(var i=0;i'
+ this.res+=''+this.tishiData[i].organizationName+' | '
+ this.res+=''+this.tishiData[i].count+' | '
+ this.res+=''+countbi+'% | '
+ }
+ this.res+=''
+ this.res+='总计 | '+countall+' | 100% | '
+ this.res+=' '
+ return this.res
+
+ }
+ //维护更新左侧内部提示框
+ weihuTooltip(datas){
+ this.tishiData=this.obdata[0].items[0].organizations[datas[0].dataIndex].subOrganizations
+ var countall=0//总计
+ var countbi=0//站比
+ var allCountbi=0//总站比
+ for(var i=0;i'
+ this.res+='';
+ this.res+='';
+ this.res+='名称 | ';
+ this.res+='数量 | '
+ this.res+='总占比 | '
+ this.res+=' '
+ this.res+='';
+ for(var i=0;i'
+ if(this.zhiorBuinding=='zhi'){
+ this.res+=''+ this.tishiData[i].organizationName+' | '
+ }else{
+ this.res+=''+ this.tishiData[i].buildingTypeName+' | '
+ }
+ this.res+=''+this.tishiData[i].count+' | '
+ this.res+=''+countbi+'% | '
+ }
+ this.res+=''
+ this.res+='总计 | '+countall+' | 100% | '
+ this.res+=' '
+ return this.res
+ }
+ //维护更新右侧内部提示框
+ weihuTooltipRight(datas,type){
+ if(type=='1'){
+ this.tishiData=this.obdata[0].unMaintainCount.organizationCounts[datas[0].dataIndex].subOrganizationCounts
+ }else if(type=='2'){
+ this.tishiData=this.obdata[0].maintainedCount.organizationCounts[datas[0].dataIndex].subOrganizationCounts
+ }else if(type=='3'){
+ this.tishiData=this.obdata[0].maintainingCount.organizationCounts[datas[0].dataIndex].subOrganizationCounts
+ }
+
+ var countall=0//总计
+ var countbi=0//站比
+ var allCountbi=0//总站比
+ for(var i=0;i'
+ this.res+='';
+ this.res+='';
+ this.res+='名称 | ';
+ this.res+='数量 | '
+ this.res+='总占比 | '
+ this.res+=' '
+ this.res+='';
+ for(var i=0;i'
+ if(this.zhiorBuinding=='zhi'){
+ this.res+=''+ this.tishiData[i].organizationName+' | '
+ }else{
+ this.res+=''+ this.tishiData[i].buildingTypeName+' | '
+ }
+ this.res+=''+this.tishiData[i].count+' | '
+ this.res+=''+countbi+'% | '
+ }
+ this.res+=''
+ this.res+='总计 | '+countall+' | 100% | '
+ this.res+=' '
+ return this.res
+ }
zhiNameData = ["浦东支队","黄浦支队","徐汇支队","长宁支队","静安支队","普陀支队","虹口支队","杨浦支队","闵行支队","宝山支队","嘉定支队","松江支队","金山支队","崇明支队"]
zhiNumData = [200,190,180,170,160,150,140,130,120,110,100,90,80,70]
diff --git a/src/app/statistic-analysis/scheduled-updates/publicEcharts.html b/src/app/statistic-analysis/scheduled-updates/publicEcharts.html
index 99f3f49..0f8e363 100644
--- a/src/app/statistic-analysis/scheduled-updates/publicEcharts.html
+++ b/src/app/statistic-analysis/scheduled-updates/publicEcharts.html
@@ -76,8 +76,8 @@
-
-
+
diff --git a/src/app/statistic-analysis/scheduled-updates/scheduled-updates.component.html b/src/app/statistic-analysis/scheduled-updates/scheduled-updates.component.html
index bbda33a..8234dd7 100644
--- a/src/app/statistic-analysis/scheduled-updates/scheduled-updates.component.html
+++ b/src/app/statistic-analysis/scheduled-updates/scheduled-updates.component.html
@@ -10,6 +10,10 @@
-->
\ No newline at end of file
diff --git a/src/app/statistic-analysis/scheduled-updates/scheduled-updates.component.scss b/src/app/statistic-analysis/scheduled-updates/scheduled-updates.component.scss
index c6c873c..d307e31 100644
--- a/src/app/statistic-analysis/scheduled-updates/scheduled-updates.component.scss
+++ b/src/app/statistic-analysis/scheduled-updates/scheduled-updates.component.scss
@@ -32,6 +32,14 @@
flex-direction: column;
overflow: hidden;
position: relative;
+ .top{
+ text-align: center;
+ button{
+ width: 88px;
+ height: 36px;
+ margin-top: 20px;
+ }
+ }
.topbox{
width: 100%;
height: 80px;
@@ -75,6 +83,7 @@
flex-direction: row;
margin-top: 80px;
//justify-content:center;
+
}
#pie{
width: 50%;
@@ -87,7 +96,10 @@
flex-direction: row
}
}
-
+.noselectedBtn{
+ background-color: #E8E9E9;
+ color: #000000;
+}
.selectedBtn{
background-color: #2196f3;
color: white;
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 15400d5..2f5c52c 100644
--- a/src/app/statistic-analysis/scheduled-updates/scheduled-updates.component.ts
+++ b/src/app/statistic-analysis/scheduled-updates/scheduled-updates.component.ts
@@ -18,8 +18,8 @@ export class ScheduledUpdatesComponent implements OnInit {
ngOnInit(): void {
window.setTimeout(()=>{
- this.initCharts("pie")
- this.initCharts("pieTwo")
+ this.getechartsdata()
+
})
}
@@ -52,13 +52,40 @@ export class ScheduledUpdatesComponent implements OnInit {
this.echartsData.buildingName=this.chaxun
this.echartsData.tableShow=true
}
+ }
+ //获取后端数据
+ async getechartsdata(){
+ if(this.dwOryuan=='danwei'){
+ await this.echartsData.getData(null,`/api/StatisticsAnalysis/Companies/Maintained`)
+ this.tabledata1=JSON.parse(JSON.stringify(this.echartsData.allDate))
+ console.log(this.tabledata1)
+ this.initCharts("pie")
+ await this.echartsData.getData(null,`/api/StatisticsAnalysis/Companies/Maintenance`)
+ this.tabledata2=JSON.parse(JSON.stringify(this.echartsData.allDate))
+ console.log(this.tabledata2)
+ this.initCharts("pieTwo")
+ }else{
+ await this.echartsData.getData(null,`/api/StatisticsAnalysis/Plans/Maintained`)
+ this.tabledata1=JSON.parse(JSON.stringify(this.echartsData.allDate))
+ console.log(this.tabledata1)
+ this.initCharts("pie")
+ await this.echartsData.getData(null,`/api/StatisticsAnalysis/Plans/Maintenance`)
+ this.tabledata2=JSON.parse(JSON.stringify(this.echartsData.allDate))
+ console.log(this.tabledata2)
+ this.initCharts("pieTwo")
+ }
+
+
+
}
/* 首页饼状图 */
+ tabledata1
+ tabledata2
initCharts(pieid){
this.example= echarts.init(document.getElementById(pieid),'walden');
var options={
title: {
- text: pieid=="pie"?'已维护统计(0家)':'计划维护统计(0家)',
+ text: pieid=="pie"?`已维护统计(${this.tabledata1[0].totalCount}家)`:`计划维护统计(${this.tabledata2[0].totalCount}家)`,
top: "3%",
left: 'center',
textStyle:{
@@ -68,7 +95,8 @@ export class ScheduledUpdatesComponent implements OnInit {
tooltip: {
trigger: 'item',
formatter: (params)=>{
- return this.echartsData.tableTooltip(this.selectedBtn=="tu"?this.echartsData.tableDataZhi:this.echartsData.buildingType,params.name)
+ return this.weihu(params.data)
+ //return this.echartsData.tableTooltip(this.selectedBtn=="tu"?this.echartsData.tableDataZhi:this.echartsData.buildingType,params.name)
},
position:this.echartsData.tableTooltipNoShow2
},
@@ -103,13 +131,13 @@ export class ScheduledUpdatesComponent implements OnInit {
},
}},
data:pieid=="pie"? [
- {value: 0, name: '维护无需修改'},
- {value: 0, name: '维护修改',itemStyle:{color:'#02A7F0'}},
- {value: 0, name: '维护删除',itemStyle:{color:'#87cebb'}},
+ {value: this.tabledata1[0].preservedCount.totalCount, name: '维护无需修改'},
+ {value: this.tabledata1[0].updatedCount.totalCount, name: '维护修改',itemStyle:{color:'#02A7F0'}},
+ {value: this.tabledata1[0].deletedCount.totalCount, name: '维护删除',itemStyle:{color:'#87cebb'}},
]:[
- {value: 0, name: '未维护'},
- {value: 0, name: '维护通过审核',itemStyle:{color:'#02A7F0'}},
- {value: 0, name: '维护中',itemStyle:{color:'#87cebb'}},
+ {value: this.tabledata2[0].unMaintainCount.totalCount, name: '未维护'},
+ {value: this.tabledata2[0].maintainedCount.totalCount, name: '维护通过审核',itemStyle:{color:'#02A7F0'}},
+ {value: this.tabledata2[0].maintainingCount.totalCount, name: '维护中',itemStyle:{color:'#87cebb'}},
],
emphasis: {
itemStyle: {
@@ -124,18 +152,17 @@ export class ScheduledUpdatesComponent implements OnInit {
this.example.setOption(options);
this.example.on('click', (params) => {
this.echartsData.findShow=true
- if(params.name=="维护删除"){this.router.navigateByUrl('/statisticanalysis/delete_one/delete_two');}
- else{
+ //if(params.name=="维护删除"){this.router.navigateByUrl(`/statisticanalysis/delete_one/delete_two?dwOryuan=${this.dwOryuan}&type=3`);}
+
if(pieid=="pie"){
this.echartsData.scheduledUpdatesToggle = 1
- this.echartsData.zhuXname=["平均值","维护无需修改","维护修改","维护删除"]
- this.router.navigateByUrl('/statisticanalysis/scheduledUpdates/PublicEcharts');
+ //this.echartsData.zhuXname=["平均值","维护无需修改","维护修改","维护删除"]
+ this.router.navigateByUrl(`/statisticanalysis/scheduledUpdates/PublicEcharts?type=${params.data.name=='维护修改'?2:params.data.name=='维护无需修改'?1:3}&dwOryuan=${this.dwOryuan}&pieid=pie`);
}else{
- this.echartsData.zhuXname=["平均值","维护中","维护通过审核","未维护"]
+ //this.echartsData.zhuXname=["平均值","维护中","维护通过审核","未维护"]
//this.router.navigateByUrl('/statisticanalysis/scheduledUpdates/PublicEcharts');
- if(this.echartsData.level=='0'){
- //总队跳转
+ /* if(this.echartsData.level=='0'){
this.echartsData.scheduledUpdatesToggle = 2
this.router.navigateByUrl('/statisticanalysis/scheduledUpdates/PublicEcharts');
this.echartsData.findShow=false
@@ -143,15 +170,79 @@ export class ScheduledUpdatesComponent implements OnInit {
this.echartsData.scheduledUpdatesToggle = 3
this.echartsData.findShow=false
this.router.navigateByUrl('/statisticanalysis/scheduledUpdates/PublicEcharts');
- }
+ } */
+ this.echartsData.zhiorBuinding='zhi'
+ this.echartsData.scheduledUpdatesToggle = 2
+ this.router.navigateByUrl(`/statisticanalysis/scheduledUpdates/PublicEcharts?pieid=pieTwo&type=${params.data.name=='维护通过审核'?2:params.data.name=='未维护'?1:3}&dwOryuan=${this.dwOryuan}`);
+ this.echartsData.findShow=false
+
}
- }
+
//console.log(this.echartsData.scheduledUpdatesToggle)
});
}
-
-
+ dwOryuan='danwei'
+ //点击单位按钮
+ danweiClick(){
+ this.dwOryuan='danwei'
+ this.example.clear()
+ this.example.dispose()
+ this.getechartsdata()
+ }
+ //点击预案按钮
+ yuanClick(){
+ this.dwOryuan='yuan'
+ this.example.clear()
+ this.example.dispose()
+ this.getechartsdata()
+ }
+ //维护更新提示框
+ tishiData
+ res
+ weihu(datas){
+ if(datas.name=='维护删除'){
+ this.tishiData=this.tabledata1[0].deletedCount.organizationCounts
+ }else if(datas.name=='维护无需修改'){
+ this.tishiData=this.tabledata1[0].preservedCount.organizationCounts
+ }else if(datas.name=='维护修改'){
+ this.tishiData=this.tabledata1[0].updatedCount.organizationCounts
+ }else if(datas.name=='维护中'){
+ this.tishiData=this.tabledata2[0].maintainingCount.organizationCounts
+ }else if(datas.name=='未维护'){
+ this.tishiData=this.tabledata2[0].unMaintainCount.organizationCounts
+ }else if(datas.name=='维护通过审核'){
+ this.tishiData=this.tabledata2[0].maintainedCount.organizationCounts
+ }
+
+ var countall=0//总计
+ var countbi=0//站比
+ var allCountbi=0//总站比
+ for(var i=0;i'
+ this.res+='';
+ this.res+='';
+ this.res+='名称 | ';
+ this.res+='数量 | '
+ this.res+='总占比 | '
+ this.res+=' '
+ this.res+='';
+ for(var i=0;i'
+ this.res+=''+this.tishiData[i].organizationName+' | '
+ this.res+=''+this.tishiData[i].count+' | '
+ this.res+=''+countbi+'% | '
+ }
+ this.res+=''
+ this.res+='总计 | '+countall+' | 100% | '
+ this.res+=' '
+ return this.res
+
+ }
}
//首页条件查询
@@ -222,22 +313,22 @@ export class publicEchartsComponent implements OnInit {
changeTime(e){
console.log(e)
//this.echartsData.selectType=0
- this.verifieds.changeTime(e.value)
+ this.verifieds.changeTime(e.value,this.selectOneYear,this.selectStartMonth,this.selectTwoYear,this.selectEndMonth)
}
//按月查询
monthSubmit (e) {
-
+ console.log(this.echartsData.dateYear)
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)
+ this.verifieds.getechartsdata(this.echartsData.dateYear,e.selectStartMonth,this.echartsData.dateYear,e.selectEndMonth)
} 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)
+ this.verifieds.getechartsdata(this.echartsData.dateYear,e.selectStartMonth,this.echartsData.dateYear,e.selectEndMonth)
} else {
const config = new MatSnackBarConfig();
config.verticalPosition = 'top';
@@ -251,9 +342,6 @@ export class publicEchartsComponent implements OnInit {
this.snackBar.open('请选择正确时间区段','确定',config);
}
}
-
-
-
selectStartYear:any = (new Date()).getFullYear() //开始年份
selectEndYear:any = (new Date()).getFullYear() //结束年份
@@ -262,6 +350,9 @@ export class publicEchartsComponent implements OnInit {
if (e.selectEndYear >= e.selectStartYear) {
let startTime = e.selectStartYear + '-' + 1 + '-' + 1 + ' ' + 0 + ':' + 0 +':'+ 0
let endTime = e.selectEndYear + '-' + 12 + '-' + 31 + ' ' + 23 + ':' + 59 +':'+ 59
+ e.selectStartYear+='-01'
+ e.selectEndYear+='-12'
+ this.verifieds.getechartsdata(e.selectStartYear,e.selectStartMonth,e.selectEndYear,e.selectEndMonth)
} else {
const config = new MatSnackBarConfig();
config.verticalPosition = 'top';
@@ -298,7 +389,13 @@ export class publicEchartsComponent implements OnInit {
//this.router.navigateByUrl('/statisticanalysis/scheduledUpdates');
}
} */
- window.history.go(-1)
+ if(this.verifieds.pieid=='pie'&& this.echartsData.scheduledUpdatesToggle>1){
+ this.echartsData.scheduledUpdatesToggle--
+ }else{
+ this.router.navigateByUrl('/statisticanalysis/scheduledUpdates');
+ //window.history.go(-1)
+ }
+
}
//更多 窗口
@@ -308,11 +405,17 @@ export class publicEchartsComponent implements OnInit {
//支队查询
zhiFind(){
+ this.verifieds.oneEcharts.clear()
+ this.verifieds.oneEcharts.dispose()
this.echartsData.zhiorBuinding="zhi"
+ this.verifieds.getechartsdata(this.echartsData.dateYear,'1',this.echartsData.dateYear,'12')
}
//建筑类型查询
buildingFind(){
+ this.verifieds.oneEcharts.clear()
+ this.verifieds.oneEcharts.dispose()
this.echartsData.zhiorBuinding="building"
+ this.verifieds.getechartsdata(this.echartsData.dateYear,'1',this.echartsData.dateYear,'12')
}
@@ -329,34 +432,40 @@ export class publicEchartsComponent implements OnInit {
})
export class verifiedComponent implements OnInit {
- constructor(private router: Router,public echartsData:EchartsDataService,public snackBar: MatSnackBar) { }
+ constructor(private router: Router,public echartsData:EchartsDataService,public snackBar: MatSnackBar, private route: ActivatedRoute) { }
ngOnInit(): void {
window.setTimeout(()=>{
- this.qipaotishi=this.echartsData.qipao(this.qipaotishi,this.ydatayue,this.xdatayue)
- this.oneInit(this.xdatayue,this.ydatayue)
- //this.twoInit()
+ if(this.echartsData.scheduledUpdatesToggle==1){
+ this.getechartsdata(this.echartsData.dateYear,'1',this.echartsData.dateYear,'12')
+ }
+
},0)
+ console.log(this.echartsData.scheduledUpdatesToggle)
+ this.pieid=this.route.snapshot.queryParams.pieid
}
- /* ngOnDestroy () {
- this.oneEcharts.dispose()
- this.oneEcharts.clear()
- this.items.forEach((element,index) => {
- element.echart.dispose()
- element.echart.clear()
- });
- } */
- async changeTime (e){
+ ngOnDestroy () {
+ //this.oneEcharts.dispose()
+ //this.oneEcharts.clear()
+ }
+ pieid=this.route.snapshot.queryParams.pieid
+ //TimeType=0//按月查询还是按年查询
+ async changeTime (e,selectOneYear,nselectStartMoth,selectTwoYear,selectEndMonth){
+ console.log(e)
this.oneEcharts.clear()
this.oneEcharts.dispose()
this.qipaotishi=''
if(e=='year'){
- this.qipaotishi=this.echartsData.qipao(this.qipaotishi,this.ydataYear,this.xdataYear)
- this.oneInit(this.xdataYear,this.ydataYear)
+ this.echartsData.TimeType=1
+ this.qipaotishi=this.echartsData.qipao(this.qipaotishi,this.ydatayue,this.xdatayue)
+ selectOneYear=selectOneYear+'-01'
+ selectTwoYear+='-12'
+ this.getechartsdata(selectOneYear,nselectStartMoth,selectTwoYear,selectEndMonth)
}else{
+ this.echartsData.TimeType=0
this.qipaotishi=this.echartsData.qipao(this.qipaotishi,this.ydatayue,this.xdatayue)
- this.oneInit(this.xdatayue,this.ydatayue)
+ this.getechartsdata(selectOneYear,nselectStartMoth,selectTwoYear,selectEndMonth)
}
}
@@ -366,34 +475,81 @@ export class verifiedComponent implements OnInit {
ydatayue=[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
xdataYear=['2020','2021']
ydataYear=['0','0']
+ //获取后端数据
+ tabledata
+ async getechartsdata(selectStartYear,selectStartMonth,selectEndYear,selectEndMonth){
+ let Parameters={
+ MaintainedState:this.route.snapshot.queryParams.type,
+ TimeType:this.echartsData.TimeType,
+ TimeStart:this.echartsData.TimeType==0?selectStartYear+'-'+selectStartMonth:this.echartsData.dateYear+'-'+selectStartMonth,
+ TimeEnd:this.echartsData.TimeType==0?selectEndYear+'-'+selectEndMonth:this.echartsData.dateYear+'-'+selectEndMonth,
+ //OrganizationId
+ }
+ console.log(this.echartsData.zhiorBuinding)
+ if(this.echartsData.zhiorBuinding=="zhi"){
+ await this.echartsData.getData(Parameters,this.route.snapshot.queryParams.dwOryuan=='danwei'?
+ `/api/StatisticsAnalysis/Companies/Maintained/OrganizationTrend`:`/api/StatisticsAnalysis/Plans/Maintained/OrganizationTrend`)
+ this.tabledata=JSON.parse(JSON.stringify(this.echartsData.allDate))
+ console.log(this.tabledata)
+ this.xdatayue=[]
+ this.ydatayue=[]
+ this.tabledata[0].items.forEach(element => {
+ this.xdatayue.push(element.date)
+ this.ydatayue.push(element.count)
+ });
+ }else{
+ await this.echartsData.getData(Parameters,this.route.snapshot.queryParams.dwOryuan=='danwei'?
+ `/api/StatisticsAnalysis/Companies/Maintained/BuildingTypeTrend`:`/api/StatisticsAnalysis/Plans/Maintained/BuildingTypeTrend`)
+ this.tabledata=JSON.parse(JSON.stringify(this.echartsData.allDate))
+ console.log(this.tabledata)
+ this.xdatayue=[]
+ this.ydatayue=[]
+ this.tabledata[0].items.forEach(element => {
+ this.xdatayue.push(element.date)
+ this.ydatayue.push(element.count)
+ });
+ }
+
+ this.oneInit(this.xdatayue,this.ydatayue)
+ }
//提示框表格
- tableTooltip(dataArr,title:string){
- let data = dataArr
- //console.log(data)
- var res = ''+title+' '
- res+=' ';
- res+='';
- res+='名称 | ';
- res+='数量 | '
- res+='环比 | '
- res+='总占比 | '
- res+=' '
- res+='';
- for(var i=0;i'
- res+=''+data[i].name+' | '
- res+=''+data[i].number+' | '
- res+=''+data[i].zhanbi+' | '
- res+=''+data[i].zhanbi+' | '
+ tishiData
+ res
+ tableTooltip(datas){
+ this.tishiData=this.tabledata[0].items[0].organizations
+ var countall=0//总计
+ var countbi=0//站比
+ var allCountbi=0//总站比
+ for(var i=0;i'
- res+='总计 | 1356 | 19% | 19% | '
- res+=' '
- return res
+ this.res= ''+datas[0].axisValue+' '
+ this.res+=' ';
+ this.res+='';
+ this.res+='名称 | ';
+ this.res+='数量 | '
+ this.res+='总占比 | '
+ this.res+=' '
+ this.res+='';
+ for(var i=0;i'
+ if(this.echartsData.zhiorBuinding=='zhi'){
+ this.res+=''+ this.tishiData[i].organizationName+' | '
+ }else{
+ this.res+=''+ this.tishiData[i].buildingTypeName+' | '
+ }
+ this.res+=''+this.tishiData[i].count+' | '
+ this.res+=''+countbi+'% | '
+ }
+ this.res+=''
+ this.res+='总计 | '+countall+' | 100% | '
+ this.res+=' '
+ return this.res
}
+ //图形数据
oneInit (xdata,ydata) {
-
this.oneEcharts = echarts.init(document.getElementById('center'),'walden');
var option = {
grid: {
@@ -404,7 +560,7 @@ export class verifiedComponent implements OnInit {
},
// 标题
title: {
- text: '已核查'+'总数:(0)',
+ text: `已核查 总数:(${this.tabledata[0].totalCount})`,
top: -4,
left: 'center',
textStyle:{
@@ -420,7 +576,8 @@ export class verifiedComponent implements OnInit {
borderWidth:'1',
borderRadius :'0', */
formatter: (params)=>{
- return this.echartsData.zhiorBuinding=="zhi"?this.echartsData.tableTooltip(this.echartsData.tableDataZhi,params[0].name):this.echartsData.tableTooltip(this.echartsData.buildingType,params[0].name)
+ return this.tableTooltip(params)
+ //return this.echartsData.zhiorBuinding=="zhi"?this.echartsData.tableTooltip(this.echartsData.tableDataZhi,params[0].name):this.echartsData.tableTooltip(this.echartsData.buildingType,params[0].name)
},
position:this.echartsData.tableTooltipNoShow2
},
@@ -490,15 +647,19 @@ export class verifiedComponent implements OnInit {
let xIndex=this.oneEcharts.convertFromPixel({seriesIndex:0},[params.offsetX, params.offsetY])[0];
/*事件处理代码书写位置*/
this.echartsData.scheduledUpdatesType = 0
+ this.echartsData.scheduledUpdatesToggle = 2
//this.echartsData.scheduledUpdatesName = "ff"
- this.echartsData.zhiorBuinding!="zhi"?this.echartsData.scheduledUpdatesToggle = -2:this.echartsData.level=='0'? this.echartsData.scheduledUpdatesToggle = 2:this.echartsData.level=='1'?this.echartsData.scheduledUpdatesToggle = 3:''
+ //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
+
+ if(this.echartsData.level=='0'&&this.tabledata[0].items[xIndex].organizations.length>=1){
this.echartsData.scheduledUpdatesToggle = 2
- }else if(this.echartsData.level=='1'){
- this.echartsData.scheduledUpdatesToggle = 3
+ //this.echartsData.time=xIndex
+ //this.router.navigateByUrl(`/statisticanalysis/scheduledUpdates/PublicEcharts?type=${this.route.snapshot.queryParams.type}&TimeType=${this.TimeType}`);
+ }else if(this.echartsData.level=='1' &&this.tabledata[0].items[xIndex].organizations.length>=1){
+ this.echartsData.scheduledUpdatesToggle = 2//原来是3
}
}else{
this.echartsData.findShow=true
@@ -519,141 +680,13 @@ export class verifiedComponent implements OnInit {
});
this.oneEcharts.setOption(option);
+
}
months:any = ['一月','二月','三月','四月','五月','六月','七月','八月','九月','十月','十一月','十二月']
echartIds:any = ['one','two','three','four','five','six','seven','eight','nine','ten','eleven','twelve']
items:any = [{echart:null},{echart:null},{echart:null},{echart:null},{echart:null},{echart:null},{echart:null},{echart:null},{echart:null},{echart:null},{echart:null},{echart:null}]
- twoInit () {
- this.months.forEach((element,index) => {
- this.items[index].echart = echarts.init(document.getElementById(this.echartIds[index]), 'skinUpp');
- var option = {
- title: {
- text: element+'总数:(500)',
- top: -4,
- left: '35%',
- textStyle:{
- color:'#000',
- fontSize: 30,
- }
- },
- //提示框
- tooltip: {
- trigger: 'axis',
- textStyle:{
- fontSize :18
- }
- },
- legend: {
- data: ['平均值','平均值2倍','平均值3倍', '已核查无需修改', '已核查修改中', '已核查提交审核'],
- textStyle: { fontSize :16,color: '#000' }
- },
- xAxis: [{
- axisLabel: {
- textStyle:{
- fontSize :18,
- color:'#000000'
- },
- color: "#000", //刻度线标签颜色
- },
- //设置坐标轴字体颜色和宽度
- axisLine: {
- lineStyle: {color: "#000",}
- },
- type: 'category',
- data: ['浦东支队','黄浦支队','徐汇支队','长宁支队','静安支队','普陀支队','虹口支队','杨浦支队','闵行支队','宝山支队','嘉定支队','崇明支队','金山支队'],
- axisPointer: {type: 'shadow'}
- }],
- yAxis: [
- {
- //设置坐标轴字体颜色和宽度
- axisLine: {
- lineStyle:{
- color:'#000000'
- }
- },
- type: 'value',
- axisLabel: {
- textStyle:{
- fontSize :18,
- color:'#000000'
- },
- color: "#000", //刻度线标签颜色
- formatter: '{value}'
- }
- },
- // {
- // //设置坐标轴字体颜色和宽度
- // axisLine: {
- // lineStyle: {color: "#000"},
- // },
- // type: 'value',
- // name: '个',
- // axisLabel: {
- // color: "#000", //刻度线标签颜色
- // formatter: '{value}'
- // }
- // }
- ],
- series: [
- {
- name: '已核查无需修改',
- type: 'bar',
- stack: '总数',
- data: [68, 56, 69, 57, 43, 79, 78, 66, 49, 34, 49, 78, 45],
- barWidth :'38',
- },
- {
- name: '已核查修改中',
- type: 'bar',
- stack: '总数',
- data: [39, 3, 4, 7, 3, 2, 3, 4, 29, 40, 40, 2, 4],
- itemStyle:{color: '#626c91'}
- },
- {
- name: '已核查提交审核',
- type: 'bar',
- stack: '总数',
- data: [48, 2, 3, 3, 4, 3, 2, 26, 4, 3, 3, 24, 14],
- itemStyle:{color:'#c4ebad'}
- },
- {
- name: '平均值',
- type: 'line',
- // yAxisIndex: 1,
- data: [49, 45, 53, 47, 49, 43, 48, 41, 38, 39, 41, 43, 37],
- itemStyle:{color: '#FFDC35'}
- },
- {
- name: '平均值2倍',
- type: 'line',
- // yAxisIndex: 1,
- data: [98, 90, 106, 94, 98, 86, 96, 82, 76, 78, 82, 86, 74],
- itemStyle:{color: '#6be6c1'}
- },
- {
- name: '平均值3倍',
- type: 'line',
- // yAxisIndex: 1,
- data: [143, 135, 159, 143, 127, 144, 144, 123, 114, 117, 124, 129, 111],
- itemStyle:{color: '#999'}
- },
- ]
- };
- this.items[index].echart.setOption(option);
- this.items[index].echart.on('click', (params) => {
- let xIndex=this.items[index].echart.convertFromPixel({seriesIndex:0},[params.offsetX, params.offsetY])[0];
- this.echartsData.scheduledUpdatesType = 0
- this.echartsData.scheduledUpdatesName = this.months[index]
- //this.echartsData.scheduledUpdatesToggle = false
- this.echartsData.scheduledUpdatesXName=params.name
- //console.log(this.echartsData.scheduledUpdatesXName)
- });
- });
- }
-
-
}
@@ -792,12 +825,14 @@ export class yueDateComponent implements OnInit {
level:string;
ngOnInit(): void {
+ //console.log(this.echartsData.scheduledUpdatesToggle)
this.router.queryParams.subscribe(param=>{
this.level=param.level
});
window.setTimeout(()=>{
- this.twoInit()
+ this.getechartsdata()
+
},0)
}
@@ -805,15 +840,98 @@ export class yueDateComponent implements OnInit {
this.oneEcharts.dispose()
this.oneEcharts.clear()
}
- zhiNameData = ["浦东支队","黄浦支队","徐汇支队","长宁支队","静安支队","普陀支队","虹口支队","杨浦支队","闵行支队","宝山支队","嘉定支队","松江支队","金山支队","崇明支队"]
- buildingData=["高层","地下","轨道交通","化工生产","储罐类","厂房","古建筑","商市场","医院","学校","宾馆","娱乐场所","餐饮业","影剧院","展览建筑","隧道"]
-
+ zhiNameData = []
+ //buildingData=["高层","地下","轨道交通","化工生产","储罐类","厂房","古建筑","商市场","医院","学校","宾馆","娱乐场所","餐饮业","影剧院","展览建筑","隧道"]
+
+ //获取后端数据
+ tabledata
+ organizationId=[]
+ ynum=[]
+ OrganizationIds=''//点击的组织
+ async getechartsdata(){
+ if(this.router.snapshot.queryParams.pieid!='pieTwo'){
+ let Parameters={
+ MaintainedState:this.router.snapshot.queryParams.type,
+ TimeType:this.echartsData.TimeType,
+ TimeStart:this.echartsData.scheduledUpdatesXName+'-01',
+ TimeEnd:this.echartsData.scheduledUpdatesXName+'-12',
+ OrganizationId:this.OrganizationIds
+ }
+ //console.log(this.echartsData.zhiorBuinding)
+ await this.echartsData.getData(Parameters,this.echartsData.zhiorBuinding=='zhi'? `/api/StatisticsAnalysis/Companies/Maintained/OrganizationTrend`:`/api/StatisticsAnalysis/Companies/Maintained/BuildingTypeTrend`)
+ this.tabledata=JSON.parse(JSON.stringify(this.echartsData.allDate))
+ console.log(this.tabledata)
+ this.zhiNameData=[]
+ this.ynum=[]
+ this.organizationId=[]
+ this.tabledata[0].items[0].organizations.forEach(element => {
+ this.zhiNameData.push(this.echartsData.zhiorBuinding=='zhi'? element.organizationName:element.buildingTypeName)
+ this.ynum.push(element.count)
+ this.organizationId.push(this.echartsData.zhiorBuinding=='zhi'? element.organizationId:element.buildingTypeId)
+ //this.ydatayue.push(element.count)
+ });
+ this.tiaoshiPao=this.echartsData.qipao(this.tiaoshiPao,this.ynum,this.zhiNameData)
+ this.twoInit()
+ }else{
+ let Parameters={
+ MaintenanceState:this.router.snapshot.queryParams.type,
+ //TimeEnd:this.echartsData.TimeType==0?selectEndYear+'-'+selectEndMonth:selectEndYear,
+ OrganizationId:this.OrganizationIds
+ }
+ await this.echartsData.getData(Parameters,this.echartsData.zhiorBuinding=='zhi'? `/api/StatisticsAnalysis/Companies/Maintenance`:`/api/StatisticsAnalysis/Plans/Maintenance`)
+ this.tabledata=JSON.parse(JSON.stringify(this.echartsData.allDate))
+ console.log(this.tabledata)
+ this.zhiNameData=[]
+ this.ynum=[]
+ this.organizationId=[]
+ if(this.router.snapshot.queryParams.type=='1'){
+ this.tabledata[0].unMaintainCount.organizationCounts.forEach(element => {
+ this.zhiNameData.push(this.echartsData.zhiorBuinding=='zhi'? element.organizationName:element.buildingTypeName)
+ this.ynum.push(element.count)
+ this.organizationId.push(this.echartsData.zhiorBuinding=='zhi'? element.organizationId:element.buildingTypeId)
+ //this.ydatayue.push(element.count)
+ });
+ }else if(this.router.snapshot.queryParams.type=='2'){
+ this.tabledata[0].maintainedCount.organizationCounts.forEach(element => {
+ this.zhiNameData.push(this.echartsData.zhiorBuinding=='zhi'? element.organizationName:element.buildingTypeName)
+ this.ynum.push(element.count)
+ this.organizationId.push(this.echartsData.zhiorBuinding=='zhi'? element.organizationId:element.buildingTypeId)
+ //this.ydatayue.push(element.count)
+ });
+ }else if(this.router.snapshot.queryParams.type=='3'){
+ this.tabledata[0].maintainingCount.organizationCounts.forEach(element => {
+ this.zhiNameData.push(this.echartsData.zhiorBuinding=='zhi'? element.organizationName:element.buildingTypeName)
+ this.ynum.push(element.count)
+ this.organizationId.push(this.echartsData.zhiorBuinding=='zhi'? element.organizationId:element.buildingTypeId)
+ //this.ydatayue.push(element.count)
+ });
+ }
+
+ this.tiaoshiPao=this.echartsData.qipao(this.tiaoshiPao,this.ynum,this.zhiNameData)
+ this.twoInit()
+ }
+
+ }
+ tiaoshiPao:any
+ //气泡提示数据获取
+ bianli(){
+ var arrshuzu='[';
+ for(var i=0;i{
+ console.log(params)
+ if(params[0].axisValue.indexOf('救援站')==-1){
+ if(this.router.snapshot.queryParams.pieid=='pieTwo'){
+ return this.echartsData.zhiorBuinding=='zhi'? this.echartsData.weihuTooltipRight(params,this.router.snapshot.queryParams.type):''
+ }else{
+ return this.echartsData.zhiorBuinding=='zhi'? this.echartsData.weihuTooltip(params):''
+ }
+ }
+
+
+ //return this.echartsData.zhiorBuinding=="zhi"?this.echartsData.tableTooltip(this.echartsData.tableDataZhi,params[0].name):this.echartsData.tableTooltip(this.echartsData.buildingType,params[0].name)
+ },
+ position:this.echartsData.tableTooltipNoShow2
},
legend: {
right:10,
data: this.echartsData.zhuXname,
textStyle: { fontSize :16,color: '#000' }
},
- xAxis: [{
+ xAxis: {
+ id:this.organizationId,
axisLabel: {
textStyle:{
fontSize :18,
@@ -849,8 +987,8 @@ export class yueDateComponent implements OnInit {
type: 'category',
data:this.zhiNameData,
axisPointer: {type: 'shadow'}
- }],
- yAxis: [
+ },
+ yAxis:
{
//设置坐标轴字体颜色和宽度
axisLine: {
@@ -880,74 +1018,23 @@ export class yueDateComponent implements OnInit {
// formatter: '{value}'
// }
// }
- ],
+
series: [
{
- name: this.echartsData.zhuXname[1],
+ //name: this.echartsData.zhuXname[1],
type: 'bar',
- stack: '总数',
- data: this.echartsData.zhiorBuinding=="zhi"?[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0]:[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
+ //stack: '总数',
+ data: this.ynum,
barWidth :'38',
+ backgroundStyle: {
+ color: 'rgba(220, 220, 220, 0.8)'
},
- {
- name: this.echartsData.zhuXname[2],
- type: 'bar',
- stack: '总数',
- data: this.echartsData.zhiorBuinding=="zhi"?[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0]:[0, 0, 0, 0, 0,0, 0, 0, 0, 0, 0, 0, 0,0,0,0],
- itemStyle:{color: '#626c91'}
- },
- {
- name: this.echartsData.zhuXname[3],
- type: 'bar',
- stack: '总数',
- data: this.echartsData.zhiorBuinding=="zhi"?[0, 0, 0,0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0]:[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0],
- itemStyle:{color:'#c4ebad'}
- },
- {
- name: this.echartsData.zhuXname[0],
- type: 'line',
- // yAxisIndex: 1,
- data: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0],
- itemStyle:{color: '#FFDC35'}
- },
- {
- //name: '与上个月环比',
- type: 'line',
- // yAxisIndex: 1,
- data: [0, 0, 0, 0, 0, 0, 0, 0, 0,0, 0, 0, 0,0],
- //itemStyle:{color: '#6be6c1'},
-
+ markPoint: {
+ data: this.tiaoshiPao
+ },
},
- /* {
- //name: '警报',
- type: 'effectScatter',
- //coordinateSystem: 'cartesian2d',
- data: [[0,0]],
- symbolSize:30,
- itemStyle: {
- normal: {
- color: 'red',
- shadowBlur: 10,
- shadowColor: '#333'
- }
- },
-
- }, */
- /* {
- name: '平均值2倍',
- type: 'line',
- // yAxisIndex: 1,
- data: [98, 90, 106, 94, 98, 86, 96, 82, 76, 78, 82, 86, 74],
- itemStyle:{color: '#6be6c1'}
- },
- {
- name: '平均值3倍',
- type: 'line',
- // yAxisIndex: 1,
- data: [143, 135, 159, 143, 127, 144, 144, 123, 114, 117, 124, 129, 111],
- itemStyle:{color: '#999'}
- }, */
+
]
};
this.oneEcharts.setOption(option);
@@ -965,11 +1052,33 @@ export class yueDateComponent implements OnInit {
if (this.oneEcharts.containPixel('grid',pointInPixel)) {
let xIndex=this.oneEcharts.convertFromPixel({seriesIndex:0},[params.offsetX, params.offsetY])[0];
/*事件处理代码书写位置*/
- this.echartsData.scheduledUpdatesType = 0
- //console.log(option.xAxis)
- this.echartsData.scheduledUpdatesName = option.xAxis[0].data[xIndex]
- this.echartsData.scheduledUpdatesToggle = 3
- //this.echartsData.scheduledUpdatesXName=option.xAxis.data[xIndex]
+ if(this.echartsData.zhiorBuinding=='zhi'&&this.router.snapshot.queryParams.pieid=='pie'){
+ this.OrganizationIds=option.xAxis.id[xIndex]
+ this.getechartsdata()
+ if(this.tabledata[0].items.length>=1){
+ this.oneEcharts.dispose()
+ this.oneEcharts.clear()
+ //this.getechartsdata()
+ }
+
+ /* this.echartsData.scheduledUpdatesType = 0
+ this.echartsData.scheduledUpdatesName = option.xAxis.data[xIndex]
+ this.echartsData.scheduledUpdatesToggle = 3
+ console.log(option.xAxis.id[xIndex]) */
+ }else if(this.echartsData.zhiorBuinding=='zhi'&&this.router.snapshot.queryParams.pieid=='pieTwo'){
+ this.OrganizationIds=option.xAxis.id[xIndex]
+ //console.log(xIndex,option.xAxis.id[xIndex],this.organizationId)
+ this.getechartsdata()
+ if((this.router.snapshot.queryParams.type=='1'&&this.tabledata[0].unMaintainCount.organizationCounts.length>=1)
+ ||(this.router.snapshot.queryParams.type=='2'&&this.tabledata[0].maintainedCount.organizationCounts.length>=1)
+ ||(this.router.snapshot.queryParams.type=='3'&&this.tabledata[0].maintainingCount.organizationCounts.length>=1)){
+ this.oneEcharts.dispose()
+ this.oneEcharts.clear()
+ //this.getechartsdata()
+ }
+
+ }
+
}
});
@@ -1009,6 +1118,41 @@ export class yuebuildingDateComponent implements OnInit {
zhiNameData = ["浦东支队","黄浦支队","徐汇支队","长宁支队","静安支队","普陀支队","虹口支队","杨浦支队","闵行支队","宝山支队","嘉定支队","松江支队","金山支队","崇明支队"]
buildingData=["高层","地下","轨道交通","化工生产","储罐类","厂房","古建筑","商市场","医院","学校","宾馆","娱乐场所","餐饮业","影剧院","展览建筑","隧道"]
+ //获取后端数据
+ tabledata
+ async getechartsdata(selectStartYear,selectStartMonth,selectEndYear,selectEndMonth){
+ let Parameters={
+ MaintainedState:this.router.snapshot.queryParams.type,
+ TimeType:this.echartsData.TimeType,
+ TimeStart:this.echartsData.scheduledUpdatesXName,
+ //TimeEnd:this.echartsData.TimeType==0?selectEndYear+'-'+selectEndMonth:selectEndYear,
+ //OrganizationId
+ }
+ console.log(this.echartsData.zhiorBuinding)
+ if(this.echartsData.zhiorBuinding=="zhi"){
+ await this.echartsData.getData(Parameters,`/api/StatisticsAnalysis/Companies/Maintained/OrganizationTrend`)
+ this.tabledata=JSON.parse(JSON.stringify(this.echartsData.allDate))
+ console.log(this.tabledata)
+ this.zhiNameData=[]
+ /* this.ydatayue=[]
+ this.tabledata[0].items.forEach(element => {
+ this.zhiNameData.push(element.date)
+ this.ydatayue.push(element.count)
+ }); */
+ }else{
+ await this.echartsData.getData(Parameters,`/api/StatisticsAnalysis/Companies/Maintained/BuildingTypeTrend`)
+ this.tabledata=JSON.parse(JSON.stringify(this.echartsData.allDate))
+ console.log(this.tabledata)
+ /* this.xdatayue=[]
+ this.ydatayue=[]
+ this.tabledata[0].items.forEach(element => {
+ this.xdatayue.push(element.date)
+ this.ydatayue.push(element.count)
+ }); */
+ }
+
+ //this.oneInit(this.xdatayue,this.ydatayue)
+ }
oneEcharts:any;
twoInit () {
this.oneEcharts = echarts.init(document.getElementById("center"), 'skinUpp');
diff --git a/src/index.html b/src/index.html
index 7aab4f9..2ccf502 100644
--- a/src/index.html
+++ b/src/index.html
@@ -23,10 +23,10 @@
|