|
|
@ -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-16 14:28:19 |
|
|
|
* @LastEditTime: 2020-11-05 08:59:05 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
import { Component, OnInit, ViewChild } from '@angular/core'; |
|
|
|
import { Component, OnInit, ViewChild } from '@angular/core'; |
|
|
|
import { Router } from '@angular/router'; |
|
|
|
import { Router } from '@angular/router'; |
|
|
@ -39,14 +39,14 @@ export class DeleteTwoComponent implements OnInit { |
|
|
|
window.setTimeout(()=>{ |
|
|
|
window.setTimeout(()=>{ |
|
|
|
|
|
|
|
|
|
|
|
this.headZhexian('Line','删除数量总统计',this.datayuex,this.datayuey) |
|
|
|
this.headZhexian('Line','删除数量总统计',this.datayuex,this.datayuey) |
|
|
|
this.headZhexian('leftOne','高层',this.datayuex,this.datayuey) |
|
|
|
/* this.headZhexian('leftOne','高层',this.datayuex,this.datayuey) |
|
|
|
this.headZhexian('leftTwo','轨道交通',this.datayuex,this.datayuey) |
|
|
|
this.headZhexian('leftTwo','轨道交通',this.datayuex,this.datayuey) |
|
|
|
this.headZhexian('leftThere','储罐类',this.datayuex,this.datayuey) |
|
|
|
this.headZhexian('leftThere','储罐类',this.datayuex,this.datayuey) |
|
|
|
this.headZhexian('leftFour','古建筑',this.datayuex,this.datayuey) |
|
|
|
this.headZhexian('leftFour','古建筑',this.datayuex,this.datayuey) |
|
|
|
this.headZhexian('rightOne','地下',this.datayuex,this.datayuey) |
|
|
|
this.headZhexian('rightOne','地下',this.datayuex,this.datayuey) |
|
|
|
this.headZhexian('rightTwo','化工生产',this.datayuex,this.datayuey) |
|
|
|
this.headZhexian('rightTwo','化工生产',this.datayuex,this.datayuey) |
|
|
|
this.headZhexian('rightThree','厂房',this.datayuex,this.datayuey) |
|
|
|
this.headZhexian('rightThree','厂房',this.datayuex,this.datayuey) |
|
|
|
this.headZhexian('rightFour','商市场',this.datayuex,this.datayuey)
|
|
|
|
this.headZhexian('rightFour','商市场',this.datayuex,this.datayuey) */ |
|
|
|
|
|
|
|
|
|
|
|
/* else if(this.selectType=='year'){ |
|
|
|
/* else if(this.selectType=='year'){ |
|
|
|
this.headZhexian('heads','删除数量总统计',this.datanianx,this.dataniany) |
|
|
|
this.headZhexian('heads','删除数量总统计',this.datanianx,this.dataniany) |
|
|
@ -95,26 +95,26 @@ export class DeleteTwoComponent implements OnInit { |
|
|
|
this.tiaoshiPao=null |
|
|
|
this.tiaoshiPao=null |
|
|
|
this.tiaoshiPao=this.echartsData.qipao(this.tiaoshiPao,this.datayuey,this.datayuex) |
|
|
|
this.tiaoshiPao=this.echartsData.qipao(this.tiaoshiPao,this.datayuey,this.datayuex) |
|
|
|
this.headZhexian('Line','删除数量总统计',this.datayuex,this.datayuey) |
|
|
|
this.headZhexian('Line','删除数量总统计',this.datayuex,this.datayuey) |
|
|
|
this.headZhexian('leftOne','高层',this.datayuex,this.datayuey) |
|
|
|
/* this.headZhexian('leftOne','高层',this.datayuex,this.datayuey) |
|
|
|
this.headZhexian('leftTwo','轨道交通',this.datayuex,this.datayuey) |
|
|
|
this.headZhexian('leftTwo','轨道交通',this.datayuex,this.datayuey) |
|
|
|
this.headZhexian('leftThere','储罐类',this.datayuex,this.datayuey) |
|
|
|
this.headZhexian('leftThere','储罐类',this.datayuex,this.datayuey) |
|
|
|
this.headZhexian('leftFour','古建筑',this.datayuex,this.datayuey) |
|
|
|
this.headZhexian('leftFour','古建筑',this.datayuex,this.datayuey) |
|
|
|
this.headZhexian('rightOne','地下',this.datayuex,this.datayuey) |
|
|
|
this.headZhexian('rightOne','地下',this.datayuex,this.datayuey) |
|
|
|
this.headZhexian('rightTwo','化工生产',this.datayuex,this.datayuey) |
|
|
|
this.headZhexian('rightTwo','化工生产',this.datayuex,this.datayuey) |
|
|
|
this.headZhexian('rightThree','厂房',this.datayuex,this.datayuey) |
|
|
|
this.headZhexian('rightThree','厂房',this.datayuex,this.datayuey) |
|
|
|
this.headZhexian('rightFour','商市场',this.datayuex,this.datayuey) |
|
|
|
this.headZhexian('rightFour','商市场',this.datayuex,this.datayuey) */ |
|
|
|
} |
|
|
|
} |
|
|
|
//按月查询
|
|
|
|
//按月查询
|
|
|
|
monthSubmit (e) { |
|
|
|
monthSubmit (e) { |
|
|
|
this.headZhexian('Line','删除数量总统计',this.datayuex,this.datayuey) |
|
|
|
this.headZhexian('Line','删除数量总统计',this.datayuex,this.datayuey) |
|
|
|
this.headZhexian('leftOne','高层',this.datayuex,this.datayuey) |
|
|
|
/* this.headZhexian('leftOne','高层',this.datayuex,this.datayuey) |
|
|
|
this.headZhexian('leftTwo','轨道交通',this.datayuex,this.datayuey) |
|
|
|
this.headZhexian('leftTwo','轨道交通',this.datayuex,this.datayuey) |
|
|
|
this.headZhexian('leftThere','储罐类',this.datayuex,this.datayuey) |
|
|
|
this.headZhexian('leftThere','储罐类',this.datayuex,this.datayuey) |
|
|
|
this.headZhexian('leftFour','古建筑',this.datayuex,this.datayuey) |
|
|
|
this.headZhexian('leftFour','古建筑',this.datayuex,this.datayuey) |
|
|
|
this.headZhexian('rightOne','地下',this.datayuex,this.datayuey) |
|
|
|
this.headZhexian('rightOne','地下',this.datayuex,this.datayuey) |
|
|
|
this.headZhexian('rightTwo','化工生产',this.datayuex,this.datayuey) |
|
|
|
this.headZhexian('rightTwo','化工生产',this.datayuex,this.datayuey) |
|
|
|
this.headZhexian('rightThree','厂房',this.datayuex,this.datayuey) |
|
|
|
this.headZhexian('rightThree','厂房',this.datayuex,this.datayuey) |
|
|
|
this.headZhexian('rightFour','商市场',this.datayuex,this.datayuey)
|
|
|
|
this.headZhexian('rightFour','商市场',this.datayuex,this.datayuey) */ |
|
|
|
if (e.selectTwoYear > e.selectOneYear) { |
|
|
|
if (e.selectTwoYear > e.selectOneYear) { |
|
|
|
let startTime = e.selectOneYear + '-' + e.selectStartMonth + '-' + 1 + ' ' + 0 + ':' + 0 +':'+ 0 |
|
|
|
let startTime = e.selectOneYear + '-' + e.selectStartMonth + '-' + 1 + ' ' + 0 + ':' + 0 +':'+ 0 |
|
|
|
let endTime = e.selectTwoYear + '-' + e.selectEndMonth + '-' + 31 + ' ' + 23 + ':' + 59 +':'+ 59 |
|
|
|
let endTime = e.selectTwoYear + '-' + e.selectEndMonth + '-' + 31 + ' ' + 23 + ':' + 59 +':'+ 59 |
|
|
@ -149,27 +149,27 @@ export class DeleteTwoComponent implements OnInit { |
|
|
|
this.tiaoshiPao=null |
|
|
|
this.tiaoshiPao=null |
|
|
|
this.tiaoshiPao=this.echartsData.qipao(this.tiaoshiPao,this.dataniany,this.datanianx) |
|
|
|
this.tiaoshiPao=this.echartsData.qipao(this.tiaoshiPao,this.dataniany,this.datanianx) |
|
|
|
this.headZhexian('Line','删除数量总统计',this.datanianx,this.dataniany) |
|
|
|
this.headZhexian('Line','删除数量总统计',this.datanianx,this.dataniany) |
|
|
|
this.headZhexian('leftOne','高层',this.datanianx,this.dataniany) |
|
|
|
/* this.headZhexian('leftOne','高层',this.datanianx,this.dataniany) |
|
|
|
this.headZhexian('leftTwo','轨道交通',this.datanianx,this.dataniany) |
|
|
|
this.headZhexian('leftTwo','轨道交通',this.datanianx,this.dataniany) |
|
|
|
this.headZhexian('leftThere','储罐类',this.datanianx,this.dataniany) |
|
|
|
this.headZhexian('leftThere','储罐类',this.datanianx,this.dataniany) |
|
|
|
this.headZhexian('leftFour','古建筑',this.datanianx,this.dataniany) |
|
|
|
this.headZhexian('leftFour','古建筑',this.datanianx,this.dataniany) |
|
|
|
this.headZhexian('rightOne','地下',this.datanianx,this.dataniany) |
|
|
|
this.headZhexian('rightOne','地下',this.datanianx,this.dataniany) |
|
|
|
this.headZhexian('rightTwo','化工生产',this.datanianx,this.dataniany) |
|
|
|
this.headZhexian('rightTwo','化工生产',this.datanianx,this.dataniany) |
|
|
|
this.headZhexian('rightThree','厂房',this.datanianx,this.dataniany) |
|
|
|
this.headZhexian('rightThree','厂房',this.datanianx,this.dataniany) |
|
|
|
this.headZhexian('rightFour','商市场',this.datanianx,this.dataniany) |
|
|
|
this.headZhexian('rightFour','商市场',this.datanianx,this.dataniany) */ |
|
|
|
} |
|
|
|
} |
|
|
|
//按年查询
|
|
|
|
//按年查询
|
|
|
|
yearSubmit (e) { |
|
|
|
yearSubmit (e) { |
|
|
|
console.log(this.selectType) |
|
|
|
console.log(this.selectType) |
|
|
|
this.headZhexian('Line','删除数量总统计',this.datanianx,this.dataniany) |
|
|
|
this.headZhexian('Line','删除数量总统计',this.datanianx,this.dataniany) |
|
|
|
this.headZhexian('leftOne','高层',this.datanianx,this.dataniany) |
|
|
|
/* this.headZhexian('leftOne','高层',this.datanianx,this.dataniany) |
|
|
|
this.headZhexian('leftTwo','轨道交通',this.datanianx,this.dataniany) |
|
|
|
this.headZhexian('leftTwo','轨道交通',this.datanianx,this.dataniany) |
|
|
|
this.headZhexian('leftThere','储罐类',this.datanianx,this.dataniany) |
|
|
|
this.headZhexian('leftThere','储罐类',this.datanianx,this.dataniany) |
|
|
|
this.headZhexian('leftFour','古建筑',this.datanianx,this.dataniany) |
|
|
|
this.headZhexian('leftFour','古建筑',this.datanianx,this.dataniany) |
|
|
|
this.headZhexian('rightOne','地下',this.datanianx,this.dataniany) |
|
|
|
this.headZhexian('rightOne','地下',this.datanianx,this.dataniany) |
|
|
|
this.headZhexian('rightTwo','化工生产',this.datanianx,this.dataniany) |
|
|
|
this.headZhexian('rightTwo','化工生产',this.datanianx,this.dataniany) |
|
|
|
this.headZhexian('rightThree','厂房',this.datanianx,this.dataniany) |
|
|
|
this.headZhexian('rightThree','厂房',this.datanianx,this.dataniany) |
|
|
|
this.headZhexian('rightFour','商市场',this.datanianx,this.dataniany) |
|
|
|
this.headZhexian('rightFour','商市场',this.datanianx,this.dataniany) */ |
|
|
|
if (e.selectEndYear >= e.selectStartYear) { |
|
|
|
if (e.selectEndYear >= e.selectStartYear) { |
|
|
|
let startTime = e.selectStartYear + '-' + 1 + '-' + 1 + ' ' + 0 + ':' + 0 +':'+ 0 |
|
|
|
let startTime = e.selectStartYear + '-' + 1 + '-' + 1 + ' ' + 0 + ':' + 0 +':'+ 0 |
|
|
|
let endTime = e.selectEndYear + '-' + 12 + '-' + 31 + ' ' + 23 + ':' + 59 +':'+ 59 |
|
|
|
let endTime = e.selectEndYear + '-' + 12 + '-' + 31 + ' ' + 23 + ':' + 59 +':'+ 59 |
|
|
@ -234,7 +234,7 @@ export class DeleteTwoComponent implements OnInit { |
|
|
|
/* backgroundColor:'rgba(255,255,255,1)',//通过设置rgba调节背景颜色与透明度 |
|
|
|
/* backgroundColor:'rgba(255,255,255,1)',//通过设置rgba调节背景颜色与透明度 |
|
|
|
borderWidth:'1', |
|
|
|
borderWidth:'1', |
|
|
|
borderRadius :'0', */ |
|
|
|
borderRadius :'0', */ |
|
|
|
position:divid=='Line'? this.echartsData.tableTooltipNoShowt:false |
|
|
|
//position: this.echartsData.tableTooltipNoShowt
|
|
|
|
}, |
|
|
|
}, |
|
|
|
xAxis: { |
|
|
|
xAxis: { |
|
|
|
type: 'category', |
|
|
|
type: 'category', |
|
|
@ -280,7 +280,6 @@ export class DeleteTwoComponent implements OnInit { |
|
|
|
data: datayuey, |
|
|
|
data: datayuey, |
|
|
|
type: 'line', |
|
|
|
type: 'line', |
|
|
|
markPoint: { |
|
|
|
markPoint: { |
|
|
|
|
|
|
|
|
|
|
|
symbolSize:[65, 65], |
|
|
|
symbolSize:[65, 65], |
|
|
|
data: this.tiaoshiPao |
|
|
|
data: this.tiaoshiPao |
|
|
|
}, |
|
|
|
}, |
|
|
@ -289,7 +288,6 @@ export class DeleteTwoComponent implements OnInit { |
|
|
|
}; |
|
|
|
}; |
|
|
|
this.headZx.getZr().on('click', (params) => { |
|
|
|
this.headZx.getZr().on('click', (params) => { |
|
|
|
// console.log(params.name)
|
|
|
|
// console.log(params.name)
|
|
|
|
if(`${headtext}`!=="删除数量总统计"){ |
|
|
|
|
|
|
|
/* this.echartsData.statefulInspectionName =params.name+headtext; |
|
|
|
/* this.echartsData.statefulInspectionName =params.name+headtext; |
|
|
|
this.router.navigateByUrl(`/statisticanalysis/delete_one/delete_there`); */ |
|
|
|
this.router.navigateByUrl(`/statisticanalysis/delete_one/delete_there`); */ |
|
|
|
const pointInPixel= [params.offsetX, params.offsetY]; |
|
|
|
const pointInPixel= [params.offsetX, params.offsetY]; |
|
|
@ -297,13 +295,15 @@ export class DeleteTwoComponent implements OnInit { |
|
|
|
let xIndex=this.headZx.convertFromPixel({seriesIndex:0},[params.offsetX, params.offsetY])[0]; |
|
|
|
let xIndex=this.headZx.convertFromPixel({seriesIndex:0},[params.offsetX, params.offsetY])[0]; |
|
|
|
if(this.options.xAxis.data[xIndex]=='2019'||this.options.xAxis.data[xIndex]=='2020'){ |
|
|
|
if(this.options.xAxis.data[xIndex]=='2019'||this.options.xAxis.data[xIndex]=='2020'){ |
|
|
|
this.router.navigate(['/statisticanalysis/delete_thereLineDetails'],{queryParams:{'level':this.options.xAxis.data[xIndex],'headtext':headtext}}); |
|
|
|
this.router.navigate(['/statisticanalysis/delete_thereLineDetails'],{queryParams:{'level':this.options.xAxis.data[xIndex],'headtext':headtext}}); |
|
|
|
|
|
|
|
//this.router.navigate(['/statisticanalysis/delete_two_newadd'],{queryParams:{'level':this.options.xAxis.data[xIndex],'headtext':headtext}});
|
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
/*事件处理代码书写位置*/ |
|
|
|
/*事件处理代码书写位置*/ |
|
|
|
this.router.navigate(['/statisticanalysis/delete_one/delete_there'],{queryParams:{'level':this.options.xAxis.data[xIndex],'headtext':headtext}}); |
|
|
|
//this.router.navigate(['/statisticanalysis/delete_one/delete_there'],{queryParams:{'level':this.options.xAxis.data[xIndex],'headtext':headtext}});
|
|
|
|
|
|
|
|
this.router.navigate(['/statisticanalysis/delete_two_newadd'],{queryParams:{'level':this.options.xAxis.data[xIndex],'headtext':headtext}}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
this.headZx.setOption(this.options); |
|
|
|
this.headZx.setOption(this.options); |
|
|
|
} |
|
|
|
} |
|
|
|