|
|
|
@ -267,7 +267,7 @@ export default {
|
|
|
|
|
console.error(err);
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
// 获取图标数据
|
|
|
|
|
// 获取图表数据
|
|
|
|
|
getChartData(targetTime) {
|
|
|
|
|
this.leftCenterinit(targetTime); //隐患数据
|
|
|
|
|
this.rightBominit(targetTime); //隐患整改进度
|
|
|
|
@ -283,7 +283,8 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
showHD(row) {
|
|
|
|
|
console.log(row);
|
|
|
|
|
this.$refs.indexHDRef.openDialog(row.deptId);
|
|
|
|
|
let targetTime = this.queryParams.targetTime || this.getDefaultTargetTime();
|
|
|
|
|
this.$refs.indexHDRef.openDialog(row.deptId, targetTime);
|
|
|
|
|
},
|
|
|
|
|
handleClick(tab, event) {
|
|
|
|
|
console.log(tab, event);
|
|
|
|
@ -416,11 +417,12 @@ export default {
|
|
|
|
|
|
|
|
|
|
option && this.myChart2.setOption(option);
|
|
|
|
|
// myChart.resize();
|
|
|
|
|
this.myChart2.off('click');
|
|
|
|
|
this.myChart2.on('click', (params) => {
|
|
|
|
|
const a = res.data.find((e) => {
|
|
|
|
|
return params.name == e.name;
|
|
|
|
|
})
|
|
|
|
|
this.$refs.indexDangerRef.openDialog1(a.status);
|
|
|
|
|
this.$refs.indexDangerRef.openDialog1(a.status, targetTime);
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
async hylyinit(targetTime) {
|
|
|
|
@ -466,12 +468,12 @@ export default {
|
|
|
|
|
],
|
|
|
|
|
};
|
|
|
|
|
option && this.myChart3.setOption(option);
|
|
|
|
|
// myChart.resize();
|
|
|
|
|
this.myChart3.off('click');
|
|
|
|
|
this.myChart3.on('click', (params) => {
|
|
|
|
|
const a = res.data.find((e)=>{
|
|
|
|
|
return params.name == e.name;
|
|
|
|
|
})
|
|
|
|
|
this.$refs.indexDangerRef.openDialog4(a.enterpriseType);
|
|
|
|
|
this.$refs.indexDangerRef.openDialog4(a.enterpriseType, targetTime);
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
async jjClassInit(targetTime) {
|
|
|
|
@ -517,12 +519,12 @@ export default {
|
|
|
|
|
],
|
|
|
|
|
};
|
|
|
|
|
option && this.myChart4.setOption(option);
|
|
|
|
|
// myChart.resize();
|
|
|
|
|
this.myChart4.off('click');
|
|
|
|
|
this.myChart4.on('click', (params) => {
|
|
|
|
|
const a = res.data.find((e) => {
|
|
|
|
|
return params.name == e.name;
|
|
|
|
|
});
|
|
|
|
|
this.$refs.indexDangerRef.openDialog3(a.economicType);
|
|
|
|
|
this.$refs.indexDangerRef.openDialog3(a.economicType, targetTime);
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
async scaleInit(targetTime) {
|
|
|
|
@ -568,14 +570,13 @@ export default {
|
|
|
|
|
],
|
|
|
|
|
};
|
|
|
|
|
option && this.myChart5.setOption(option);
|
|
|
|
|
// window.onresize = function() {
|
|
|
|
|
// this.myChart5.resize();
|
|
|
|
|
// };
|
|
|
|
|
this.myChart5.off('click');
|
|
|
|
|
this.myChart5.on('click', (params) => {
|
|
|
|
|
const a = res.data.find((e) => {
|
|
|
|
|
|
|
|
|
|
return params.name == e.name;
|
|
|
|
|
});
|
|
|
|
|
this.$refs.indexDangerRef.openDialog2(a.enterpriseScale);
|
|
|
|
|
this.$refs.indexDangerRef.openDialog2(a.enterpriseScale, targetTime);
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
@ -588,7 +589,7 @@ export default {
|
|
|
|
|
let targetTime = this.queryParams.targetTime || this.getDefaultTargetTime();
|
|
|
|
|
this.getChartData(targetTime);
|
|
|
|
|
},
|
|
|
|
|
watch: {
|
|
|
|
|
/* watch: {
|
|
|
|
|
"$store.state.app.sidebar.opened"(value) {
|
|
|
|
|
console.log(value);
|
|
|
|
|
setTimeout(() => {
|
|
|
|
@ -600,7 +601,7 @@ export default {
|
|
|
|
|
this.myChart5 && this.myChart5.resize();
|
|
|
|
|
}, 100);
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
}, */
|
|
|
|
|
computed: {},
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|