|
|
|
@ -4,7 +4,7 @@
|
|
|
|
|
* @Author: sueRimn |
|
|
|
|
* @Date: 2020-09-02 16:21:18 |
|
|
|
|
* @LastEditors: sueRimn |
|
|
|
|
* @LastEditTime: 2020-09-05 16:25:00 |
|
|
|
|
* @LastEditTime: 2020-09-07 08:55:28 |
|
|
|
|
*/ |
|
|
|
|
import { Component, OnInit, ViewChild } from '@angular/core'; |
|
|
|
|
import { Router } from '@angular/router'; |
|
|
|
@ -84,6 +84,18 @@ export class DeleteTwoComponent implements OnInit {
|
|
|
|
|
selectTwoYear:any = (new Date()).getFullYear() //结束年份
|
|
|
|
|
selectStartMonth:any = 1 //开始月份
|
|
|
|
|
selectEndMonth:any = (new Date()).getMonth()+1 //结束月份
|
|
|
|
|
//点击月
|
|
|
|
|
monthClick(){ |
|
|
|
|
this.headZhexian('heads','删除数量总统计',this.datayuex,this.datayuey) |
|
|
|
|
this.headZhexian('leftOne','高层',this.datayuex,this.datayuey) |
|
|
|
|
this.headZhexian('leftTwo','轨道交通',this.datayuex,this.datayuey) |
|
|
|
|
this.headZhexian('leftThere','储罐类',this.datayuex,this.datayuey) |
|
|
|
|
this.headZhexian('leftFour','古建筑',this.datayuex,this.datayuey) |
|
|
|
|
this.headZhexian('rightOne','地下',this.datayuex,this.datayuey) |
|
|
|
|
this.headZhexian('rightTwo','化工生产',this.datayuex,this.datayuey) |
|
|
|
|
this.headZhexian('rightThree','厂房',this.datayuex,this.datayuey) |
|
|
|
|
this.headZhexian('rightFour','商市场',this.datayuex,this.datayuey) |
|
|
|
|
} |
|
|
|
|
//按月查询
|
|
|
|
|
monthSubmit (e) { |
|
|
|
|
this.headZhexian('heads','删除数量总统计',this.datayuex,this.datayuey) |
|
|
|
@ -124,6 +136,18 @@ export class DeleteTwoComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
selectStartYear:any = (new Date()).getFullYear() //开始年份
|
|
|
|
|
selectEndYear:any = (new Date()).getFullYear() //结束年份
|
|
|
|
|
//点击年
|
|
|
|
|
yearClick(){ |
|
|
|
|
this.headZhexian('heads','删除数量总统计',this.datanianx,this.dataniany) |
|
|
|
|
this.headZhexian('leftOne','高层',this.datanianx,this.dataniany) |
|
|
|
|
this.headZhexian('leftTwo','轨道交通',this.datanianx,this.dataniany) |
|
|
|
|
this.headZhexian('leftThere','储罐类',this.datanianx,this.dataniany) |
|
|
|
|
this.headZhexian('leftFour','古建筑',this.datanianx,this.dataniany) |
|
|
|
|
this.headZhexian('rightOne','地下',this.datanianx,this.dataniany) |
|
|
|
|
this.headZhexian('rightTwo','化工生产',this.datanianx,this.dataniany) |
|
|
|
|
this.headZhexian('rightThree','厂房',this.datanianx,this.dataniany) |
|
|
|
|
this.headZhexian('rightFour','商市场',this.datanianx,this.dataniany) |
|
|
|
|
} |
|
|
|
|
//按年查询
|
|
|
|
|
yearSubmit (e) { |
|
|
|
|
console.log(this.selectType) |
|
|
|
@ -158,7 +182,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'); |
|
|
|
|
var options = { |
|
|
|
|
this.options = { |
|
|
|
|
grid: { |
|
|
|
|
top: 50, |
|
|
|
|
left:40, |
|
|
|
@ -249,14 +273,21 @@ export class DeleteTwoComponent implements OnInit {
|
|
|
|
|
}, */ |
|
|
|
|
}] |
|
|
|
|
}; |
|
|
|
|
this.headZx.on('click', (params) => { |
|
|
|
|
this.headZx.getZr().on('click', (params) => { |
|
|
|
|
console.log(params.name) |
|
|
|
|
if(`${headtext}`!=="删除数量总统计"){ |
|
|
|
|
this.echartsData.statefulInspectionName =params.name+headtext; |
|
|
|
|
this.router.navigateByUrl(`/statisticanalysis/delete_one/delete_there`); |
|
|
|
|
/* this.echartsData.statefulInspectionName =params.name+headtext; |
|
|
|
|
this.router.navigateByUrl(`/statisticanalysis/delete_one/delete_there`); */ |
|
|
|
|
const pointInPixel= [params.offsetX, params.offsetY]; |
|
|
|
|
if (this.headZx.containPixel('grid',pointInPixel)) { |
|
|
|
|
let xIndex=this.headZx.convertFromPixel({seriesIndex:0},[params.offsetX, params.offsetY])[0]; |
|
|
|
|
/*事件处理代码书写位置*/ |
|
|
|
|
this.router.navigate(['/statisticanalysis/delete_one/delete_there'],{queryParams:{'level':this.options.xAxis.data[xIndex],'headtext':headtext}}); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
this.headZx.setOption(options); |
|
|
|
|
this.headZx.setOption(this.options); |
|
|
|
|
} |
|
|
|
|
/** |
|
|
|
|
* @name: 表格提示框封装 |
|
|
|
|