chenjingyu 4 years ago
parent
commit
77522daeb2
  1. 2
      src/app/statistic-analysis/addUnit/add-unit-one/add-unit-one.component.html
  2. 2
      src/app/statistic-analysis/buildingType/building-type-one/building-type-one.component.html
  3. 2
      src/app/statistic-analysis/deleteUnit/delete-four/delete-four.component.scss
  4. 2
      src/app/statistic-analysis/deleteUnit/delete-one/delete-one.component.html
  5. 53
      src/app/statistic-analysis/deleteUnit/delete-two/delete-two.component.ts
  6. 14
      src/app/statistic-analysis/home/home.component.html
  7. 12
      src/app/statistic-analysis/home/home.component.ts
  8. 2
      src/app/statistic-analysis/state/page-one/page-one.component.html
  9. 4
      src/app/statistic-analysis/state/page-one/page-one.component.ts
  10. 4
      src/app/statistic-analysis/statistic-analysis-routing.module.ts

2
src/app/statistic-analysis/addUnit/add-unit-one/add-unit-one.component.html

@ -1,4 +1,4 @@
<body>
<!--饼状图 -->
<div id="indexBzt" style="width: 100%;height: 100%;"></div>
<div id="indexBzt" style="width: 100%;height: 93%;"></div>
</body>

2
src/app/statistic-analysis/buildingType/building-type-one/building-type-one.component.html

@ -1,4 +1,4 @@
<body>
<!--饼状图 -->
<div id="indexBzt" style="width: 100%;height: 100%;"></div>
<div id="indexBzt" style="width: 100%;height: 93%;"></div>
</body>

2
src/app/statistic-analysis/deleteUnit/delete-four/delete-four.component.scss

@ -8,6 +8,6 @@
position: absolute;
left: 50%;
top: 45%;
transform: translate(-50%,-50%);
transform: translate(-50%,-60%);
}
}

2
src/app/statistic-analysis/deleteUnit/delete-one/delete-one.component.html

@ -6,4 +6,4 @@
* @LastEditors: sueRimn
* @LastEditTime: 2020-09-05 11:28:26
-->
<div id="indexBzt" style="width: 100%;height: 100%;"></div>
<div id="indexBzt" style="width: 100%;height: 93%;"></div>

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

