From d6addefad5e6870b16fd57677197c91d511658b7 Mon Sep 17 00:00:00 2001 From: donghao Date: Fri, 13 Jun 2025 14:39:40 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=BE=AE=E8=B0=83=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dataView/components/Type1ObjectDetect.vue | 45 +++++++++++-------- .../components/Type2LicensePlateRecog.vue | 21 +++++---- .../dataView/components/Type3TargetRecog.vue | 6 +-- 3 files changed, 42 insertions(+), 30 deletions(-) diff --git a/src/views/dataView/components/Type1ObjectDetect.vue b/src/views/dataView/components/Type1ObjectDetect.vue index 5f8acaf..9d46db1 100644 --- a/src/views/dataView/components/Type1ObjectDetect.vue +++ b/src/views/dataView/components/Type1ObjectDetect.vue @@ -2,7 +2,7 @@ * @Author: donghao donghao@supervision.ltd * @Date: 2025-06-12 10:26:59 * @LastEditors: donghao donghao@supervision.ltd - * @LastEditTime: 2025-06-13 13:38:24 + * @LastEditTime: 2025-06-13 14:17:19 * @FilePath: \Web-Traffic-Police\src\views\dataView\components\Type1ObjectDetect.vue * @Description: 目标检测 --> @@ -14,9 +14,9 @@
@@ -26,24 +26,31 @@ controls >
-
+
酒精度数: - {{ item["酒精度数"] }}mg/100ml + {{ item["酒精度数"] }}mg/100ml
语音角色: -

- 角色{{Number( k ) + 1}}: - {{ transformKeyframes(v) }} -

- +
+

+ 角色{{ Number(k) + 1 }}: + {{ + transformKeyframes(v) + }} +

+
-
+
关键帧: - {{ transformKeyframes(item[`${title}时间`]) }} + {{ + transformKeyframes(item[`${title}时间`]) + }}
@@ -86,14 +93,14 @@ function changePage({ page, pageSize }) { } function transformKeyframes(data) { // 直接遍历数组 - const result = data.map(item => { + const result = data.map((item) => { // 假设每个 item 是 [开始时间, 结束时间] 的数组 if (Array.isArray(item) && item.length === 2) { return `${item[0]}-${item[1]}`; } - return ''; // 处理异常情况 + return ""; // 处理异常情况 }); - + // 过滤空值并拼接成字符串 return `["${result.filter(Boolean).join('", "')}"]`; } diff --git a/src/views/dataView/components/Type2LicensePlateRecog.vue b/src/views/dataView/components/Type2LicensePlateRecog.vue index aeb3129..ab2ac97 100644 --- a/src/views/dataView/components/Type2LicensePlateRecog.vue +++ b/src/views/dataView/components/Type2LicensePlateRecog.vue @@ -2,7 +2,7 @@ * @Author: donghao donghao@supervision.ltd * @Date: 2025-06-12 10:27:06 * @LastEditors: donghao donghao@supervision.ltd - * @LastEditTime: 2025-06-13 13:27:46 + * @LastEditTime: 2025-06-13 14:07:24 * @FilePath: \Web-Traffic-Police\src\views\dataView\components\Type2LicensePlateRecog.vue * @Description: 车牌识别 人脸检测 --> @@ -30,8 +30,8 @@ )" :key="index" > -
- +
+

@@ -48,16 +48,21 @@ @@ -98,6 +103,7 @@ const objectRegTypeMap = { '黄': "#E3A108", "蓝": "#3B64AC", "绿": "#2BC284", + "白": "#1d2129", } const pagination = ref({ page: 1, pageSize: 8 }); const currentIndex = ref(0); // 当前视频索引 @@ -121,6 +127,7 @@ function convertFRArrToObjects() { for (let i = 0; i < currentInfo.value?.["人脸图片"].length; i++) { result.push({ ["人脸图片"]: currentInfo.value?.["人脸图片"][i], + faceNO: (Number(i) + 1 < 10 ? "0" : "") + (Number(i) + 1), }); } return result; @@ -246,9 +253,7 @@ watch( border-radius: 4px 4px 0 0; } } - .type-second-mid-crad-image-face-Recog{ - height: 232px; - } + .type-second-mid-crad-text { box-sizing: border-box; width: 100%; diff --git a/src/views/dataView/components/Type3TargetRecog.vue b/src/views/dataView/components/Type3TargetRecog.vue index 5732005..c0216d6 100644 --- a/src/views/dataView/components/Type3TargetRecog.vue +++ b/src/views/dataView/components/Type3TargetRecog.vue @@ -2,7 +2,7 @@ * @Author: donghao donghao@supervision.ltd * @Date: 2025-06-12 10:37:10 * @LastEditors: donghao donghao@supervision.ltd - * @LastEditTime: 2025-06-13 13:13:42 + * @LastEditTime: 2025-06-13 14:13:16 * @FilePath: \Web-Traffic-Police\src\views\dataView\components\Type4AudioDetection.vue * @Description: 递烟 --> @@ -50,8 +50,8 @@ )" :key="index" > -

- +
+
检测类型: {{ item["检测类型"] }}