From aa7a1369375e66e2a547b2ed3271f5b0e2f57cd6 Mon Sep 17 00:00:00 2001 From: "MJM_2025_05\\polly" Date: Tue, 16 Sep 2025 11:23:05 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=20RTSP=20=E7=95=AB?= =?UTF-8?q?=E9=9D=A2=E5=88=B0=20Dashboard=20Modals?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package-lock.json | 7 + package.json | 1 + src/config/cn.json | 3 + src/config/tw.json | 3 + src/config/us.json | 18 +- .../components/AlertQuery/AlertTableModal.vue | 69 ++++- src/views/dashboard/Dashboard.vue | 2 + .../DashboardEffectScatterModal.vue | 257 ++++++++++++++++-- src/views/rtsp/Rtsp.vue | 179 +++++------- 9 files changed, 392 insertions(+), 147 deletions(-) diff --git a/package-lock.json b/package-lock.json index e2195ed..3f709c7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21,6 +21,7 @@ "dayjs": "^1.11.10", "echarts": "^5.4.3", "flag-icons": "^7.2.3", + "hls.js": "^1.6.12", "jquery-ui": "^1.14.1", "json-schema-generator": "^2.0.6", "mqtt": "^5.10.3", @@ -3056,6 +3057,12 @@ "integrity": "sha512-7xgomUX6ADmcYzFik0HzAxh/73YlKR9bmFzf51CZwR+b6YtzU2m0u49hQCqV6SvlqIqsaxovfwdvbnsw3b/zpg==", "license": "MIT" }, + "node_modules/hls.js": { + "version": "1.6.12", + "resolved": "https://registry.npmjs.org/hls.js/-/hls.js-1.6.12.tgz", + "integrity": "sha512-Pz+7IzvkbAht/zXvwLzA/stUHNqztqKvlLbfpq6ZYU68+gZ+CZMlsbQBPUviRap+3IQ41E39ke7Ia+yvhsehEQ==", + "license": "Apache-2.0" + }, "node_modules/htmlparser2": { "version": "3.10.1", "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-3.10.1.tgz", diff --git a/package.json b/package.json index 2ff7a5e..5638569 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,7 @@ "dayjs": "^1.11.10", "echarts": "^5.4.3", "flag-icons": "^7.2.3", + "hls.js": "^1.6.12", "jquery-ui": "^1.14.1", "json-schema-generator": "^2.0.6", "mqtt": "^5.10.3", diff --git a/src/config/cn.json b/src/config/cn.json index f343290..ad2f09b 100644 --- a/src/config/cn.json +++ b/src/config/cn.json @@ -207,6 +207,9 @@ "completed": "已完成", "worker_id": "工作人员编号", "notice": "注意事项", + "video_storage_location": "告警影片儲存位置", + "copy": "复制", + "copied": "已复制!", "result_description": "结果描述", "upload_file": "上传文件", "enable": "启用", diff --git a/src/config/tw.json b/src/config/tw.json index 951b18a..85bedab 100644 --- a/src/config/tw.json +++ b/src/config/tw.json @@ -207,6 +207,9 @@ "completed": "已完成", "worker_id": "工作人員編號", "notice": "注意事項", + "video_storage_location": "告警影片儲存位置", + "copy": "複製", + "copied": "已複製!", "result_description": "結果描述", "upload_file": "上傳檔案", "enable": "啟用", diff --git a/src/config/us.json b/src/config/us.json index 64e6e9f..b65be7e 100644 --- a/src/config/us.json +++ b/src/config/us.json @@ -207,6 +207,9 @@ "completed": "Completed", "worker_id": "Worker ID", "notice": "Notice", + "video_storage_location": "video storage location", + "copy": "Copy", + "copied": "Copied!", "result_description": "Result Description", "upload_file": "Upload File", "enable": "Enable", @@ -419,12 +422,11 @@ "json_format_text": "Please paste JSON format data", "json_click_text": "Please enter JSON on the left and click the conversion button" }, -"rtsp": { - "title": "Media Streaming", - "start": "Start Detection", - "stop": "Stop Detection", - "selectPath": "Select Save Path", - "displayArea": "RTSP Display Area" - } - + "rtsp": { + "title": "Media Streaming", + "start": "Start Detection", + "stop": "Stop Detection", + "selectPath": "Select Save Path", + "displayArea": "RTSP Display Area" + } } diff --git a/src/views/alert/components/AlertQuery/AlertTableModal.vue b/src/views/alert/components/AlertQuery/AlertTableModal.vue index 49f5a58..7e933f9 100644 --- a/src/views/alert/components/AlertQuery/AlertTableModal.vue +++ b/src/views/alert/components/AlertQuery/AlertTableModal.vue @@ -1,5 +1,5 @@