From c0441d23f9977c79ce4254272e4fa9c40b79ec9f Mon Sep 17 00:00:00 2001
From: buaixuexideshitongxue <2936013465@qq.com>
Date: Thu, 5 Nov 2026 17:42:49 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B7=BB=E5=8A=A0=E5=8D=95=E4=BD=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/negativeInfo/police-dialog.vue | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/src/components/negativeInfo/police-dialog.vue b/src/components/negativeInfo/police-dialog.vue
index f3132c4..5a318b2 100644
--- a/src/components/negativeInfo/police-dialog.vue
+++ b/src/components/negativeInfo/police-dialog.vue
@@ -46,7 +46,7 @@
姓名{{ policeInfo.name || "/" }}
性别{{ policeInfo.idCode ? getGenderFromIdCode(policeInfo.idCode) : "/" }}
年龄{{ policeAge }}
- 所属单位{{ activeRow.parentDepartName ? activeRow.parentDepartName + "/" : "" }}{{ activeRow.departName || "/" }}
+ 所属单位{{ departmentName }}
警号{{ policeInfo.empNo || "/" }}
身份证号{{ policeInfo.idCode || "/" }}
入职时间{{ policeInfo.employmentDate || "/" }}
@@ -139,6 +139,11 @@ const emit = defineEmits(["update:modelValue"]);
const time = ref([]);
const policeInfo = ref({});
+const departmentInfo = ref({});
+const departmentName = computed(() => {
+ const info = departmentInfo.value.departName ? departmentInfo.value : props.activeRow;
+ return [info.parentDepartName, info.departName].filter(Boolean).join("/") || "/";
+});
const policeAge = computed(() => {
const idCode = String(policeInfo.value.idCode || "").trim();
let birthText;
@@ -225,6 +230,7 @@ async function getProfileData() {
negativeList.value = data.negatives;
policeInfo.value = data.policeInfo;
+ departmentInfo.value = { departName: data.departName, parentDepartName: data.parentDepartName };
negativeInfo.value = data.negativeInfo;
problemSourcesPieOptions.value.series[0].data = data.problemSourcesList;
problemSourcesPieOptions.value.title.text = String(data.negativeInfo.size ?? 0);