Browse Source

[综合分析]页面修改字体和图标位置

master
chenjingyu 4 years ago
parent
commit
3c9d3853b3
  1. 7
      src/app/statistic-analysis/addUnit/add-unit-two-type-statistics/add-unit-two-type-statistics.component.html
  2. 2
      src/app/statistic-analysis/addUnit/add-unit-two-type-statistics/add-unit-two-type-statistics.component.ts
  3. 4
      src/app/statistic-analysis/buildingType/building-type-one/building-type-one.component.ts
  4. 4
      src/app/statistic-analysis/deleteUnit/delete-one/delete-one.component.ts
  5. 2
      src/app/statistic-analysis/deleteUnit/delete-there-line-details/delete-there-line-details.component.ts
  6. 5
      src/app/statistic-analysis/deleteUnit/delete-there/delete-there.component.ts
  7. 2
      src/app/statistic-analysis/deleteUnit/delete-two/delete-two.component.ts
  8. 56
      src/app/statistic-analysis/scheduled-updates/scheduled-updates.component.ts
  9. 4
      src/app/statistic-analysis/state/page-one/page-one.component.ts
  10. 2
      src/app/statistic-analysis/state/page-two-name/page-two-name.component.ts
  11. 12
      src/app/statistic-analysis/state/page-two-time/page-two-time.component.ts

7
src/app/statistic-analysis/addUnit/add-unit-two-type-statistics/add-unit-two-type-statistics.component.html

@ -4,13 +4,14 @@
* @Author: sueRimn * @Author: sueRimn
* @Date: 2020-09-05 13:50:45 * @Date: 2020-09-05 13:50:45
* @LastEditors: sueRimn * @LastEditors: sueRimn
* @LastEditTime: 2020-09-10 08:56:11 * @LastEditTime: 2020-09-11 16:51:57
--> -->
<div class="box"> <div class="box">
<div class="topbox"> <div class="topbox">
<div class="btnbox"> <div class="btnbox">
<button mat-stroked-button (click)="forward()" [ngClass]="{'selectedBtn': url == '/statisticanalysis/addUnit_one/addUnit_two_type'}" >类型统计</button> <button mat-stroked-button (click)="reverse()" [ngClass]="{'selectedBtn': url == '/statisticanalysis/addUnit_one/addUnit_two_time'}">区间选择</button>
<button mat-stroked-button (click)="reverse()" [ngClass]="{'selectedBtn': url == '/statisticanalysis/addUnit_one/addUnit_two_time'}"style="margin-right: 30px;">区间选择</button> <button mat-stroked-button (click)="forward()" [ngClass]="{'selectedBtn': url == '/statisticanalysis/addUnit_one/addUnit_two_type'}" style="margin-right: 30px;">类型统计</button>
</div> </div>
</div> </div>
<div class="echartsbox"> <div class="echartsbox">

2
src/app/statistic-analysis/addUnit/add-unit-two-type-statistics/add-unit-two-type-statistics.component.ts

