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

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'
},
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){