diff --git a/src/views/backOfficeSystem/ResearchJudgment/InformationFlows/ReportStatisticalAnalysis/components/headLayout.vue b/src/views/backOfficeSystem/ResearchJudgment/InformationFlows/ReportStatisticalAnalysis/components/headLayout.vue index 17bccd5..a9bbd51 100644 --- a/src/views/backOfficeSystem/ResearchJudgment/InformationFlows/ReportStatisticalAnalysis/components/headLayout.vue +++ b/src/views/backOfficeSystem/ResearchJudgment/InformationFlows/ReportStatisticalAnalysis/components/headLayout.vue @@ -10,7 +10,16 @@ {{ it.label }} 自定义: - + diff --git a/src/views/backOfficeSystem/ResearchJudgment/InformationFlows/ReportStatisticalAnalysis/components/statusCount.vue b/src/views/backOfficeSystem/ResearchJudgment/InformationFlows/ReportStatisticalAnalysis/components/statusCount.vue index 968c2c0..c2a97dc 100644 --- a/src/views/backOfficeSystem/ResearchJudgment/InformationFlows/ReportStatisticalAnalysis/components/statusCount.vue +++ b/src/views/backOfficeSystem/ResearchJudgment/InformationFlows/ReportStatisticalAnalysis/components/statusCount.vue @@ -31,13 +31,12 @@ const props = defineProps({ }) const legendList = ref([]) watch(() => props.data, (newVal) => { - console.log(newVal,'-------------监听'); if (newVal.length) { const total = newVal.reduce((s, v) => s + v.value, 0); legendList.value = newVal.map((d, i) => ({ name: d.name, - value: 20, - percent: Math.round((d.value / total )* 100), + value: d.value, + percent: total > 0 ? Math.round((d.value / total )* 100) : 0, dotColor: i === 0 ? 'linear-gradient(90deg, #FF8DA7 0%, #D66A8D 100%)': d.color })) nextTick(() => { diff --git a/src/views/backOfficeSystem/ResearchJudgment/InformationFlows/ReportStatisticalAnalysis/index.vue b/src/views/backOfficeSystem/ResearchJudgment/InformationFlows/ReportStatisticalAnalysis/index.vue index 208be33..d299891 100644 --- a/src/views/backOfficeSystem/ResearchJudgment/InformationFlows/ReportStatisticalAnalysis/index.vue +++ b/src/views/backOfficeSystem/ResearchJudgment/InformationFlows/ReportStatisticalAnalysis/index.vue @@ -21,7 +21,7 @@ import XxhjCount from './xxhjCount.vue' import QygktjCount from './qygktjCount.vue' import { ref } from "vue"; const butList=ref(["情报统计分析","预警统计",'全域管控统计','信息汇聚统计']) -const qh = ref('预警统计') +const qh = ref('信息汇聚统计')