@ -156,7 +156,7 @@ export class AddUnitTwoTypeStatisticsComponent implements OnInit {
tooltip: { tooltip: {
trigger: 'item', trigger: 'item',
formatter: (params)=>{ formatter: (params)=>{
return this.tableTooltip(this.tableDataZhi,params.name) return this.data.biaogeTishiZhi(params.name)
}, },
position: this.data.tableTooltipNoShow2 position: this.data.tableTooltipNoShow2
}, },

4
src/app/statistic-analysis/buildingType/building-type-one/building-type-one.component.ts

@ -58,12 +58,12 @@ export class BuildingTypeOneComponent implements OnInit {
center: ['50%', '53%'], center: ['50%', '53%'],
label:{ label:{
show:true, show:true,
fontSize:16, fontSize:18,
formatter:'{b}{c}家\n{d|({d}%)}', formatter:'{b}{c}家\n{d|({d}%)}',
rich: { rich: {
d: { d: {
align: 'center', align: 'center',
fontSize:16 fontSize:18
} }
}, },
}, },

4
src/app/statistic-analysis/deleteUnit/delete-one/delete-one.component.ts

@ -69,12 +69,12 @@ export class DeleteOneComponent implements OnInit {
center: ['50%', '60%'], center: ['50%', '60%'],
label:{ label:{
show:true, show:true,
fontSize:16, fontSize:18,
formatter:'{b}{c}家\n{d|({d}%)}', formatter:'{b}{c}家\n{d|({d}%)}',
rich: { rich: {
d: { d: {
align: 'center', align: 'center',
fontSize:16 fontSize:18
} }
}, },

2
src/app/statistic-analysis/deleteUnit/delete-there-line-details/delete-there-line-details.component.ts

@ -188,7 +188,7 @@ export class DeleteThereLineDetailsComponent implements OnInit {
if (this.detailPlanEchart.containPixel('grid',pointInPixel)) { if (this.detailPlanEchart.containPixel('grid',pointInPixel)) {
let xIndex=this.detailPlanEchart.convertFromPixel({seriesIndex:0},[params.offsetX, params.offsetY])[0]; let xIndex=this.detailPlanEchart.convertFromPixel({seriesIndex:0},[params.offsetX, params.offsetY])[0];
/*事件处理代码书写位置*/ /*事件处理代码书写位置*/
this.router.navigate(['/statisticanalysis/delete_one/delete_there'],{queryParams:{'level':this.option.xAxis.data[xIndex],'headtext':this.buildingTypeName}}); this.router.navigate(['/statisticanalysis/delete_one/delete_there'],{queryParams:{'level':this.option.xAxis.data[xIndex],'headtext':this.buildingTypeName,'zhong':'1'}});
} }
}); });
} }

5
src/app/statistic-analysis/deleteUnit/delete-there/delete-there.component.ts

