From ef33591de9919a6551922cf3b0f495586154a5a5 Mon Sep 17 00:00:00 2001
From: cpf <1105965053@qq.com>
Date: Fri, 4 Sep 2020 14:27:01 +0800
Subject: [PATCH 1/3] =?UTF-8?q?[=E5=AE=8C=E5=96=84]=20=E8=AE=A1=E5=88=92?=
=?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=BB=9F=E8=AE=A1=20=E5=88=9D=E6=AD=A5?=
=?UTF-8?q?=E5=AE=8C=E6=88=90?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../echarts-data.service.ts | 7 +-
.../detailedInformation.html | 1 +
.../scheduled-updates/moreTable.html | 0
.../scheduled-updates/notVerified.html | 16 +
.../scheduled-updates/publicEcharts.html | 25 +
.../scheduled-updates.component.html | 4 +-
.../scheduled-updates.component.scss | 11 +
.../scheduled-updates.component.ts | 735 +++++++++++++++++-
.../scheduled-updates/verified.html | 16 +
.../page-two-time.component.scss | 11 +-
.../statistic-analysis-routing.module.ts | 5 +-
.../statistic-analysis.module.ts | 4 +-
12 files changed, 827 insertions(+), 8 deletions(-)
create mode 100644 src/app/statistic-analysis/scheduled-updates/detailedInformation.html
create mode 100644 src/app/statistic-analysis/scheduled-updates/moreTable.html
create mode 100644 src/app/statistic-analysis/scheduled-updates/notVerified.html
create mode 100644 src/app/statistic-analysis/scheduled-updates/publicEcharts.html
create mode 100644 src/app/statistic-analysis/scheduled-updates/verified.html
diff --git a/src/app/statistic-analysis/echarts-data.service.ts b/src/app/statistic-analysis/echarts-data.service.ts
index b6a0ca3..0fae52b 100644
--- a/src/app/statistic-analysis/echarts-data.service.ts
+++ b/src/app/statistic-analysis/echarts-data.service.ts
@@ -9,7 +9,12 @@ export class EchartsDataService {
//预案状态分析
statefulInspectionName:string;
- statefulInspectionToggle:boolean = true; // true=显示所有柱状图 flase=显示当前点击柱状图
+ statefulInspectionToggle:boolean = true; // true=显示当前点击柱状图 flase=显示当前点击折现图
+
+ //计划更新统计
+ scheduledUpdatesType:number = 0; //已核查/未核查
+ scheduledUpdatesName:string;
+ scheduledUpdatesToggle:boolean = true; // 显示 当前点击 已核查/未核查
diff --git a/src/app/statistic-analysis/scheduled-updates/detailedInformation.html b/src/app/statistic-analysis/scheduled-updates/detailedInformation.html
new file mode 100644
index 0000000..dd6dc6c
--- /dev/null
+++ b/src/app/statistic-analysis/scheduled-updates/detailedInformation.html
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/app/statistic-analysis/scheduled-updates/moreTable.html b/src/app/statistic-analysis/scheduled-updates/moreTable.html
new file mode 100644
index 0000000..e69de29
diff --git a/src/app/statistic-analysis/scheduled-updates/notVerified.html b/src/app/statistic-analysis/scheduled-updates/notVerified.html
new file mode 100644
index 0000000..b562641
--- /dev/null
+++ b/src/app/statistic-analysis/scheduled-updates/notVerified.html
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/app/statistic-analysis/scheduled-updates/publicEcharts.html b/src/app/statistic-analysis/scheduled-updates/publicEcharts.html
new file mode 100644
index 0000000..de7dc90
--- /dev/null
+++ b/src/app/statistic-analysis/scheduled-updates/publicEcharts.html
@@ -0,0 +1,25 @@
+
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 e5a8cee..1f2f2b9 100644
--- a/src/app/statistic-analysis/scheduled-updates/scheduled-updates.component.html
+++ b/src/app/statistic-analysis/scheduled-updates/scheduled-updates.component.html
@@ -1 +1,3 @@
-计划更新
+
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 e69de29..12d4423 100644
--- a/src/app/statistic-analysis/scheduled-updates/scheduled-updates.component.scss
+++ b/src/app/statistic-analysis/scheduled-updates/scheduled-updates.component.scss
@@ -0,0 +1,11 @@
+.content {
+ width: 100%;
+ height: 93%;
+ overflow: hidden;
+ box-sizing: border-box;
+ padding: 10px 10px 20px 10px;
+ .center {
+ width: 100%;
+ height: 100%;
+ }
+}
\ No newline at end of file
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 fb946f6..3898241 100644
--- a/src/app/statistic-analysis/scheduled-updates/scheduled-updates.component.ts
+++ b/src/app/statistic-analysis/scheduled-updates/scheduled-updates.component.ts
@@ -1,4 +1,8 @@
import { Component, OnInit } from '@angular/core';
+import { Router } from '@angular/router';
+import {EchartsDataService} from '../echarts-data.service'
+import { MatDialog } from '@angular/material/dialog';
+declare var echarts: any;
@Component({
selector: 'app-scheduled-updates',
@@ -7,9 +11,738 @@ import { Component, OnInit } from '@angular/core';
})
export class ScheduledUpdatesComponent implements OnInit {
- constructor() { }
+ constructor(private router: Router) { }
ngOnInit(): void {
+ window.setTimeout(()=>{
+ this.initCharts()
+ })
}
+ /* 首页饼状图 */
+ initCharts(){
+ var indexBzt = echarts.init(document.getElementById('center'));
+ var options={
+ title: {
+ text: '计划更新统计(7100家)',
+ padding:[80,100],
+ left: 'center',
+ textStyle:{
+ fontSize:34
+ }
+ },
+ tooltip: {
+ trigger: 'item',
+ formatter: (params)=>{
+ // return this.biaogeTishi(params.name)
+ } ,
+ backgroundColor:'rgba(255,255,255,1)',//通过设置rgba调节背景颜色与透明度
+ borderWidth:'1',
+ borderRadius :'0'
+ },
+ legend: {
+ orient: 'vertical',
+ right: 150,
+ top:80,
+ itemWidth:60,
+ itemHeight:25,
+ textStyle:{
+ fontSize:28
+ },
+ data: ['已核查无需修改', '已核查修改中', '已核查提交审核', '未核查']
+ },
+ series: [{
+ name: '访问来源',
+ type: 'pie',
+ radius: '65%',
+ center: ['50%', '60%'],
+ label:{
+ normal:{
+ show:true,
+ position: 'inner',
+ fontSize:18,
+ formatter:'{d}% ({c}家)'
+ }},
+ data: [
+ {value: 2000, name: '已核查无需修改'},
+ {value: 2500, name: '已核查修改中',itemStyle:{color:'#02A7F0'}},
+ {value: 1900, name: '已核查提交审核',itemStyle:{color:'#87cebb'}},
+ {value: 700, name: '未核查'},],
+ emphasis: {
+ itemStyle: {
+ shadowBlur: 10,
+ shadowOffsetX: 0,
+ shadowColor: 'rgba(0, 0, 0, 0.5)'
+ }
+ }
+
+ }]
+ };
+ indexBzt.setOption(options);
+ indexBzt.on('click', (params) => {
+ this.router.navigateByUrl('/statisticanalysis/scheduledUpdates/PublicEcharts');
+ });
+ }
+
+
+
+}
+
+@Component({
+ selector: 'app-publicEcharts',
+ templateUrl: './publicEcharts.html',
+ styleUrls: ['../state/page-two-time/page-two-time.component.scss']
+})
+export class publicEchartsComponent implements OnInit {
+
+ constructor(private router: Router,public echartsData:EchartsDataService,public dialog: MatDialog,) { }
+
+ ngOnInit(): void {
+
+ }
+
+ isToggle:boolean = true; // 已核查/未核查
+
+ //已核查
+ verified () {
+ this.isToggle = true
+ this.echartsData.scheduledUpdatesToggle = true
+ }
+
+ //未核查
+ notVerified () {
+ this.isToggle = false
+ this.echartsData.scheduledUpdatesToggle = true
+ }
+
+ //更多 窗口
+ moreOpen () {
+ let dialogRef = this.dialog.open(moreTableComponent);
+ }
+
+
+
}
+
+
+
+//已核查组件
+@Component({
+ selector: 'app-verified',
+ templateUrl: './verified.html',
+ styleUrls: ['../state/page-two-time/page-two-time.component.scss']
+})
+export class verifiedComponent implements OnInit {
+
+ constructor(private router: Router,public echartsData:EchartsDataService) { }
+
+ ngOnInit(): void {
+ window.setTimeout(()=>{
+ this.oneInit()
+ this.twoInit()
+ },0)
+ }
+
+ ngOnDestroy () {
+ this.oneEcharts.clear()
+ this.items.forEach((element,index) => {
+ element.echart.clear()
+ });
+ }
+
+ oneEcharts:any;
+ oneInit () {
+ this.oneEcharts = echarts.init(document.getElementById('center'), 'skinUpp');
+ var option = {
+ grid: {
+ top: 50,
+ left:40,
+ right: 20,
+ bottom: 20,
+ },
+ // 标题
+ title: {
+ text: '已核查',
+ top: -4,
+ left: 'center',
+ textStyle:{
+ //文字颜色
+ color:'#000',
+ fontSize: 22,
+ }
+ },
+ //提示框
+ tooltip: {
+ trigger: 'axis',
+ },
+ // x轴
+ xAxis: {
+ type: 'category',
+ data: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月','9月','10月','11月','12月'],
+ boundaryGap: false,
+ axisLabel: {
+ color: "#000", //刻度线标签颜色
+ },
+ //设置坐标轴字体颜色和宽度
+ axisLine: {
+ lineStyle: {
+ color: "#000",
+ },
+ },
+ splitLine: {//分割线配置
+ show:true,
+ lineStyle: {
+ color: '#999',
+ }
+ }
+ },
+ // y轴
+ yAxis: {
+ type: 'value',
+ name: '个',
+ axisLabel: {
+ color: "#000" //刻度线标签颜色
+ },
+ //设置坐标轴字体颜色和宽度
+ axisLine: {
+ lineStyle: {
+ color: "#000",
+ }
+ }
+ },
+ // 数据
+ series: [{
+ name: '单位预案编制数量',
+ type: 'line',
+ data: [1170, 953, 1144, 799, 789, 773, 660, 998, 790, 1004, 1345, 1245],
+ }
+ ],
+ };
+ 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,
+ top: -4,
+ left: 'center',
+ textStyle:{
+ color:'#000',
+ fontSize: 18,
+ }
+ },
+ //提示框
+ tooltip: {
+ trigger: 'axis',
+ },
+ legend: {
+ data: ['平均值','平均值2倍','平均值3倍', '已核查无需修改', '已核查修改中', '已核查提交审核'],
+ textStyle: { color: '#000' }
+ },
+ xAxis: [{
+ axisLabel: {
+ color: "#000", //刻度线标签颜色
+ },
+ //设置坐标轴字体颜色和宽度
+ axisLine: {
+ lineStyle: {color: "#000",}
+ },
+ type: 'category',
+ data: ['浦东支队','黄浦支队','徐汇支队','长宁支队','静安支队','普陀支队','虹口支队','杨浦支队','闵行支队','宝山支队','嘉定支队','崇明支队','金山支队'],
+ axisPointer: {type: 'shadow'}
+ }],
+ yAxis: [
+ {
+ //设置坐标轴字体颜色和宽度
+ axisLine: {
+ lineStyle: {color: "#000"},
+ },
+ type: 'value',
+ name: '个',
+ axisLabel: {
+ color: "#000", //刻度线标签颜色
+ formatter: '{value}'
+ }
+ },
+ {
+ //设置坐标轴字体颜色和宽度
+ axisLine: {
+ lineStyle: {color: "#000"},
+ },
+ type: 'value',
+ name: '个',
+ axisLabel: {
+ color: "#000", //刻度线标签颜色
+ formatter: '{value}'
+ }
+ }
+ ],
+ series: [
+ {
+ name: '已核查无需修改',
+ type: 'bar',
+ data: [68, 56, 69, 57, 43, 79, 78, 66, 49, 34, 49, 78, 45],
+ },
+ {
+ name: '已核查修改中',
+ type: 'bar',
+ data: [39, 43, 49, 27, 53, 29, 38, 49, 29, 40, 40, 27, 54],
+ itemStyle:{color: '#DC143C'}
+ },
+ {
+ name: '已核查提交审核',
+ type: 'bar',
+ data: [48, 42, 43, 53, 47, 39, 25, 26, 54, 34, 39, 24, 14],
+ itemStyle:{color:'#00BB00'}
+ },
+ {
+ 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: '#FF00FF'}
+ },
+ {
+ 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) => {
+ this.echartsData.scheduledUpdatesType = 0
+ this.echartsData.scheduledUpdatesName = this.months[index]
+ this.echartsData.scheduledUpdatesToggle = false
+ });
+ });
+ }
+
+
+
+}
+
+
+
+//未核查组件
+@Component({
+ selector: 'app-notVerified',
+ templateUrl: './notVerified.html',
+ styleUrls: ['../state/page-two-time/page-two-time.component.scss']
+})
+export class notVerifiedComponent implements OnInit {
+
+ constructor(private router: Router,public echartsData:EchartsDataService) { }
+
+ ngOnInit(): void {
+ window.setTimeout(()=>{
+ this.oneInit()
+ this.twoInit()
+ },0)
+ }
+
+ ngOnDestroy () {
+ this.oneEcharts.clear()
+ this.items.forEach((element,index) => {
+ element.echart.clear()
+ });
+ }
+
+ oneEcharts:any;
+ oneInit () {
+ this.oneEcharts = echarts.init(document.getElementById('center'), 'skinUpp');
+ var option = {
+ grid: {
+ top: 50,
+ left:40,
+ right: 20,
+ bottom: 20,
+ },
+ // 标题
+ title: {
+ text: '未核查',
+ top: -4,
+ left: 'center',
+ textStyle:{
+ //文字颜色
+ color:'#000',
+ fontSize: 22,
+ }
+ },
+ //提示框
+ tooltip: {
+ trigger: 'axis',
+ },
+ // x轴
+ xAxis: {
+ type: 'category',
+ data: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月','9月','10月','11月','12月'],
+ boundaryGap: false,
+ axisLabel: {
+ color: "#000", //刻度线标签颜色
+ },
+ //设置坐标轴字体颜色和宽度
+ axisLine: {
+ lineStyle: {
+ color: "#000",
+ },
+ },
+ splitLine: {//分割线配置
+ show:true,
+ lineStyle: {
+ color: '#999',
+ }
+ }
+ },
+ // y轴
+ yAxis: {
+ type: 'value',
+ name: '个',
+ axisLabel: {
+ color: "#000" //刻度线标签颜色
+ },
+ //设置坐标轴字体颜色和宽度
+ axisLine: {
+ lineStyle: {
+ color: "#000",
+ }
+ }
+ },
+ // 数据
+ series: [{
+ name: '单位预案编制数量',
+ type: 'line',
+ data: [1245, 1345, 1004, 790, 998, 660, 773, 789, 799, 1144, 953, 1170,],
+ }
+ ],
+ };
+ 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,
+ top: -4,
+ left: 'center',
+ textStyle:{
+ color:'#000',
+ fontSize: 18,
+ }
+ },
+ //提示框
+ tooltip: {
+ trigger: 'axis',
+ },
+ legend: {
+ data: ['未核查'],
+ textStyle: { color: '#000' }
+ },
+ xAxis: [{
+ axisLabel: {
+ color: "#000", //刻度线标签颜色
+ interval: 0,
+ formatter:function(value){
+ var ret = "";//拼接加\n返回的类目项
+ var maxLength = 2;//每项显示文字个数
+ var valLength = value.length;//X轴类目项的文字个数
+ var rowN = Math.ceil(valLength / maxLength); //类目项需要换行的行数
+ if (rowN > 1) { //如果类目项的文字大于3,
+ for (var i = 0; i < rowN; i++) {
+ var temp = "";//每次截取的字符串
+ var start = i * maxLength;//开始截取的位置
+ var end = start + maxLength;//结束截取的位置
+ //这里也可以加一个是否是最后一行的判断,但是不加也没有影响,那就不加吧
+ temp = value.substring(start, end) + "\n";
+ ret += temp;
+ } //凭借最终的字符串
+ return ret;
+ }else {
+ return value;
+ }
+ } //function
+ },
+ //设置坐标轴字体颜色和宽度
+ axisLine: {
+ lineStyle: {color: "#000",}
+ },
+ type: 'category',
+ data: ['浦东支队','黄浦支队','徐汇支队','长宁支队','静安支队','普陀支队','虹口支队','杨浦支队','闵行支队','宝山支队','嘉定支队','崇明支队','金山支队'],
+ axisPointer: {type: 'shadow'}
+ }],
+ yAxis: [
+ {
+ //设置坐标轴字体颜色和宽度
+ axisLine: {
+ lineStyle: {color: "#000"},
+ },
+ type: 'value',
+ name: '个',
+ axisLabel: {
+ color: "#000", //刻度线标签颜色
+ formatter: '{value}'
+ }
+ }
+ ],
+ series: [
+ {
+ name: '未核查',
+ type: 'bar',
+ data: [48, 36, 49, 37, 33, 59, 58, 46, 39, 34, 39, 68, 45],
+ },
+ ]
+ };
+ this.items[index].echart.setOption(option);
+ this.items[index].echart.on('click', (params) => {
+ this.echartsData.scheduledUpdatesType = 1
+ this.echartsData.scheduledUpdatesName = this.months[index]
+ this.echartsData.scheduledUpdatesToggle = false
+ });
+ });
+ }
+
+
+
+}
+
+
+
+//echarts详情组件
+@Component({
+ selector: 'app-detailedInformation',
+ templateUrl: './detailedInformation.html',
+ styleUrls: ['../state/page-two-time/page-two-time.component.scss']
+})
+export class detailedInformationComponent implements OnInit {
+
+ constructor(private router: Router,public echartsData:EchartsDataService) { }
+
+ ngOnInit(): void {
+ window.setTimeout(()=>{
+ this.oneInit()
+ },0)
+ }
+
+ oneInit () {
+ let echart = echarts.init(document.getElementById('center'), 'skinUpp');
+ if (this.echartsData.scheduledUpdatesType ===0) { //已核查
+ var option = {
+ title: {
+ text: this.echartsData.scheduledUpdatesName,
+ top: -4,
+ left: 'center',
+ textStyle:{
+ color:'#000',
+ fontSize: 18,
+ }
+ },
+ //提示框
+ tooltip: {
+ trigger: 'axis',
+ },
+ legend: {
+ data: ['平均值','平均值2倍','平均值3倍', '已核查无需修改', '已核查修改中', '已核查提交审核'],
+ textStyle: { color: '#000' }
+ },
+ xAxis: [{
+ axisLabel: {
+ color: "#000", //刻度线标签颜色
+ },
+ //设置坐标轴字体颜色和宽度
+ axisLine: {
+ lineStyle: {color: "#000",}
+ },
+ type: 'category',
+ data: ['浦东支队','黄浦支队','徐汇支队','长宁支队','静安支队','普陀支队','虹口支队','杨浦支队','闵行支队','宝山支队','嘉定支队','崇明支队','金山支队'],
+ axisPointer: {type: 'shadow'}
+ }],
+ yAxis: [
+ {
+ //设置坐标轴字体颜色和宽度
+ axisLine: {
+ lineStyle: {color: "#000"},
+ },
+ type: 'value',
+ name: '个',
+ axisLabel: {
+ color: "#000", //刻度线标签颜色
+ formatter: '{value}'
+ }
+ },
+ {
+ //设置坐标轴字体颜色和宽度
+ axisLine: {
+ lineStyle: {color: "#000"},
+ },
+ type: 'value',
+ name: '个',
+ axisLabel: {
+ color: "#000", //刻度线标签颜色
+ formatter: '{value}'
+ }
+ }
+ ],
+ series: [
+ {
+ name: '已核查无需修改',
+ type: 'bar',
+ data: [68, 56, 69, 57, 43, 79, 78, 66, 49, 34, 49, 78, 45],
+ },
+ {
+ name: '已核查修改中',
+ type: 'bar',
+ data: [39, 43, 49, 27, 53, 29, 38, 49, 29, 40, 40, 27, 54],
+ itemStyle:{color: '#DC143C'}
+ },
+ {
+ name: '已核查提交审核',
+ type: 'bar',
+ data: [48, 42, 43, 53, 47, 39, 25, 26, 54, 34, 39, 24, 14],
+ itemStyle:{color:'#00BB00'}
+ },
+ {
+ 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: '#FF00FF'}
+ },
+ {
+ name: '平均值3倍',
+ type: 'line',
+ yAxisIndex: 1,
+ data: [143, 135, 159, 143, 127, 144, 144, 123, 114, 117, 124, 129, 111],
+ itemStyle:{color: '#999'}
+ },
+ ]
+ };
+ echart.setOption(option);
+ } else { //未核查
+ var options = {
+ title: {
+ text: this.echartsData.scheduledUpdatesName,
+ top: -4,
+ left: 'center',
+ textStyle:{
+ color:'#000',
+ fontSize: 18,
+ }
+ },
+ //提示框
+ tooltip: {
+ trigger: 'axis',
+ },
+ legend: {
+ data: ['未核查'],
+ textStyle: { color: '#000' }
+ },
+ xAxis: [{
+ axisLabel: {
+ color: "#000", //刻度线标签颜色
+ interval: 0,
+ formatter:function(value){
+ var ret = "";//拼接加\n返回的类目项
+ var maxLength = 2;//每项显示文字个数
+ var valLength = value.length;//X轴类目项的文字个数
+ var rowN = Math.ceil(valLength / maxLength); //类目项需要换行的行数
+ if (rowN > 1) { //如果类目项的文字大于3,
+ for (var i = 0; i < rowN; i++) {
+ var temp = "";//每次截取的字符串
+ var start = i * maxLength;//开始截取的位置
+ var end = start + maxLength;//结束截取的位置
+ //这里也可以加一个是否是最后一行的判断,但是不加也没有影响,那就不加吧
+ temp = value.substring(start, end) + "\n";
+ ret += temp;
+ } //凭借最终的字符串
+ return ret;
+ }else {
+ return value;
+ }
+ } //function
+ },
+ //设置坐标轴字体颜色和宽度
+ axisLine: {
+ lineStyle: {color: "#000",}
+ },
+ type: 'category',
+ data: ['浦东支队','黄浦支队','徐汇支队','长宁支队','静安支队','普陀支队','虹口支队','杨浦支队','闵行支队','宝山支队','嘉定支队','崇明支队','金山支队'],
+ axisPointer: {type: 'shadow'}
+ }],
+ yAxis: [
+ {
+ //设置坐标轴字体颜色和宽度
+ axisLine: {
+ lineStyle: {color: "#000"},
+ },
+ type: 'value',
+ name: '个',
+ axisLabel: {
+ color: "#000", //刻度线标签颜色
+ formatter: '{value}'
+ }
+ }
+ ],
+ series: [
+ {
+ name: '未核查',
+ type: 'bar',
+ data: [48, 36, 49, 37, 33, 59, 58, 46, 39, 34, 39, 68, 45],
+ },
+ ]
+ };
+ echart.setOption(options);
+ }
+ }
+
+
+
+}
+
+
+
+//更多资讯组件
+@Component({
+ selector: 'app-moreTable',
+ templateUrl: './moreTable.html',
+ styleUrls: ['./scheduled-updates.component.scss']
+})
+export class moreTableComponent implements OnInit {
+
+ constructor(private router: Router,public echartsData:EchartsDataService) { }
+
+ ngOnInit(): void {
+
+ }
+
+
+
+}
\ No newline at end of file
diff --git a/src/app/statistic-analysis/scheduled-updates/verified.html b/src/app/statistic-analysis/scheduled-updates/verified.html
new file mode 100644
index 0000000..acace8e
--- /dev/null
+++ b/src/app/statistic-analysis/scheduled-updates/verified.html
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
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 5bbff55..72fe17c 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
@@ -21,6 +21,7 @@
.header {
border-bottom: 1px solid #999;
height: 70px;
+ min-height: 70px;
box-sizing: border-box;
padding: 0 15px;
display: flex;
@@ -50,7 +51,15 @@
width: 50%;
display: inline-block;
box-sizing: border-box;
- padding: 20px;
+ padding: 10px;
+ margin: 10px 0;
+}
+.publicOneLineCss{
+ height: 350px;
+ width: 90%;
+ margin: 10px auto;
+ box-sizing: border-box;
+ padding: 10px;
}
//滚动条样式
diff --git a/src/app/statistic-analysis/statistic-analysis-routing.module.ts b/src/app/statistic-analysis/statistic-analysis-routing.module.ts
index 4ac378c..a8ac4a6 100644
--- a/src/app/statistic-analysis/statistic-analysis-routing.module.ts
+++ b/src/app/statistic-analysis/statistic-analysis-routing.module.ts
@@ -9,7 +9,7 @@ import { DeleteTwoComponent } from './deleteUnit/delete-two/delete-two.component
import { DeleteThereComponent } from './deleteUnit/delete-there/delete-there.component';
import { DeleteFourComponent } from './deleteUnit/delete-four/delete-four.component';
import { BuildingTypeOneComponent } from './buildingType/building-type-one/building-type-one.component';
-import {ScheduledUpdatesComponent} from './scheduled-updates/scheduled-updates.component'
+import {ScheduledUpdatesComponent,publicEchartsComponent} from './scheduled-updates/scheduled-updates.component'
const routes: Routes = [
{ path: 'statePageOne', component: PageOneComponent},
@@ -19,7 +19,8 @@ const routes: Routes = [
{ path: 'delete_there', component: DeleteThereComponent},
{ path: 'delete_four', component: DeleteFourComponent},
{ path: 'buildingType_one', component: BuildingTypeOneComponent},
- { path: 'scheduledUpdates', component: ScheduledUpdatesComponent}
+ { path: 'scheduledUpdates', component: ScheduledUpdatesComponent},
+ { path: 'scheduledUpdates/PublicEcharts', component: publicEchartsComponent}
];
@NgModule({
diff --git a/src/app/statistic-analysis/statistic-analysis.module.ts b/src/app/statistic-analysis/statistic-analysis.module.ts
index fbfec50..354c854 100644
--- a/src/app/statistic-analysis/statistic-analysis.module.ts
+++ b/src/app/statistic-analysis/statistic-analysis.module.ts
@@ -52,11 +52,11 @@ import { DeleteTwoComponent } from './deleteUnit/delete-two/delete-two.component
import { DeleteThereComponent } from './deleteUnit/delete-there/delete-there.component';
import { DeleteFourComponent } from './deleteUnit/delete-four/delete-four.component';
import { BuildingTypeOneComponent } from './buildingType/building-type-one/building-type-one.component';
-import { ScheduledUpdatesComponent } from './scheduled-updates/scheduled-updates.component';
+import { ScheduledUpdatesComponent,publicEchartsComponent,verifiedComponent,notVerifiedComponent,detailedInformationComponent,moreTableComponent } from './scheduled-updates/scheduled-updates.component';
@NgModule({
- declarations: [PageOneComponent, PageTwoTimeComponent, PageTwoNameComponent, PageZhongDuiDetailsComponent,echartsComponent, DeleteOneComponent, DeleteTwoComponent, DeleteThereComponent, DeleteFourComponent, BuildingTypeOneComponent, ScheduledUpdatesComponent],
+ declarations: [PageOneComponent, PageTwoTimeComponent, PageTwoNameComponent, PageZhongDuiDetailsComponent,echartsComponent, DeleteOneComponent, DeleteTwoComponent, DeleteThereComponent, DeleteFourComponent, BuildingTypeOneComponent, ScheduledUpdatesComponent,publicEchartsComponent,verifiedComponent,notVerifiedComponent,detailedInformationComponent,moreTableComponent],
imports: [
CommonModule,
StatisticAnalysisRoutingModule,
From 3d10c8caf462e620609a565d5167b544221652a6 Mon Sep 17 00:00:00 2001
From: cpf <1105965053@qq.com>
Date: Fri, 4 Sep 2020 14:42:40 +0800
Subject: [PATCH 2/3] =?UTF-8?q?[=E5=AE=8C=E5=96=84]=20=E5=A2=9E=E5=8A=A0?=
=?UTF-8?q?=E5=88=87=E6=8D=A2=E6=8C=89=E9=92=AE=E9=80=89=E4=B8=AD=E6=A0=B7?=
=?UTF-8?q?=E5=BC=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/app/statistic-analysis/echarts-data.service.ts | 1 +
.../statistic-analysis/scheduled-updates/publicEcharts.html | 4 ++--
.../state/page-two-time/page-two-time.component.html | 4 ++--
.../state/page-two-time/page-two-time.component.scss | 6 ++++++
4 files changed, 11 insertions(+), 4 deletions(-)
diff --git a/src/app/statistic-analysis/echarts-data.service.ts b/src/app/statistic-analysis/echarts-data.service.ts
index 19f1184..3fe81f8 100644
--- a/src/app/statistic-analysis/echarts-data.service.ts
+++ b/src/app/statistic-analysis/echarts-data.service.ts
@@ -17,6 +17,7 @@ export class EchartsDataService {
scheduledUpdatesToggle:boolean = true; // 显示 当前点击 已核查/未核查
+
//支队提示框
tableDataZhi = [
{name:"浦东支队",number:"156",zhanbi:"3%"},
diff --git a/src/app/statistic-analysis/scheduled-updates/publicEcharts.html b/src/app/statistic-analysis/scheduled-updates/publicEcharts.html
index de7dc90..63e86bd 100644
--- a/src/app/statistic-analysis/scheduled-updates/publicEcharts.html
+++ b/src/app/statistic-analysis/scheduled-updates/publicEcharts.html
@@ -9,8 +9,8 @@
- 已核查
- 未核查
+ 已核查
+ 未核查
diff --git a/src/app/statistic-analysis/state/page-two-time/page-two-time.component.html b/src/app/statistic-analysis/state/page-two-time/page-two-time.component.html
index 522e47e..09d6d0a 100644
--- a/src/app/statistic-analysis/state/page-two-time/page-two-time.component.html
+++ b/src/app/statistic-analysis/state/page-two-time/page-two-time.component.html
@@ -58,8 +58,8 @@
- 横向查询
- 纵向查询
+ 横向查询
+ 纵向查询
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 83c073e..2730abb 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
@@ -62,6 +62,12 @@
padding: 10px;
}
+//切换按钮 选中状态
+.selectButton{
+ background-color: #2196f3;
+ color: white;
+}
+
//滚动条样式
::-webkit-scrollbar{
width: 5px;
From 2560a38cd9b2082ee37f8e753dd5c31d0d789085 Mon Sep 17 00:00:00 2001
From: cpf <1105965053@qq.com>
Date: Fri, 4 Sep 2020 17:19:25 +0800
Subject: [PATCH 3/3] =?UTF-8?q?[=E5=AE=8C=E5=96=84]=20=E8=AE=A1=E5=88=92?=
=?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=BB=9F=E8=AE=A1=E5=AE=8C=E6=88=90,=20?=
=?UTF-8?q?=E8=BF=94=E5=9B=9E=E5=8A=9F=E8=83=BD=E5=AE=8C=E6=88=90?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../detailedInformation.html | 2 +-
.../scheduled-updates/moreTable.html | 24 ++
.../scheduled-updates/notVerified.html | 17 +-
.../scheduled-updates/publicEcharts.html | 5 +-
.../scheduled-updates.component.scss | 30 ++
.../scheduled-updates.component.ts | 345 +++++++-----------
.../state/page-one/page-one.component.ts | 2 -
.../page-two-time.component.html | 11 +-
.../page-two-time.component.scss | 2 +-
.../page-two-time/page-two-time.component.ts | 5 +
.../page-zhong-dui-details.component.ts | 1 -
11 files changed, 209 insertions(+), 235 deletions(-)
diff --git a/src/app/statistic-analysis/scheduled-updates/detailedInformation.html b/src/app/statistic-analysis/scheduled-updates/detailedInformation.html
index dd6dc6c..f675792 100644
--- a/src/app/statistic-analysis/scheduled-updates/detailedInformation.html
+++ b/src/app/statistic-analysis/scheduled-updates/detailedInformation.html
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/src/app/statistic-analysis/scheduled-updates/moreTable.html b/src/app/statistic-analysis/scheduled-updates/moreTable.html
index e69de29..76f2ca4 100644
--- a/src/app/statistic-analysis/scheduled-updates/moreTable.html
+++ b/src/app/statistic-analysis/scheduled-updates/moreTable.html
@@ -0,0 +1,24 @@
+
+
+
+
+
+ 支队
+ {{element.team}}
+
+
+
+ 标题
+ {{element.content}}
+
+
+
+ 时间
+ {{element.time}}
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/app/statistic-analysis/scheduled-updates/notVerified.html b/src/app/statistic-analysis/scheduled-updates/notVerified.html
index b562641..7807c0f 100644
--- a/src/app/statistic-analysis/scheduled-updates/notVerified.html
+++ b/src/app/statistic-analysis/scheduled-updates/notVerified.html
@@ -1,16 +1,3 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
+
+
\ No newline at end of file
diff --git a/src/app/statistic-analysis/scheduled-updates/publicEcharts.html b/src/app/statistic-analysis/scheduled-updates/publicEcharts.html
index 63e86bd..73238da 100644
--- a/src/app/statistic-analysis/scheduled-updates/publicEcharts.html
+++ b/src/app/statistic-analysis/scheduled-updates/publicEcharts.html
@@ -9,8 +9,9 @@
- 已核查
- 未核查
+ 返回
+ 已核查
+ 未核查
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 12d4423..7a94345 100644
--- a/src/app/statistic-analysis/scheduled-updates/scheduled-updates.component.scss
+++ b/src/app/statistic-analysis/scheduled-updates/scheduled-updates.component.scss
@@ -8,4 +8,34 @@
width: 100%;
height: 100%;
}
+}
+
+
+
+//table
+table {
+ width: 100%;
+ text-align: center;
+ .cdk-header-cell {
+ text-align: center;
+ }
+}
+.table {
+ width: 1000px;
+ height: 600px;
+ overflow: auto;
+ .tableHeader {
+ font-size: 24px;
+ text-align: center;
+ font-weight: 550;
+ }
+}
+
+//滚动条样式
+::-webkit-scrollbar{
+ width: 5px;
+ background-color: white;
+}
+::-webkit-scrollbar-thumb{
+ background-color: #999;
}
\ No newline at end of file
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 3898241..a3d8ed9 100644
--- a/src/app/statistic-analysis/scheduled-updates/scheduled-updates.component.ts
+++ b/src/app/statistic-analysis/scheduled-updates/scheduled-updates.component.ts
@@ -115,6 +115,11 @@ export class publicEchartsComponent implements OnInit {
this.echartsData.scheduledUpdatesToggle = true
}
+ //返回
+ goBack () {
+ this.echartsData.scheduledUpdatesToggle = true
+ }
+
//更多 窗口
moreOpen () {
let dialogRef = this.dialog.open(moreTableComponent);
@@ -199,7 +204,6 @@ export class verifiedComponent implements OnInit {
// y轴
yAxis: {
type: 'value',
- name: '个',
axisLabel: {
color: "#000" //刻度线标签颜色
},
@@ -265,61 +269,63 @@ export class verifiedComponent implements OnInit {
lineStyle: {color: "#000"},
},
type: 'value',
- name: '个',
axisLabel: {
color: "#000", //刻度线标签颜色
formatter: '{value}'
}
},
- {
- //设置坐标轴字体颜色和宽度
- axisLine: {
- lineStyle: {color: "#000"},
- },
- type: 'value',
- name: '个',
- axisLabel: {
- 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],
},
{
name: '已核查修改中',
type: 'bar',
+ stack: '总数',
data: [39, 43, 49, 27, 53, 29, 38, 49, 29, 40, 40, 27, 54],
itemStyle:{color: '#DC143C'}
},
{
name: '已核查提交审核',
type: 'bar',
+ stack: '总数',
data: [48, 42, 43, 53, 47, 39, 25, 26, 54, 34, 39, 24, 14],
itemStyle:{color:'#00BB00'}
},
{
name: '平均值',
type: 'line',
- yAxisIndex: 1,
+ // 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,
+ // yAxisIndex: 1,
data: [98, 90, 106, 94, 98, 86, 96, 82, 76, 78, 82, 86, 74],
itemStyle:{color: '#FF00FF'}
},
{
name: '平均值3倍',
type: 'line',
- yAxisIndex: 1,
+ // yAxisIndex: 1,
data: [143, 135, 159, 143, 127, 144, 144, 123, 114, 117, 124, 129, 111],
itemStyle:{color: '#999'}
},
@@ -353,173 +359,92 @@ export class notVerifiedComponent implements OnInit {
ngOnInit(): void {
window.setTimeout(()=>{
this.oneInit()
- this.twoInit()
},0)
}
ngOnDestroy () {
this.oneEcharts.clear()
- this.items.forEach((element,index) => {
- element.echart.clear()
- });
}
oneEcharts:any;
oneInit () {
this.oneEcharts = echarts.init(document.getElementById('center'), 'skinUpp');
var option = {
- grid: {
- top: 50,
- left:40,
- right: 20,
- bottom: 20,
- },
- // 标题
title: {
text: '未核查',
- top: -4,
+ subtext: '总数剩余 5850',
left: 'center',
textStyle:{
- //文字颜色
color:'#000',
fontSize: 22,
- }
+ },
+ subtextStyle: {color:'#999',}
},
- //提示框
tooltip: {
trigger: 'axis',
+ axisPointer: {
+ type: 'shadow'
+ }
+ },
+ legend: {
+ data: ['剩余未核查','总数'],
+ textStyle: { color: '#000' }
},
- // x轴
xAxis: {
- type: 'category',
- data: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月','9月','10月','11月','12月'],
- boundaryGap: false,
+ type: 'value',
+ boundaryGap: [0, 0.01],
axisLabel: {
color: "#000", //刻度线标签颜色
},
//设置坐标轴字体颜色和宽度
axisLine: {
- lineStyle: {
- color: "#000",
- },
+ lineStyle: {color: "#000",}
},
- splitLine: {//分割线配置
- show:true,
- lineStyle: {
- color: '#999',
- }
- }
},
- // y轴
yAxis: {
- type: 'value',
- name: '个',
+ type: 'category',
+ //设置坐标轴字体颜色和宽度
+ axisLine: {
+ lineStyle: {color: "#000"},
+ },
axisLabel: {
- color: "#000" //刻度线标签颜色
+ color: "#000", //刻度线标签颜色
+ formatter: '{value}'
},
- //设置坐标轴字体颜色和宽度
- axisLine: {
- lineStyle: {
- color: "#000",
- }
- }
+ data: ['浦东支队','黄浦支队','徐汇支队','长宁支队','静安支队','普陀支队','虹口支队','杨浦支队','闵行支队','宝山支队','嘉定支队','崇明支队','金山支队'],
},
- // 数据
- series: [{
- name: '单位预案编制数量',
- type: 'line',
- data: [1245, 1345, 1004, 790, 998, 660, 773, 789, 799, 1144, 953, 1170,],
- }
- ],
- };
- 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,
- top: -4,
- left: 'center',
- textStyle:{
- color:'#000',
- fontSize: 18,
- }
- },
- //提示框
- tooltip: {
- trigger: 'axis',
- },
- legend: {
- data: ['未核查'],
- textStyle: { color: '#000' }
- },
- xAxis: [{
- axisLabel: {
- color: "#000", //刻度线标签颜色
- interval: 0,
- formatter:function(value){
- var ret = "";//拼接加\n返回的类目项
- var maxLength = 2;//每项显示文字个数
- var valLength = value.length;//X轴类目项的文字个数
- var rowN = Math.ceil(valLength / maxLength); //类目项需要换行的行数
- if (rowN > 1) { //如果类目项的文字大于3,
- for (var i = 0; i < rowN; i++) {
- var temp = "";//每次截取的字符串
- var start = i * maxLength;//开始截取的位置
- var end = start + maxLength;//结束截取的位置
- //这里也可以加一个是否是最后一行的判断,但是不加也没有影响,那就不加吧
- temp = value.substring(start, end) + "\n";
- ret += temp;
- } //凭借最终的字符串
- return ret;
- }else {
- return value;
- }
- } //function
+ series: [
+ {
+ name: '剩余未核查',
+ type: 'bar',
+ stack: '差值',
+ data: [289, 307, 334, 356, 389, 413, 456, 477, 489, 503, 540, 570, 599],
+ itemStyle:{color:'#C80000'},
+ label: {
+ show: true,
+ position: 'insideRight',
+ color: '#fff'
},
- //设置坐标轴字体颜色和宽度
- axisLine: {
- lineStyle: {color: "#000",}
- },
- type: 'category',
- data: ['浦东支队','黄浦支队','徐汇支队','长宁支队','静安支队','普陀支队','虹口支队','杨浦支队','闵行支队','宝山支队','嘉定支队','崇明支队','金山支队'],
- axisPointer: {type: 'shadow'}
- }],
- yAxis: [
- {
- //设置坐标轴字体颜色和宽度
- axisLine: {
- lineStyle: {color: "#000"},
- },
- type: 'value',
- name: '个',
- axisLabel: {
- color: "#000", //刻度线标签颜色
- formatter: '{value}'
- }
- }
- ],
- series: [
- {
- name: '未核查',
- type: 'bar',
- data: [48, 36, 49, 37, 33, 59, 58, 46, 39, 34, 39, 68, 45],
+ },
+ {
+ name: '总数',
+ type: 'bar',
+ stack: '差值',
+ data: [1520, 1430, 1170, 1441, 1094, 1147, 1098, 1142, 1274, 1400, 1265, 1341, 1200],
+ itemStyle:{color:'#999'},
+ label: {
+ show: true,
+ position: 'insideRight',
+ color: '#fff'
},
- ]
- };
- this.items[index].echart.setOption(option);
- this.items[index].echart.on('click', (params) => {
- this.echartsData.scheduledUpdatesType = 1
- this.echartsData.scheduledUpdatesName = this.months[index]
- this.echartsData.scheduledUpdatesToggle = false
- });
+ },
+ ]
+ };
+ this.oneEcharts.setOption(option);
+ this.oneEcharts.on('click', (params) => {
+ this.echartsData.scheduledUpdatesType = 1
+ this.echartsData.scheduledUpdatesName = params.name
+ this.echartsData.scheduledUpdatesToggle = false
});
}
@@ -585,61 +510,51 @@ export class detailedInformationComponent implements OnInit {
lineStyle: {color: "#000"},
},
type: 'value',
- name: '个',
axisLabel: {
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],
},
{
name: '已核查修改中',
type: 'bar',
+ stack: '总数',
data: [39, 43, 49, 27, 53, 29, 38, 49, 29, 40, 40, 27, 54],
itemStyle:{color: '#DC143C'}
},
{
name: '已核查提交审核',
type: 'bar',
+ stack: '总数',
data: [48, 42, 43, 53, 47, 39, 25, 26, 54, 34, 39, 24, 14],
itemStyle:{color:'#00BB00'}
},
{
name: '平均值',
type: 'line',
- yAxisIndex: 1,
+ // 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,
+ // yAxisIndex: 1,
data: [98, 90, 106, 94, 98, 86, 96, 82, 76, 78, 82, 86, 74],
itemStyle:{color: '#FF00FF'}
},
{
name: '平均值3倍',
type: 'line',
- yAxisIndex: 1,
+ // yAxisIndex: 1,
data: [143, 135, 159, 143, 127, 144, 144, 123, 114, 117, 124, 129, 111],
itemStyle:{color: '#999'}
},
@@ -650,72 +565,69 @@ export class detailedInformationComponent implements OnInit {
var options = {
title: {
text: this.echartsData.scheduledUpdatesName,
- top: -4,
left: 'center',
textStyle:{
color:'#000',
fontSize: 18,
- }
+ },
},
- //提示框
tooltip: {
trigger: 'axis',
+ axisPointer: {
+ type: 'shadow'
+ }
},
legend: {
- data: ['未核查'],
+ data: ['剩余未核查','总数'],
textStyle: { color: '#000' }
},
- xAxis: [{
+ xAxis: {
+ type: 'value',
+ boundaryGap: [0, 0.01],
axisLabel: {
color: "#000", //刻度线标签颜色
- interval: 0,
- formatter:function(value){
- var ret = "";//拼接加\n返回的类目项
- var maxLength = 2;//每项显示文字个数
- var valLength = value.length;//X轴类目项的文字个数
- var rowN = Math.ceil(valLength / maxLength); //类目项需要换行的行数
- if (rowN > 1) { //如果类目项的文字大于3,
- for (var i = 0; i < rowN; i++) {
- var temp = "";//每次截取的字符串
- var start = i * maxLength;//开始截取的位置
- var end = start + maxLength;//结束截取的位置
- //这里也可以加一个是否是最后一行的判断,但是不加也没有影响,那就不加吧
- temp = value.substring(start, end) + "\n";
- ret += temp;
- } //凭借最终的字符串
- return ret;
- }else {
- return value;
- }
- } //function
},
//设置坐标轴字体颜色和宽度
axisLine: {
lineStyle: {color: "#000",}
},
+ },
+ yAxis: {
type: 'category',
- data: ['浦东支队','黄浦支队','徐汇支队','长宁支队','静安支队','普陀支队','虹口支队','杨浦支队','闵行支队','宝山支队','嘉定支队','崇明支队','金山支队'],
- axisPointer: {type: 'shadow'}
- }],
- yAxis: [
+ //设置坐标轴字体颜色和宽度
+ axisLine: {
+ lineStyle: {color: "#000"},
+ },
+ axisLabel: {
+ color: "#000", //刻度线标签颜色
+ formatter: '{value}'
+ },
+ data: ['浦东中队','黄浦中队','徐汇中队','长宁中队','静安中队','普陀中队','虹口中队','杨浦中队','闵行中队','宝山中队','嘉定中队','崇明中队','金山中队'],
+ },
+ series: [
{
- //设置坐标轴字体颜色和宽度
- axisLine: {
- lineStyle: {color: "#000"},
+ name: '剩余未核查',
+ type: 'bar',
+ stack: '差值',
+ data: [13, 19, 21, 27, 35, 39, 41, 43, 47, 47, 49, 50, 51],
+ itemStyle:{color:'#C80000'},
+ label: {
+ show: true,
+ position: 'insideRight',
+ color: '#fff'
},
- type: 'value',
- name: '个',
- axisLabel: {
- color: "#000", //刻度线标签颜色
- formatter: '{value}'
- }
- }
- ],
- series: [
+ },
{
- name: '未核查',
+ name: '总数',
type: 'bar',
- data: [48, 36, 49, 37, 33, 59, 58, 46, 39, 34, 39, 68, 45],
+ stack: '差值',
+ data: [120, 130, 170, 141, 194, 147, 109, 142, 174, 100, 125, 131, 120],
+ itemStyle:{color:'#999'},
+ label: {
+ show: true,
+ position: 'insideRight',
+ color: '#fff'
+ },
},
]
};
@@ -743,6 +655,23 @@ export class moreTableComponent implements OnInit {
}
+ displayedColumns: string[]=['team','header','time'];
+ dataSource:any = [
+ {content: '1月份已核查案件 高于平均值2倍', time: '2020-02-03',team: '浦东支队'},
+ {content: '1月份已核查案件 高于平均值2倍', time: '2020-02-05',team: '徐汇支队'},
+ {content: '1月份已核查案件 高于平均值2倍', time: '2020-02-05',team: '普陀支队'},
+ {content: '1月份已核查案件 高于平均值', time: '2020-02-05',team: '黄浦支队'},
+ {content: '1月份已核查案件 高于平均值', time: '2020-02-05',team: '长宁支队'},
+ {content: '1月份已核查案件 高于平均值2倍', time: '2020-02-05',team: '静安支队'},
+ {content: '1月份已核查案件 高于平均值2倍', time: '2020-02-05',team: '虹口支队'},
+ {content: '1月份已核查案件 高于平均值2倍', time: '2020-02-07',team: '杨浦支队'},
+ {content: '1月份已核查案件 高于平均值2倍', time: '2020-02-07',team: '闵行支队'},
+ {content: '1月份已核查案件 高于平均值2倍', time: '2020-02-07',team: '宝山支队'},
+ {content: '1月份已核查案件 高于平均值', time: '2020-02-07',team: '嘉定支队'},
+ {content: '1月份已核查案件 高于平均值', time: '2020-02-07',team: '崇明支队'},
+ {content: '1月份已核查案件 高于平均值2倍', time: '2020-02-07',team: '金山支队'},
+ ]
+
}
\ No newline at end of file
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 edbe514..04760c0 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
@@ -30,8 +30,6 @@ export class PageOneComponent implements OnInit {
/* 首页饼状图 */
initCharts(){
- //console.log(document.getElementById('indexBzt'))
-
var ec = echarts as any;
var indexBzt = ec.init(document.getElementById('indexBzt'));
var options={
diff --git a/src/app/statistic-analysis/state/page-two-time/page-two-time.component.html b/src/app/statistic-analysis/state/page-two-time/page-two-time.component.html
index 09d6d0a..6539f62 100644
--- a/src/app/statistic-analysis/state/page-two-time/page-two-time.component.html
+++ b/src/app/statistic-analysis/state/page-two-time/page-two-time.component.html
@@ -2,14 +2,14 @@