diff --git a/jero-web/src/views/projectManagement/components/certificationActivity.vue b/jero-web/src/views/projectManagement/components/certificationActivity.vue index 0ba4406be..499e9893f 100644 --- a/jero-web/src/views/projectManagement/components/certificationActivity.vue +++ b/jero-web/src/views/projectManagement/components/certificationActivity.vue @@ -51,9 +51,11 @@ getProjectDetailsStatistics: '/project/projectLibraryBase/getProjectDetailsStatistics' }, certificationProgressMap:{}, + num:'0', } }, mounted() { + this.num = '0' let boxContentTextColor = document.getElementsByClassName('box-content-text-color') if (boxContentTextColor && boxContentTextColor.length > 0) { boxContentTextColor[0].classList.remove('box-content-text-color') @@ -284,7 +286,9 @@ } ] }) + myChart.off('click') // 重点代码 myChart.on('click', (params) => { + console.log(params) let query = { title: params.seriesName, projectLibraryId: this.$route.query.id @@ -296,7 +300,13 @@ query.operatorType = 'queryPrehomoStatistics' query.status = params.data.status } else if (params.seriesName === this.$t('CertificationProgress')) { - query.operatorType = 'queryCertificationProgressStatistics' + if (this.num == '0'){ + query.operatorType = 'queryCertificationProgressStatisticsAll' + }else if(this.num == '1'){ + query.operatorType = 'queryCertificationProgressStatisticsCar' + }else if(this.num == '2'){ + query.operatorType = 'queryCertificationProgressStatisticsPart' + } query.status = params.data.status } this.$refs.responsibilityListRef.getData(query) @@ -307,6 +317,7 @@ this.$emit('currentStatus', item) }, boxContentClick(num) { + let boxContentTextColor = document.getElementsByClassName('box-content-text-color') if (boxContentTextColor && boxContentTextColor.length > 0) { boxContentTextColor[0].classList.remove('box-content-text-color') @@ -315,6 +326,7 @@ if (boxContentTextText && boxContentTextText.length > 0) { boxContentTextText[num].classList.add('box-content-text-color') } + this.num = num if (num == 0){ this.mainBottomEcharts( this.certificationProgressMap.allMapList || []) }else if(num == 1){