@ -4,7 +4,7 @@
* @Author: sueRimn * @Author: sueRimn
* @Date: 2020-09-02 16:22:35 * @Date: 2020-09-02 16:22:35
* @LastEditors: sueRimn * @LastEditors: sueRimn
* @LastEditTime: 2020-09-10 14:33:07 * @LastEditTime: 2020-09-11 17:13:40
*/ */
import { Component, OnInit } from '@angular/core'; import { Component, OnInit } from '@angular/core';
import { Router,ActivatedRoute } from '@angular/router'; import { Router,ActivatedRoute } from '@angular/router';
@ -27,6 +27,7 @@ export class DeleteThereComponent implements OnInit {
buildingTypeName:String buildingTypeName:String
setTimeoutObj//延时器需要清除 setTimeoutObj//延时器需要清除
headtext:string; headtext:string;
zhong:string
ngOnDestroy():void{ ngOnDestroy():void{
this.zhutu.clear() this.zhutu.clear()
this.zhutu.dispose() this.zhutu.dispose()
@ -43,6 +44,7 @@ export class DeleteThereComponent implements OnInit {
this.activatedRoute.queryParams.subscribe(param=>{ this.activatedRoute.queryParams.subscribe(param=>{
this.headtext=param.headtext this.headtext=param.headtext
datayuex=param.level datayuex=param.level
this.zhong=param.zhong
headName=this.headtext+''+datayuex; headName=this.headtext+''+datayuex;
//console.log(headName) //console.log(headName)
}); });
@ -86,6 +88,7 @@ export class DeleteThereComponent implements OnInit {
}//柱状图数值顶部显示 }//柱状图数值顶部显示
zhiNameData = ["浦东支队","黄埔支队","徐汇支队","长宁支队","静安支队","普陀支队","虹口支队","杨浦支队","闵行支队","宝山支队","嘉定支队","松江支队","金山支队","崇明支队"] zhiNameData = ["浦东支队","黄埔支队","徐汇支队","长宁支队","静安支队","普陀支队","虹口支队","杨浦支队","闵行支队","宝山支队","嘉定支队","松江支队","金山支队","崇明支队"]
zhiNumData = [200,190,180,170,160,150,140,130,120,110,100,90,80,70] zhiNumData = [200,190,180,170,160,150,140,130,120,110,100,90,80,70]
zhongNameData = ["浦东中队","黄埔中队","徐汇中队","长宁中队","静安中队","普陀中队","虹口中队","杨浦中队","闵行中队","宝山中队","嘉定中队","松江中队","金山中队","崇明中队"]
tiaoshiPao:any tiaoshiPao:any
//气泡提示数据获取 //气泡提示数据获取
bianli(){ bianli(){

2
src/app/statistic-analysis/deleteUnit/delete-two/delete-two.component.ts

@ -4,7 +4,7 @@
* @Author: sueRimn * @Author: sueRimn
* @Date: 2020-09-02 16:21:18 * @Date: 2020-09-02 16:21:18
* @LastEditors: sueRimn * @LastEditors: sueRimn
* @LastEditTime: 2020-09-11 14:25:48 * @LastEditTime: 2020-09-11 16:42:00
*/ */
import { Component, OnInit, ViewChild } from '@angular/core'; import { Component, OnInit, ViewChild } from '@angular/core';
import { Router } from '@angular/router'; import { Router } from '@angular/router';

56
src/app/statistic-analysis/scheduled-updates/scheduled-updates.component.ts

@ -154,6 +154,7 @@ export class verifiedComponent implements OnInit {
ngOnInit(): void { ngOnInit(): void {
window.setTimeout(()=>{ window.setTimeout(()=>{
this.qipaotishi=this.echartsData.qipao(this.qipaotishi,this.ydata,this.xdata)
this.oneInit() this.oneInit()
this.twoInit() this.twoInit()
},0) },0)
@ -169,6 +170,9 @@ export class verifiedComponent implements OnInit {
} }
oneEcharts:any; oneEcharts:any;
qipaotishi
xdata=['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月','9月','10月','11月','12月']
ydata=[1170, 953, 1144, 799, 789, 773, 660, 998, 790, 1004, 1345, 1245]
oneInit () { oneInit () {
this.oneEcharts = echarts.init(document.getElementById('center'),'walden'); this.oneEcharts = echarts.init(document.getElementById('center'),'walden');
var option = { var option = {
@ -203,8 +207,8 @@ export class verifiedComponent implements OnInit {
// x轴 // x轴
xAxis: { xAxis: {
type: 'category', type: 'category',
boundaryGap:true,
data: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月','9月','10月','11月','12月'], data: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月','9月','10月','11月','12月'],
boundaryGap: false,
axisLabel:{ axisLabel:{
textStyle:{ textStyle:{
fontSize :18, fontSize :18,
@ -243,7 +247,13 @@ export class verifiedComponent implements OnInit {
series: [{ series: [{
name: '单位预案编制数量', name: '单位预案编制数量',
type: 'line', type: 'line',
markPoint: {
symbolSize:[65, 65],
data: this.qipaotishi
},
data: [1170, 953, 1144, 799, 789, 773, 660, 998, 790, 1004, 1345, 1245], data: [1170, 953, 1144, 799, 789, 773, 660, 998, 790, 1004, 1345, 1245],
clickable:false,
} }
], ],
}; };
@ -410,31 +420,38 @@ export class notVerifiedComponent implements OnInit {
oneInit () { oneInit () {
this.oneEcharts = echarts.init(document.getElementById('center'), 'skinUpp'); this.oneEcharts = echarts.init(document.getElementById('center'), 'skinUpp');
var option = { var option = {
grid: {
left:70
},
title: { title: {
text: '未核查', text: '未核查',
subtext: '总数剩余 5850', subtext: '总数剩余 5850',
left: 'center', left: 'center',
textStyle:{ textStyle:{
color:'#000', color:'#000',
fontSize: 22, fontSize: 30,
}, },
subtextStyle: {color:'#999',} subtextStyle: {color:'#999',fontSize: 15}
}, },
tooltip: { tooltip: {
trigger: 'axis', trigger: 'axis',
formatter: (params)=>{ formatter: (params)=>{
return this.echartsData.tableTooltip(this.echartsData.tableDataZhi,'未核查') return this.echartsData.tableTooltip(this.echartsData.tableDataZhi,'未核查')
}, }/* ,
position:this.echartsData.tableTooltipNoShow position:this.echartsData.tableTooltipNoShow */
}, },
legend: { legend: {
data: ['剩余未核查','总数'], data: ['剩余未核查','总数'],
textStyle: { color: '#000' } textStyle: { color: '#000',fontSize: 18}
}, },
xAxis: { xAxis: {
type: 'value', type: 'value',
boundaryGap: [0, 0.01], boundaryGap: [0, 0.01],
axisLabel: { axisLabel: {
textStyle:{
fontSize :15,
color:'#000000'
},
color: "#000", //刻度线标签颜色 color: "#000", //刻度线标签颜色
}, },
//设置坐标轴字体颜色和宽度 //设置坐标轴字体颜色和宽度
@ -449,10 +466,14 @@ export class notVerifiedComponent implements OnInit {
lineStyle: {color: "#000"}, lineStyle: {color: "#000"},
}, },
axisLabel: { axisLabel: {
textStyle:{
fontSize :15,
color:'#000000'
},
color: "#000", //刻度线标签颜色 color: "#000", //刻度线标签颜色
formatter: '{value}' formatter: '{value}'
}, },
data: ['浦东支队','黄浦支队','徐汇支队','长宁支队','静安支队','普陀支队','虹口支队','杨浦支队','闵行支队','宝山支队','嘉定支队','崇明支队','金山支队'], data: ['浦东中队','黄浦中队','徐汇中队','长宁中队','静安中队','普陀中队','虹口中队','杨浦中队','闵行中队','宝山中队','嘉定中队','崇明中队','金山中队'],
}, },
series: [ series: [
{ {
@ -554,7 +575,7 @@ export class detailedInformationComponent implements OnInit {
lineStyle: {color: "#000",} lineStyle: {color: "#000",}
}, },
type: 'category', type: 'category',
data: ['浦东支队','黄浦支队','徐汇支队','长宁支队','静安支队','普陀支队','虹口支队','杨浦支队','闵行支队','宝山支队','嘉定支队','崇明支队','金山支队'], data: ['浦东中队','黄浦中队','徐汇中队','长宁中队','静安中队','普陀中队','虹口中队','杨浦中队','闵行中队','宝山中队','嘉定中队','崇明中队','金山中队'],
axisPointer: {type: 'shadow'} axisPointer: {type: 'shadow'}
}], }],
yAxis: [ yAxis: [
@ -579,6 +600,7 @@ export class detailedInformationComponent implements OnInit {
name: '已核查无需修改', name: '已核查无需修改',
type: 'bar', type: 'bar',
stack: '总数', stack: '总数',
barWidth :'38',
data: [68, 56, 69, 57, 43, 79, 78, 66, 49, 34, 49, 78, 45], data: [68, 56, 69, 57, 43, 79, 78, 66, 49, 34, 49, 78, 45],
}, },
{ {
@ -621,28 +643,38 @@ export class detailedInformationComponent implements OnInit {
this.example.setOption(option); this.example.setOption(option);
} else { //未核查 } else { //未核查
var options = { var options = {
grid: {
left:90
},
title: { title: {
text: this.echartsData.scheduledUpdatesName, text: this.echartsData.scheduledUpdatesName,
left: 'center', left: 'center',
textStyle:{ textStyle:{
color:'#000', color:'#000',
fontSize: 18, fontSize: 30,
}, },
}, },
tooltip: { tooltip: {
trigger: 'axis', trigger: 'axis',
textStyle:{
fontSize: 18
},
axisPointer: { axisPointer: {
type: 'shadow' type: 'shadow'
} }
}, },
legend: { legend: {
data: ['剩余未核查','总数'], data: ['剩余未核查','总数'],
textStyle: { color: '#000' } textStyle: { color: '#000',fontSize: 16 }
}, },
xAxis: { xAxis: {
type: 'value', type: 'value',
boundaryGap: [0, 0.01], boundaryGap: [0, 0.01],
axisLabel: { axisLabel: {
textStyle:{
fontSize :18,
color:'#000000'
},
color: "#000", //刻度线标签颜色 color: "#000", //刻度线标签颜色
}, },
//设置坐标轴字体颜色和宽度 //设置坐标轴字体颜色和宽度
@ -657,6 +689,10 @@ export class detailedInformationComponent implements OnInit {
lineStyle: {color: "#000"}, lineStyle: {color: "#000"},
}, },
axisLabel: { axisLabel: {
textStyle:{
fontSize :18,
color:'#000000'
},
color: "#000", //刻度线标签颜色 color: "#000", //刻度线标签颜色
formatter: '{value}' formatter: '{value}'
}, },

4
src/app/statistic-analysis/state/page-one/page-one.component.ts

@ -4,7 +4,7 @@
* @Author: sueRimn * @Author: sueRimn
* @Date: 2020-09-01 15:24:39 * @Date: 2020-09-01 15:24:39
* @LastEditors: sueRimn * @LastEditors: sueRimn
* @LastEditTime: 2020-09-08 15:37:55 * @LastEditTime: 2020-09-11 15:35:09
*/ */
import { Component, OnInit } from '@angular/core'; import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router'; import { Router } from '@angular/router';
@ -76,7 +76,7 @@ export class PageOneComponent implements OnInit {
show:true, show:true,
// position: 'inner', // position: 'inner',
fontSize:18, fontSize:18,
formatter:'{b} {c}\n({d}%)', formatter:'{b} {c}\n({d}%)',
}, },
rich: { rich: {
d: { d: {

2
src/app/statistic-analysis/state/page-two-name/page-two-name.component.ts

@ -420,7 +420,7 @@ export class PageTwoNameComponent implements OnInit {
{ {
name: '访问来源', name: '访问来源',
type: 'pie', type: 'pie',
radius: '80%', radius: '75%',
center: ['50%', '60%'], center: ['50%', '60%'],
data: [ data: [
{value: 1585, name: '预案新增'}, {value: 1585, name: '预案新增'},

12
src/app/statistic-analysis/state/page-two-time/page-two-time.component.ts

@ -222,7 +222,7 @@ export class echartsComponent implements OnInit {
var option = { var option = {
grid: { grid: {
top: 50, top: 50,
left:40, left:50,
right: 20, right: 20,
}, },
tooltip: { tooltip: {
@ -313,7 +313,7 @@ export class echartsComponent implements OnInit {
var option = { var option = {
grid: { grid: {
top: 50, top: 50,
left:40, left:50,
right: 20, right: 20,
bottom: 20, bottom: 20,
}, },
@ -405,7 +405,7 @@ export class echartsComponent implements OnInit {
var option = { var option = {
grid: { grid: {
top: 50, top: 50,
left:40, left:50,
right: 20, right: 20,
}, },
// 标题 // 标题
@ -496,7 +496,7 @@ export class echartsComponent implements OnInit {
var option = { var option = {
grid: { grid: {
top: 50, top: 50,
left:40, left:50,
right: 20, right: 20,
}, },
// 标题 // 标题
@ -588,7 +588,7 @@ export class echartsComponent implements OnInit {
var option = { var option = {
grid: { grid: {
top: 50, top: 50,
left:40, left:50,
right: 20, right: 20,
bottom: 20, bottom: 20,
}, },
@ -681,7 +681,7 @@ export class echartsComponent implements OnInit {
var option = { var option = {
grid: { grid: {
top: 50, top: 50,
left:40, left:50,
right: 20, right: 20,
bottom: 20, bottom: 20,
}, },

Loading…
Cancel
Save