From b2d967115fa3952b740e3d8e35a5624bca0f1020 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8C=83=E5=BC=BA=E5=BC=BA?= <787203167> Date: Fri, 28 Apr 2023 10:26:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E6=8E=A5=E9=A1=B9=E7=9B=AE=E5=BA=93?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E7=9A=84=E9=A1=B9=E7=9B=AE=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/certificationActivity.vue | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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){