diff --git a/src/app/statistic-analysis/deleteUnit/delete-four/delete-four.component.scss b/src/app/statistic-analysis/deleteUnit/delete-four/delete-four.component.scss index 1e25505..cde1652 100644 --- a/src/app/statistic-analysis/deleteUnit/delete-four/delete-four.component.scss +++ b/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%); } } \ No newline at end of file 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 4800c33..b3de526 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 @@ -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) @@ -159,38 +158,39 @@ export class DeleteTwoComponent implements OnInit { var ec = echarts as any; this.headZx = ec.init(document.getElementById(`${divid}`),'skinUpp'); var options = { - grid: { - top: 50, - left:40, - right: 20, - bottom: 20, - }, - // 标题 - title: { - text: `${headtext}`, - left:'center', - top: -4, - //副标题文本样式 -  subtextStyle:{ - color:'#999', - fontWeight:'bold', - }, + grid: { + top: 50, + left:40, + right: 20, + bottom: 20, + }, + // 标题 + title: { + text: `${headtext}`, + left:'center', + top: -4, + //副标题文本样式 +  subtextStyle:{ + color:'#999', + fontWeight:'bold', + }, 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, @@ -216,8 +216,8 @@ export class DeleteTwoComponent implements OnInit { axisLabel: { color: "#000" //刻度线标签颜色 }, - //设置坐标轴字体颜色和宽度 - axisLine: { + //设置坐标轴字体颜色和宽度 + axisLine: { lineStyle: { color: "#000", } @@ -254,7 +254,6 @@ export class DeleteTwoComponent implements OnInit { this.echartsData.statefulInspectionName =params.name+headtext; this.router.navigateByUrl(`/statisticanalysis/delete_one/delete_there`); } - }); this.headZx.setOption(options); }