|
|
|
@ -20,6 +20,7 @@ export class PageTwoTimeComponent implements OnInit {
|
|
|
|
|
@ViewChild('pageTwoName')pageTwoName :PageTwoNameComponent; //父组件中获得子组件的引用
|
|
|
|
|
|
|
|
|
|
ngOnInit(): void { |
|
|
|
|
this.echartsData.statefulInspectionToggle = true |
|
|
|
|
this.dateInit() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -130,10 +131,24 @@ export class echartsComponent implements OnInit {
|
|
|
|
|
},0) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
ngOnDestroy () { |
|
|
|
|
this.oneExample.clear() |
|
|
|
|
this.oneExample.dispose() |
|
|
|
|
this.twoExample.clear() |
|
|
|
|
this.twoExample.dispose() |
|
|
|
|
this.threeExample.clear() |
|
|
|
|
this.threeExample.dispose() |
|
|
|
|
this.fourExample.clear() |
|
|
|
|
this.fourExample.dispose() |
|
|
|
|
this.fiveExample.clear() |
|
|
|
|
this.fiveExample.dispose() |
|
|
|
|
this.sixExample.clear() |
|
|
|
|
this.sixExample.dispose() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
oneExample:any; |
|
|
|
|
oneInit () { |
|
|
|
|
var chartQusj = echarts.init(document.getElementById('one'), 'skinUpp'); |
|
|
|
|
this.oneExample = echarts.init(document.getElementById('one'), 'skinUpp'); |
|
|
|
|
var option = { |
|
|
|
|
grid: { |
|
|
|
|
top: 50, |
|
|
|
@ -141,6 +156,15 @@ export class echartsComponent implements OnInit {
|
|
|
|
|
right: 20, |
|
|
|
|
bottom: 20, |
|
|
|
|
}, |
|
|
|
|
tooltip: { |
|
|
|
|
trigger: 'axis', |
|
|
|
|
backgroundColor:'rgba(255,255,255,1)',//通过设置rgba调节背景颜色与透明度
|
|
|
|
|
borderWidth:'1', |
|
|
|
|
borderRadius :'0', |
|
|
|
|
formatter: (params)=>{ |
|
|
|
|
return this.echartsData.tableTooltip(this.echartsData.planData,params[0].name) |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
// 标题
|
|
|
|
|
title: { |
|
|
|
|
text: '预案统计状态', |
|
|
|
@ -158,10 +182,6 @@ export class echartsComponent implements OnInit {
|
|
|
|
|
fontSize: 22, |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
//提示框
|
|
|
|
|
tooltip: { |
|
|
|
|
trigger: 'axis', |
|
|
|
|
}, |
|
|
|
|
// x轴
|
|
|
|
|
xAxis: { |
|
|
|
|
type: 'category', |
|
|
|
@ -205,12 +225,13 @@ export class echartsComponent implements OnInit {
|
|
|
|
|
} |
|
|
|
|
], |
|
|
|
|
}; |
|
|
|
|
chartQusj.setOption(option); |
|
|
|
|
this.oneExample.setOption(option); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
twoExample:any; |
|
|
|
|
twoInit () { |
|
|
|
|
let that = this |
|
|
|
|
var chartQusj = echarts.init(document.getElementById('two'), 'skinUpp'); |
|
|
|
|
this.twoExample = echarts.init(document.getElementById('two'), 'skinUpp'); |
|
|
|
|
var option = { |
|
|
|
|
grid: { |
|
|
|
|
top: 50, |
|
|
|
@ -228,9 +249,14 @@ export class echartsComponent implements OnInit {
|
|
|
|
|
color:'#000', |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
//提示框
|
|
|
|
|
tooltip: { |
|
|
|
|
trigger: 'axis', |
|
|
|
|
backgroundColor:'rgba(255,255,255,1)',//通过设置rgba调节背景颜色与透明度
|
|
|
|
|
borderWidth:'1', |
|
|
|
|
borderRadius :'0', |
|
|
|
|
formatter: (params)=>{ |
|
|
|
|
return this.echartsData.tableTooltip(this.echartsData.tableDataZhi,'预案新增') |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
// x轴
|
|
|
|
|
xAxis: { |
|
|
|
@ -275,16 +301,17 @@ export class echartsComponent implements OnInit {
|
|
|
|
|
} |
|
|
|
|
], |
|
|
|
|
}; |
|
|
|
|
chartQusj.setOption(option); |
|
|
|
|
chartQusj.on('click', function (params) { |
|
|
|
|
this.twoExample.setOption(option); |
|
|
|
|
this.twoExample.on('click', function (params) { |
|
|
|
|
that.echartsData.statefulInspectionName = '预案新增' |
|
|
|
|
that.echartsData.statefulInspectionToggle = false |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
threeExample:any; |
|
|
|
|
threeInit () { |
|
|
|
|
let that = this |
|
|
|
|
var chartQusj = echarts.init(document.getElementById('three'), 'skinUpp'); |
|
|
|
|
this.threeExample = echarts.init(document.getElementById('three'), 'skinUpp'); |
|
|
|
|
var option = { |
|
|
|
|
grid: { |
|
|
|
|
top: 50, |
|
|
|
@ -305,6 +332,12 @@ export class echartsComponent implements OnInit {
|
|
|
|
|
//提示框
|
|
|
|
|
tooltip: { |
|
|
|
|
trigger: 'axis', |
|
|
|
|
backgroundColor:'rgba(255,255,255,1)',//通过设置rgba调节背景颜色与透明度
|
|
|
|
|
borderWidth:'1', |
|
|
|
|
borderRadius :'0', |
|
|
|
|
formatter: (params)=>{ |
|
|
|
|
return this.echartsData.tableTooltip(this.echartsData.tableDataZhi,'预案审核通过') |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
// x轴
|
|
|
|
|
xAxis: { |
|
|
|
@ -349,16 +382,17 @@ export class echartsComponent implements OnInit {
|
|
|
|
|
} |
|
|
|
|
], |
|
|
|
|
}; |
|
|
|
|
chartQusj.setOption(option); |
|
|
|
|
chartQusj.on('click', function (params) { |
|
|
|
|
this.threeExample.setOption(option); |
|
|
|
|
this.threeExample.on('click', function (params) { |
|
|
|
|
that.echartsData.statefulInspectionName = '预案审核通过' |
|
|
|
|
that.echartsData.statefulInspectionToggle = false |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
fourExample:any; |
|
|
|
|
fourInit () { |
|
|
|
|
let that = this |
|
|
|
|
var chartQusj = echarts.init(document.getElementById('four'), 'skinUpp'); |
|
|
|
|
this.fourExample = echarts.init(document.getElementById('four'), 'skinUpp'); |
|
|
|
|
var option = { |
|
|
|
|
grid: { |
|
|
|
|
top: 50, |
|
|
|
@ -379,6 +413,12 @@ export class echartsComponent implements OnInit {
|
|
|
|
|
//提示框
|
|
|
|
|
tooltip: { |
|
|
|
|
trigger: 'axis', |
|
|
|
|
backgroundColor:'rgba(255,255,255,1)',//通过设置rgba调节背景颜色与透明度
|
|
|
|
|
borderWidth:'1', |
|
|
|
|
borderRadius :'0', |
|
|
|
|
formatter: (params)=>{ |
|
|
|
|
return this.echartsData.tableTooltip(this.echartsData.tableDataZhi,'预案编制') |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
// x轴
|
|
|
|
|
xAxis: { |
|
|
|
@ -423,16 +463,17 @@ export class echartsComponent implements OnInit {
|
|
|
|
|
} |
|
|
|
|
], |
|
|
|
|
}; |
|
|
|
|
chartQusj.setOption(option); |
|
|
|
|
chartQusj.on('click', function (params) { |
|
|
|
|
this.fourExample.setOption(option); |
|
|
|
|
this.fourExample.on('click', function (params) { |
|
|
|
|
that.echartsData.statefulInspectionName = '预案编制' |
|
|
|
|
that.echartsData.statefulInspectionToggle = false |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
fiveExample:any; |
|
|
|
|
fiveInit () { |
|
|
|
|
let that = this |
|
|
|
|
var chartQusj = echarts.init(document.getElementById('five'), 'skinUpp'); |
|
|
|
|
this.fiveExample = echarts.init(document.getElementById('five'), 'skinUpp'); |
|
|
|
|
var option = { |
|
|
|
|
grid: { |
|
|
|
|
top: 50, |
|
|
|
@ -453,6 +494,12 @@ export class echartsComponent implements OnInit {
|
|
|
|
|
//提示框
|
|
|
|
|
tooltip: { |
|
|
|
|
trigger: 'axis', |
|
|
|
|
backgroundColor:'rgba(255,255,255,1)',//通过设置rgba调节背景颜色与透明度
|
|
|
|
|
borderWidth:'1', |
|
|
|
|
borderRadius :'0', |
|
|
|
|
formatter: (params)=>{ |
|
|
|
|
return this.echartsData.tableTooltip(this.echartsData.tableDataZhi,'预案审核退回') |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
// x轴
|
|
|
|
|
xAxis: { |
|
|
|
@ -497,16 +544,17 @@ export class echartsComponent implements OnInit {
|
|
|
|
|
} |
|
|
|
|
], |
|
|
|
|
}; |
|
|
|
|
chartQusj.setOption(option); |
|
|
|
|
chartQusj.on('click', function (params) { |
|
|
|
|
this.fiveExample.setOption(option); |
|
|
|
|
this.fiveExample.on('click', function (params) { |
|
|
|
|
that.echartsData.statefulInspectionName = '预案审核退回' |
|
|
|
|
that.echartsData.statefulInspectionToggle = false |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
sixExample:any; |
|
|
|
|
sixInit () { |
|
|
|
|
let that = this |
|
|
|
|
var chartQusj = echarts.init(document.getElementById('six'), 'skinUpp'); |
|
|
|
|
this.sixExample = echarts.init(document.getElementById('six'), 'skinUpp'); |
|
|
|
|
var option = { |
|
|
|
|
grid: { |
|
|
|
|
top: 50, |
|
|
|
@ -527,6 +575,12 @@ export class echartsComponent implements OnInit {
|
|
|
|
|
//提示框
|
|
|
|
|
tooltip: { |
|
|
|
|
trigger: 'axis', |
|
|
|
|
backgroundColor:'rgba(255,255,255,1)',//通过设置rgba调节背景颜色与透明度
|
|
|
|
|
borderWidth:'1', |
|
|
|
|
borderRadius :'0', |
|
|
|
|
formatter: (params)=>{ |
|
|
|
|
return this.echartsData.tableTooltip(this.echartsData.tableDataZhi,'预案审核中') |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
// x轴
|
|
|
|
|
xAxis: { |
|
|
|
@ -571,8 +625,8 @@ export class echartsComponent implements OnInit {
|
|
|
|
|
} |
|
|
|
|
], |
|
|
|
|
}; |
|
|
|
|
chartQusj.setOption(option); |
|
|
|
|
chartQusj.on('click', function (params) { |
|
|
|
|
this.sixExample.setOption(option); |
|
|
|
|
this.sixExample.on('click', function (params) { |
|
|
|
|
that.echartsData.statefulInspectionName = '预案审核中' |
|
|
|
|
that.echartsData.statefulInspectionToggle = false |
|
|
|
|
}); |
|
|
|
|