@ -32,10 +32,9 @@ export class DeleteTwoComponent implements OnInit {
ngOnInit(): void {
this.dateInit()
this.echartsData.tableTooltipNoShow2
window.setTimeout(()=>{
console.log(this.selectType)
this.headZhexian('heads','删除数量总统计',this.datayuex,this.datayuey)
this.headZhexian('leftOne','高层',this.datayuex,this.datayuey)
this.headZhexian('leftTwo','轨道交通',this.datayuex,this.datayuey)
@ -182,6 +181,7 @@ export class DeleteTwoComponent implements OnInit {
var dianji:boolean=headtext=="删除数量总统计" ? false:true;
var ec = echarts as any;
this.headZx = ec.init(document.getElementById(`${divid}`),'skinUpp');
<<<<<<< HEAD
this.options = {
grid: {
top: 50,
@ -199,22 +199,42 @@ export class DeleteTwoComponent implements OnInit {
color:'#999',
fontWeight:'bold',
},
=======
var options = {
grid: {
top: 50,
left:40,
right: 20,
bottom: 20,
},
// 标题
title: {
text: `${headtext}`,
left:'center',
top: -4,
//副标题文本样式
 subtextStyle:{
color:'#999',
fontWeight:'bold',
},
>>>>>>> b56d7ae0c7cd644e4ed01e4efc5232a7cfdf07d3
textStyle:{
//文字颜色
color:'#000',
fontSize: 22,
}
},
//提示框
tooltip: {
trigger: 'axis',
formatter: (params)=>{
return this.biaogeTishi(`${headtext}`)
} ,
backgroundColor:'rgba(255,255,255,1)',//通过设置rgba调节背景颜色与透明度
borderWidth:'1',
borderRadius :'0'
},
},
//提示框
tooltip: {
trigger: 'axis',
formatter: (params)=>{
return this.biaogeTishi(`${headtext}`)
},
backgroundColor:'rgba(255,255,255,1)',//通过设置rgba调节背景颜色与透明度
borderWidth:'1',
borderRadius :'0',
position: this.echartsData.tableTooltipNoShow
},
xAxis: {
type: 'category',
boundaryGap:true,
@ -240,8 +260,8 @@ export class DeleteTwoComponent implements OnInit {
axisLabel: {
color: "#000" //刻度线标签颜色
},
//设置坐标轴字体颜色和宽度
axisLine: {
//设置坐标轴字体颜色和宽度
axisLine: {
lineStyle: {
color: "#000",
}
@ -285,7 +305,6 @@ export class DeleteTwoComponent implements OnInit {
this.router.navigate(['/statisticanalysis/delete_one/delete_there'],{queryParams:{'level':this.options.xAxis.data[xIndex],'headtext':headtext}});
}
}
});
this.headZx.setOption(this.options);
}

14
src/app/statistic-analysis/home/home.component.html

@ -2,7 +2,7 @@
<div class="main-top">
<!-- 左侧 -->
<div class="main-left">
<div class="panel panel04" style="flex: auto;max-height: 300px;">
<div class="panel panel04" style="flex: 100%; max-height: 400px;">
<div class="panel-hd">
<a href="javascript:;" class="panel-more"><svg width="18" height="12" xmlns="http://www.w3.org/2000/svg"><g fill="#93FCFF" fill-rule="evenodd" opacity=".6"><path d="M0 0h18v2H0zM0 5h18v2H0zM0 10h18v2H0z"/></g></svg></a>
</div>
@ -10,11 +10,11 @@
<div id="chartHynyxf" class="chart-item"></div>
</div>
</div>
<div class="box-wrap mt">
<div class="panel-hd">
<div class="box-wrap mt" style="flex: 0; height: 150px;">
<div class="panel-hd" style="padding-top: 0px;">
<div class="panel-tit" style="color: white;">计划完成情况</div>
</div>
<div class="panel-bd">
<div class="panel-bd" style="padding-top: 3px;">
<div class="progress-list">
<div class="progress-item">
<div class="progress-name">本年时间进度</div>
@ -77,8 +77,8 @@
</div>
<!-- 右侧 -->
<div class="main-right">
<div class="box-wrap" style="height: 100px;flex: 0.7;">
<div class="panel-bd" style="padding-top: 5px;">
<div class="box-wrap" style="flex: 0; height: 150px;">
<div class="panel-bd" style="padding-top: 13px;">
<div class="total-box">
<div class="total-item" (click)="threePlan()">
<div class="total-name">三维预案总数</div>
@ -99,7 +99,7 @@
</div>
</div>
</div>
<div class="box-wrap mt" style="flex: auto;max-height: 340px;margin-top: 0;">
<div class="box-wrap mt" style="flex: 100%; max-height: 400px;">
<div class="panel-bd">
<div id="chartZdgzqy" class="chart-item" style="height: 100%;"></div>
</div>

12
src/app/statistic-analysis/home/home.component.ts

@ -398,7 +398,7 @@ export class HomeComponent implements OnInit {
// x轴
xAxis: {
type: 'category',
data: [],
data: ["浦东支队","黄埔支队","徐汇支队","长宁支队","静安支队","普陀支队","虹口支队","杨浦支队","闵行支队","宝山支队","嘉定支队","松江支队","金山支队","崇明支队"],
axisLabel: {
interval: 0,
@ -439,7 +439,7 @@ export class HomeComponent implements OnInit {
{
name: '新增单位',
type: 'bar',
data: [320, 302, 301, 234, 390, 330, 320, 390, 330, 320, 390, 301, 234, 390, 330, 320, 390, ],
data: [320, 302, 301, 234, 390, 330, 320, 390, 330, 320, 390, 301, 234, 390 ],
label: {
show: false,
position: "top",
@ -466,7 +466,7 @@ export class HomeComponent implements OnInit {
}, {
name: '删除单位',
type: 'bar',
data: [300, 202, 101, 134, 290, 430, 220, 490, 430, 490, 430, 202, 101, 134, 290, 430, 220, ],
data: [300, 202, 101, 134, 290, 430, 220, 490, 430, 490, 430, 202, 101, 134 ],
label: {
show: false,
position: "top",
@ -519,7 +519,7 @@ export class HomeComponent implements OnInit {
// x轴
xAxis: {
type: 'category',
data: [],
data: ["浦东中队","黄埔中队","徐汇中队","长宁中队","静安中队","普陀中队","虹口中队","杨浦中队","闵行中队","宝山中队","嘉定中队","松江中队","金山中队","崇明中队"],
axisLabel: {
interval: 0,
@ -560,7 +560,7 @@ export class HomeComponent implements OnInit {
{
name: '新增单位',
type: 'bar',
data: [88, 45, 95, 105, 75, 89, 69, 110, 96, 90, 80, 78, 94, 102, 94, 86, 77, ],
data: [88, 45, 95, 105, 75, 89, 69, 110, 96, 90, 80, 78, 94, 102],
label: {
show: false,
position: "top",
@ -587,7 +587,7 @@ export class HomeComponent implements OnInit {
}, {
name: '删除单位',
type: 'bar',
data: [35, 33, 27, 30, 35, 36, 28, 32, 36, 22, 19, 28, 34, 36, 37, 30, 29, ],
data: [35, 33, 27, 30, 35, 36, 28, 32, 36, 22, 19, 28, 34, 36],
label: {
show: false,
position: "top",

2
src/app/statistic-analysis/state/page-one/page-one.component.html

@ -9,7 +9,7 @@
<body>
<!--饼状图 -->
<div id="indexBzt" style="width: 100%;height: 100%;"></div>
<div id="indexBzt" style="width: 100%;height: 93%;"></div>
</body>

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

@ -79,7 +79,7 @@ export class PageOneComponent implements OnInit {
show:true,
// position: 'inner',
// fontSize:18,
formatter:'{b} {c}\n{d|({d}%)}'
formatter:'{b} {c}\n({d}%)',
},
rich: {
d: {
@ -106,7 +106,7 @@ export class PageOneComponent implements OnInit {
]
};
this.indexBzt.on('click', (params) => {
this.router.navigateByUrl('/statisticanalysis/statePageTwo_time');
this.router.navigateByUrl('/statisticanalysis/statePageOne/time');
});
this.indexBzt.setOption(options);
}

4
src/app/statistic-analysis/statistic-analysis-routing.module.ts

@ -17,7 +17,6 @@ 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 { from } from 'rxjs';
import {ScheduledUpdatesComponent,publicEchartsComponent} from './scheduled-updates/scheduled-updates.component'
import { BuildingTypeTwoForwardComponent } from './buildingType/building-type-two-forward/building-type-two-forward.component';
import { BuildingTypeTwoReverseComponent } from './buildingType/building-type-two-reverse/building-type-two-reverse.component';
@ -33,13 +32,12 @@ import { HomeComponent } from './home/home.component';
const routes: Routes = [
{ path: 'statePageOne', component: PageOneComponent},
{ path: 'statePageTwo_time', component: PageTwoTimeComponent},
{ path: 'statePageOne/time', component: PageTwoTimeComponent},
{ path: 'delete_one', component: DeleteOneComponent},
{ path: 'delete_one/delete_two', component: DeleteTwoComponent},
{ path: 'delete_one/delete_there', component: DeleteThereComponent},
{ path: 'delete_one/delete_four', component: DeleteFourComponent},
{ path: 'buildingType_one', component: BuildingTypeOneComponent},
//{ path: 'delete_one/deleteUnit_two_type', component: DeleteTwoComponent}
{ path: 'delete_two', component: DeleteTwoComponent},
{ path: 'delete_there', component: DeleteThereComponent},
{ path: 'delete_four', component: DeleteFourComponent},

Loading…
Cancel
Save