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 88654b1..c973350 100644
--- a/src/app/plan-management/pass-plan/pass-plan.component.ts
+++ b/src/app/plan-management/pass-plan/pass-plan.component.ts
@@ -117,6 +117,11 @@ export class PassPlanComponent implements OnInit {
allPlanInfo:any //存储所有预案信息
//获得所有预案信息
getAllPlanInfo(){
+ let reservePlanType
+ this.reservePlanType ? reservePlanType = JSON.parse(JSON.stringify(this.reservePlanType)) : reservePlanType = ''
+ if(this.reservePlanType && this.reservePlanType.length != 0){
+ reservePlanType = eval(this.reservePlanType.join("|"))
+ }
let paramsdata:any = {
CompanyName: this.companyName || '',
OrganizationId: this.jsId || '',
@@ -130,7 +135,8 @@ export class PassPlanComponent implements OnInit {
CreationTimeRangeEnd:this.endtime||'',
PageNumber: this.PageNumber || '1',
PageSize: this.pageSizeOptions[0],
- Sort: ''
+ Sort: '',
+ PlanCategories:this.planCategory
}
this.http.get("/api/ApprovedPlans",{params:paramsdata}).subscribe((data:any)=>{
this.length = data.totalCount
@@ -458,6 +464,7 @@ export class PassPlanComponent implements OnInit {
reservePlanType:any //预案类型
preparelevel:any //编制级别
plcheck:boolean //编制级别勾选框
+ planCategory=[]//预案级别
//重置
reset(){
this.companyName = ''
@@ -473,6 +480,7 @@ export class PassPlanComponent implements OnInit {
//重新获取初始化列表
this.pageEvent.pageIndex = 0
this.PageNumber = 1
+ this.planCategory=[]
this.getAllPlanInfo();
}
}
diff --git a/src/app/statistic-analysis/echarts-data.service.ts b/src/app/statistic-analysis/echarts-data.service.ts
index 42f1e30..7b059c7 100644
--- a/src/app/statistic-analysis/echarts-data.service.ts
+++ b/src/app/statistic-analysis/echarts-data.service.ts
@@ -117,15 +117,7 @@ export class EchartsDataService {
{name:"十二月",number:"122",zhanbi:"1.6%"}/* ,
{name:"总计",number:"984",zhanbi:"20%"} */
]
- //预案提示框
- planData = [
- {name:"预案新增",number:"156",zhanbi:"19%"},
- {name:"预案审核通过",number:"144",zhanbi:"21%"},
- {name:"预案编制",number:"133",zhanbi:"20%"},
- {name:"预案审核退回",number:"122",zhanbi:"17%"},
- {name:"预案审核中",number:"120",zhanbi:"23%"}/* ,
- {name:"总计",number:"561",zhanbi:"100%"}, */
- ]
+
//提示框表格
tableTooltip(dataArr,title:string){
diff --git a/src/app/statistic-analysis/scheduled-updates/publicEcharts.html b/src/app/statistic-analysis/scheduled-updates/publicEcharts.html
index e81dfc0..71d89d8 100644
--- a/src/app/statistic-analysis/scheduled-updates/publicEcharts.html
+++ b/src/app/statistic-analysis/scheduled-updates/publicEcharts.html
@@ -4,12 +4,12 @@
* @Author: sueRimn
* @Date: 2020-09-05 08:59:24
* @LastEditors: sueRimn
- * @LastEditTime: 2020-12-28 16:21:07
+ * @LastEditTime: 2021-04-08 16:12:48
-->
'
return res
}
- oneInit () {
+ oneInit (xdata,ydata) {
this.oneEcharts = echarts.init(document.getElementById('center'),'walden');
var option = {
@@ -326,7 +410,7 @@ export class verifiedComponent implements OnInit {
xAxis: {
type: 'category',
boundaryGap:true,
- data: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月','9月','10月','11月','12月'],
+ data:xdata,
axisLabel:{
textStyle:{
fontSize :18,
@@ -370,7 +454,7 @@ export class verifiedComponent implements OnInit {
symbolSize:[65, 65],
data: this.qipaotishi
},
- data: [1170, 953, 1144, 799, 789, 773, 660, 998, 790, 1004, 1345, 1245],
+ data:ydata,
clickable:false,
}
],
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 1852b4c..cd41681 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-04-01 14:22:36
+ * @LastEditTime: 2021-04-08 13:43:50
*/
import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
@@ -55,7 +55,7 @@ export class PageOneComponent implements OnInit {
indexData
initCharts(){
this.tabledata=JSON.parse(JSON.stringify(this.echartsData.allDate))
- // console.log(this.tabledata)
+ console.log(this.tabledata)
var ec = echarts as any;
this.indexBzt = ec.init(document.getElementById('indexBzt'),'walden');
@@ -109,11 +109,11 @@ export class PageOneComponent implements OnInit {
},
data: [
- {value: this.tabledata[0].plansStatuses[0].count, name: '预案新增',type:1,planStatusName:this.tabledata[0].plansStatuses[0].planStatusName},
- {value: this.tabledata[0].plansStatuses[2].count, name: '预案审核通过',itemStyle:{color:'#02A7F0'},type:3,planStatusName:this.tabledata[0].plansStatuses[2].planStatusName},
- {value: this.tabledata[0].plansStatuses[4].count, name: '预案编制',type:5,planStatusName:this.tabledata[0].plansStatuses[4].planStatusName},
- {value: this.tabledata[0].plansStatuses[3].count, name: '预案审核退回',type:4,planStatusName:this.tabledata[0].plansStatuses[3].planStatusName},
- {value: this.tabledata[0].plansStatuses[1].count, name: '预案审核中',type:2,planStatusName:this.tabledata[0].plansStatuses[1].planStatusName}
+ {value:this.tabledata[0].plansStatuses[0]!=undefined? this.tabledata[0].plansStatuses[0].count:0, name: '预案新增',type:1,planStatusName:this.tabledata[0].plansStatuses[0]!=undefined?this.tabledata[0].plansStatuses[0].planStatusName:''},
+ {value:this.tabledata[0].plansStatuses[2]!=undefined? this.tabledata[0].plansStatuses[2].count:0, name: '预案审核通过',itemStyle:{color:'#02A7F0'},type:3,planStatusName:this.tabledata[0].plansStatuses[2]!=undefined? this.tabledata[0].plansStatuses[2].planStatusName:''},
+ {value:this.tabledata[0].plansStatuses[4]!=undefined?this.tabledata[0].plansStatuses[4].count:0, name: '预案编制',type:5,planStatusName:this.tabledata[0].plansStatuses[4]!=undefined?this.tabledata[0].plansStatuses[4].planStatusName:''},
+ {value:this.tabledata[0].plansStatuses[3]!=undefined? this.tabledata[0].plansStatuses[3].count:0, name: '预案审核退回',type:4,planStatusName:this.tabledata[0].plansStatuses[3]!=undefined? this.tabledata[0].plansStatuses[3].planStatusName:''},
+ {value:this.tabledata[0].plansStatuses[1]!=undefined? this.tabledata[0].plansStatuses[1].count:0, name: '预案审核中',type:2,planStatusName:this.tabledata[0].plansStatuses[1]!=undefined? this.tabledata[0].plansStatuses[1].planStatusName:''}
],
emphasis: {
itemStyle: {
diff --git a/src/app/statistic-analysis/state/page-two-time/page-two-time.component.scss b/src/app/statistic-analysis/state/page-two-time/page-two-time.component.scss
index d0c1957..2137a6d 100644
--- a/src/app/statistic-analysis/state/page-two-time/page-two-time.component.scss
+++ b/src/app/statistic-analysis/state/page-two-time/page-two-time.component.scss
@@ -63,7 +63,7 @@
width: 88px;
height: 36px;
}
- margin-right:4%;
+ margin-left:4%;
}
@media screen and (max-device-width:1200px){
justify-content: center;