|
|
@ -66,7 +66,7 @@ export class OilUnloadingProcessListComponent implements OnInit { |
|
|
|
startdate |
|
|
|
startdate |
|
|
|
enddate |
|
|
|
enddate |
|
|
|
|
|
|
|
|
|
|
|
isOrShow:boolean |
|
|
|
isOrShow: boolean |
|
|
|
ngOnInit(): void { |
|
|
|
ngOnInit(): void { |
|
|
|
//当前日期
|
|
|
|
//当前日期
|
|
|
|
let myDate: any = new Date(); |
|
|
|
let myDate: any = new Date(); |
|
|
@ -91,9 +91,9 @@ export class OilUnloadingProcessListComponent implements OnInit { |
|
|
|
this.mybarChart = echarts.init(document.getElementById('barchart')); |
|
|
|
this.mybarChart = echarts.init(document.getElementById('barchart')); |
|
|
|
this.getAllOrganization() |
|
|
|
this.getAllOrganization() |
|
|
|
this.getAggregations() |
|
|
|
this.getAggregations() |
|
|
|
if(this.router.url.indexOf('petrolStation') != -1){ |
|
|
|
if (this.router.url.indexOf('petrolStation') != -1) { |
|
|
|
this.isOrShow = false |
|
|
|
this.isOrShow = false |
|
|
|
}else{ |
|
|
|
} else { |
|
|
|
this.isOrShow = true |
|
|
|
this.isOrShow = true |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -443,6 +443,8 @@ export class OilUnloadingProcessListComponent implements OnInit { |
|
|
|
] |
|
|
|
] |
|
|
|
this.oilchartpieOption.series[0].data = this.oilchartpieOptionPieData1 |
|
|
|
this.oilchartpieOption.series[0].data = this.oilchartpieOptionPieData1 |
|
|
|
this.myChart.setOption(this.oilchartpieOption); |
|
|
|
this.myChart.setOption(this.oilchartpieOption); |
|
|
|
|
|
|
|
this.myChart.off('legendselectchanged') |
|
|
|
|
|
|
|
this.myChart.off('click') |
|
|
|
this.myChart.on('legendselectchanged', (params) => { |
|
|
|
this.myChart.on('legendselectchanged', (params) => { |
|
|
|
this.myChart.setOption({ |
|
|
|
this.myChart.setOption({ |
|
|
|
legend: { selected: { [params.name]: true } } |
|
|
|
legend: { selected: { [params.name]: true } } |
|
|
@ -450,12 +452,24 @@ export class OilUnloadingProcessListComponent implements OnInit { |
|
|
|
if (params.name == '预警事件') { |
|
|
|
if (params.name == '预警事件') { |
|
|
|
this.isgoback = true |
|
|
|
this.isgoback = true |
|
|
|
this.refreshEchartsData2(this.echartsData) |
|
|
|
this.refreshEchartsData2(this.echartsData) |
|
|
|
|
|
|
|
this.validateForm.patchValue({ |
|
|
|
|
|
|
|
state: '0' |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
this.list = [] |
|
|
|
|
|
|
|
this.SkipCount = '0' |
|
|
|
|
|
|
|
this.getViolateRecordList() |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.myChart.on('click', (params) => { |
|
|
|
this.myChart.on('click', (params) => { |
|
|
|
if (params.name == '预警事件') { |
|
|
|
if (params.name == '预警事件') { |
|
|
|
this.isgoback = true |
|
|
|
this.isgoback = true |
|
|
|
this.refreshEchartsData2(this.echartsData) |
|
|
|
this.refreshEchartsData2(this.echartsData) |
|
|
|
|
|
|
|
this.validateForm.patchValue({ |
|
|
|
|
|
|
|
state: '0' |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
this.list = [] |
|
|
|
|
|
|
|
this.SkipCount = '0' |
|
|
|
|
|
|
|
this.getViolateRecordList() |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
@ -504,8 +518,15 @@ export class OilUnloadingProcessListComponent implements OnInit { |
|
|
|
} |
|
|
|
} |
|
|
|
goback() { |
|
|
|
goback() { |
|
|
|
this.isgoback = false |
|
|
|
this.isgoback = false |
|
|
|
|
|
|
|
this.myChart.clear(); |
|
|
|
this.mybarChart.clear(); |
|
|
|
this.mybarChart.clear(); |
|
|
|
this.refreshEchartsData1(this.echartsData) |
|
|
|
this.refreshEchartsData1(this.echartsData) |
|
|
|
|
|
|
|
this.validateForm.patchValue({ |
|
|
|
|
|
|
|
state: null |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
this.list = [] |
|
|
|
|
|
|
|
this.SkipCount = '0' |
|
|
|
|
|
|
|
this.getViolateRecordList() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -531,8 +552,7 @@ export class OilUnloadingProcessListComponent implements OnInit { |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.nodes = [...this.toTree.toTree(data.result.items)] |
|
|
|
this.nodes = [...this.toTree.toTree(data.result.items)] |
|
|
|
this.defaultOrId = JSON.parse(sessionStorage.getItem('userdata')).organization.id |
|
|
|
this.defaultOrId = JSON.parse(sessionStorage.getItem('userdata')).organization.id |
|
|
|
this.validateForm.value.organization = this.defaultOrId |
|
|
|
this.validateForm.value.organization = JSON.parse(sessionStorage.getItem('userdata')).organization.id |
|
|
|
|
|
|
|
|
|
|
|
this.validateForm.patchValue({ |
|
|
|
this.validateForm.patchValue({ |
|
|
|
datePicker: [this.startdate, this.enddate] |
|
|
|
datePicker: [this.startdate, this.enddate] |
|
|
|
}); |
|
|
|
}); |
|
|
@ -614,7 +634,10 @@ export class OilUnloadingProcessListComponent implements OnInit { |
|
|
|
this.validateForm.controls[key].markAsPristine(); |
|
|
|
this.validateForm.controls[key].markAsPristine(); |
|
|
|
this.validateForm.controls[key].updateValueAndValidity(); |
|
|
|
this.validateForm.controls[key].updateValueAndValidity(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
console.log(JSON.parse(sessionStorage.getItem('userdata')).organization.id) |
|
|
|
|
|
|
|
// this.validateForm.value.organization = JSON.parse(sessionStorage.getItem('userdata')).organization.id
|
|
|
|
this.validateForm.patchValue({ |
|
|
|
this.validateForm.patchValue({ |
|
|
|
|
|
|
|
organization:JSON.parse(sessionStorage.getItem('userdata')).organization.id, |
|
|
|
datePicker: [this.startdate, this.enddate] |
|
|
|
datePicker: [this.startdate, this.enddate] |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.list = [] |
|
|
|
this.list = [] |
|
|
|