From e9050167f5eca464ff44da37a505f4e729d46ff3 Mon Sep 17 00:00:00 2001
From: buaixuexideshitongxue <2936013465@qq.com>
Date: Thu, 5 Nov 2026 18:24:40 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20=E9=A5=BC=E7=8A=B6=E5=9B=BE=E6=98=BE?=
=?UTF-8?q?=E7=A4=BA=E4=B8=8D=E5=AF=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/negativeInfo/depart-dialog.vue | 25 +++++++++++++------
1 file changed, 17 insertions(+), 8 deletions(-)
diff --git a/src/components/negativeInfo/depart-dialog.vue b/src/components/negativeInfo/depart-dialog.vue
index fe54d71..c1eea35 100644
--- a/src/components/negativeInfo/depart-dialog.vue
+++ b/src/components/negativeInfo/depart-dialog.vue
@@ -47,7 +47,7 @@
问题总数
- {{ negativeInfo.size ?? 0 }}
+ {{ businessProblemTotal }}
| 业务类别 | 业务量 | 问题数 |
@@ -172,6 +172,11 @@ const departTitle = computed(() =>
[departInfo.value.parentName, departInfo.value.name].filter(Boolean).join(" / ") || "单位问题详情"
);
const negativeInfo = ref({});
+const businessProblemTotal = computed(() =>
+ Number(negativeInfo.value.jcj110Size ?? 0)
+ + Number(negativeInfo.value.jcj122Size ?? 0)
+ + Number(negativeInfo.value.zfbaSize ?? 0)
+);
const negativeList = ref([]);
@@ -189,12 +194,15 @@ async function getProfileData() {
departInfo.value = data.departInfo;
negativeInfo.value = data.negativeInfo;
complaintCount.value = data.complaintCount ?? 0;
- problemSourcesPieOptions.value.series[0].data = data.problemSourcesList;
- problemSourcesPieOptions.value.title.text = String(data.negativeInfo.size ?? 0);
- businessTypePieOptions.value.series[0].data = data.businessTypeList;
- businessTypePieOptions.value.title.text = String(data.negativeInfo.size ?? 0);
- problemTypePieOptions.value.series[0].data = data.problemTypeList;
- problemTypePieOptions.value.title.text = String(data.negativeInfo.size ?? 0);
+ for (const [option, items] of [
+ [problemSourcesPieOptions, data.problemSourcesList],
+ [businessTypePieOptions, data.businessTypeList],
+ [problemTypePieOptions, data.problemTypeList],
+ ]) {
+ const categories = items || [];
+ option.value.series[0].data = categories;
+ option.value.title.text = String(categories.reduce((total, item) => total + Number(item.value ?? 0), 0));
+ }
policeBarList.value = data.policeBarList;
policeLeadBarList.value = data.policeLeadBarList;
@@ -291,10 +299,11 @@ const policeLeadBarList = ref([]);
for (const pieOption of [problemSourcesPieOptions, businessTypePieOptions, problemTypePieOptions]) {
Object.assign(pieOption.value, {
+ tooltip: { trigger: "item", formatter: "{b}
数量:{c}
占比:{d}%" },
color: ["#5B8FF9", "#5AD8A6", "#F6BD16", "#F6903D", "#6DC8EC"],
title: {
text: "0",
- subtext: "问题总数",
+ subtext: "分类统计总数",
left: "30%",
top: "39%",
textAlign: "center",