|
|
|
@ -4,7 +4,7 @@
|
|
|
|
|
* @Author: sueRimn |
|
|
|
|
* @Date: 2020-09-02 16:21:18 |
|
|
|
|
* @LastEditors: sueRimn |
|
|
|
|
* @LastEditTime: 2020-09-05 13:43:02 |
|
|
|
|
* @LastEditTime: 2020-09-05 15:09:27 |
|
|
|
|
*/ |
|
|
|
|
import { Component, OnInit, ViewChild } from '@angular/core'; |
|
|
|
|
import { Router } from '@angular/router'; |
|
|
|
@ -21,8 +21,8 @@ declare var echarts: any;
|
|
|
|
|
}) |
|
|
|
|
export class DeleteTwoComponent implements OnInit { |
|
|
|
|
options:any; |
|
|
|
|
datayuex=['一月', '二月', '三月', '四月', '五月', '六月', '七月','八月']; |
|
|
|
|
datayuey=[210, 160, 150, 140, 130, 120, 110,120]; |
|
|
|
|
datayuex=['一月', '二月', '三月', '四月', '五月', '六月', '七月','八月','九月']; |
|
|
|
|
datayuey=[210, 160, 150, 140, 130, 120, 110,120,150]; |
|
|
|
|
datanianx=[2019,2020]; |
|
|
|
|
dataniany=[201,174] |
|
|
|
|
|
|
|
|
@ -34,7 +34,7 @@ export class DeleteTwoComponent implements OnInit {
|
|
|
|
|
this.dateInit() |
|
|
|
|
window.setTimeout(()=>{ |
|
|
|
|
console.log(this.selectType) |
|
|
|
|
if(this.selectType=='month'){ |
|
|
|
|
|
|
|
|
|
this.headZhexian('heads','删除数量总统计',this.datayuex,this.datayuey) |
|
|
|
|
this.headZhexian('leftOne','高层',this.datayuex,this.datayuey) |
|
|
|
|
this.headZhexian('leftTwo','轨道交通',this.datayuex,this.datayuey) |
|
|
|
@ -44,7 +44,7 @@ export class DeleteTwoComponent implements OnInit {
|
|
|
|
|
this.headZhexian('rightTwo','化工生产',this.datayuex,this.datayuey) |
|
|
|
|
this.headZhexian('rightThree','厂房',this.datayuex,this.datayuey) |
|
|
|
|
this.headZhexian('rightFour','商市场',this.datayuex,this.datayuey)
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/* else if(this.selectType=='year'){ |
|
|
|
|
this.headZhexian('heads','删除数量总统计',this.datanianx,this.dataniany) |
|
|
|
|
this.headZhexian('leftOne','高层',this.datayuex,this.datayuey) |
|
|
|
@ -148,8 +148,15 @@ export class DeleteTwoComponent implements OnInit {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/* 折线图 */ |
|
|
|
|
/** |
|
|
|
|
* @name: 折线图 |
|
|
|
|
* @test: test font |
|
|
|
|
* @msg:
|
|
|
|
|
* @param {divid(传入的div),headtext(标题)}
|
|
|
|
|
* @return {type}
|
|
|
|
|
*/ |
|
|
|
|
headZhexian(divid:string,headtext:string,datayuex,datayuey){ |
|
|
|
|
var dianji:boolean=headtext=="删除数量总统计" ? false:true; |
|
|
|
|
var ec = echarts as any; |
|
|
|
|
this.headZx = ec.init(document.getElementById(`${divid}`),'skinUpp'); |
|
|
|
|
var options = { |
|
|
|
@ -220,7 +227,7 @@ export class DeleteTwoComponent implements OnInit {
|
|
|
|
|
series: [{ |
|
|
|
|
data: datayuey, |
|
|
|
|
type: 'line', |
|
|
|
|
|
|
|
|
|
clickable:false, |
|
|
|
|
/* lineStyle:{ |
|
|
|
|
color:'#1369bf' |
|
|
|
|
}, */ |
|
|
|
@ -245,8 +252,11 @@ export class DeleteTwoComponent implements OnInit {
|
|
|
|
|
}; |
|
|
|
|
this.headZx.on('click', (params) => { |
|
|
|
|
console.log(params) |
|
|
|
|
if(`${headtext}`!=="删除数量总统计"){ |
|
|
|
|
this.echartsData.statefulInspectionName =params.name+headtext; |
|
|
|
|
this.router.navigateByUrl(`/statisticanalysis/delete_one/delete_there`); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
this.headZx.setOption(options); |
|
|
|
|
} |
|
|
|
|