对接项目库详情的项目状态

This commit is contained in:
范强强
2023-04-28 10:26:11 +08:00
parent f89da954ca
commit b2d967115f
@@ -51,9 +51,11 @@
getProjectDetailsStatistics: '/project/projectLibraryBase/getProjectDetailsStatistics' getProjectDetailsStatistics: '/project/projectLibraryBase/getProjectDetailsStatistics'
}, },
certificationProgressMap:{}, certificationProgressMap:{},
num:'0',
} }
}, },
mounted() { mounted() {
this.num = '0'
let boxContentTextColor = document.getElementsByClassName('box-content-text-color') let boxContentTextColor = document.getElementsByClassName('box-content-text-color')
if (boxContentTextColor && boxContentTextColor.length > 0) { if (boxContentTextColor && boxContentTextColor.length > 0) {
boxContentTextColor[0].classList.remove('box-content-text-color') boxContentTextColor[0].classList.remove('box-content-text-color')
@@ -284,7 +286,9 @@
} }
] ]
}) })
myChart.off('click') // 重点代码
myChart.on('click', (params) => { myChart.on('click', (params) => {
console.log(params)
let query = { let query = {
title: params.seriesName, title: params.seriesName,
projectLibraryId: this.$route.query.id projectLibraryId: this.$route.query.id
@@ -296,7 +300,13 @@
query.operatorType = 'queryPrehomoStatistics' query.operatorType = 'queryPrehomoStatistics'
query.status = params.data.status query.status = params.data.status
} else if (params.seriesName === this.$t('CertificationProgress')) { } 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 query.status = params.data.status
} }
this.$refs.responsibilityListRef.getData(query) this.$refs.responsibilityListRef.getData(query)
@@ -307,6 +317,7 @@
this.$emit('currentStatus', item) this.$emit('currentStatus', item)
}, },
boxContentClick(num) { boxContentClick(num) {
let boxContentTextColor = document.getElementsByClassName('box-content-text-color') let boxContentTextColor = document.getElementsByClassName('box-content-text-color')
if (boxContentTextColor && boxContentTextColor.length > 0) { if (boxContentTextColor && boxContentTextColor.length > 0) {
boxContentTextColor[0].classList.remove('box-content-text-color') boxContentTextColor[0].classList.remove('box-content-text-color')
@@ -315,6 +326,7 @@
if (boxContentTextText && boxContentTextText.length > 0) { if (boxContentTextText && boxContentTextText.length > 0) {
boxContentTextText[num].classList.add('box-content-text-color') boxContentTextText[num].classList.add('box-content-text-color')
} }
this.num = num
if (num == 0){ if (num == 0){
this.mainBottomEcharts( this.certificationProgressMap.allMapList || []) this.mainBottomEcharts( this.certificationProgressMap.allMapList || [])
}else if(num == 1){ }else if(num == 1){