From b43534488fc7e14718363b9f9cff0552e524fa71 Mon Sep 17 00:00:00 2001 From: qingzhengli <1204552371@qq.com> Date: Tue, 2 Apr 2024 17:01:52 +0800 Subject: [PATCH 01/21] =?UTF-8?q?feat=20=E6=9B=B4=E6=96=B0=E6=91=84?= =?UTF-8?q?=E5=83=8F=E5=A4=B4=E6=92=AD=E6=94=BE=E9=94=99=E8=AF=AF=E6=8F=90?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../JiHeExpressway/components/Video/videoStream.js | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/ruoyi-ui/src/views/JiHeExpressway/components/Video/videoStream.js b/ruoyi-ui/src/views/JiHeExpressway/components/Video/videoStream.js index dc4b6fff..d52db42b 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/components/Video/videoStream.js +++ b/ruoyi-ui/src/views/JiHeExpressway/components/Video/videoStream.js @@ -8,6 +8,11 @@ import { getNearCameraNew, } from "@screen/pages/Home/components/RoadAndEvents/utils/httpList.js"; +const ErrorTypesCn = { + NetworkError: "网络错误", + MediaError: "媒体错误", + OtherError: "其他错误", +}; /** * flv 视频测试 * https://bilibili.github.io/flv.js/demo/ @@ -96,7 +101,10 @@ async function getUrl({ camId, url, pileNum, rangeIndex } = {}) { url = data.liveUrl; } - if (!url) return Promise.reject("获取 url 失败!"); + if (!url) { + Message.warning("未获取到当前相机的播放地址"); + return Promise.reject("获取 url 失败!"); + } return url; } @@ -187,7 +195,9 @@ export class HttpLivePlayer { console.log("errorType", errorType); console.log("errorDetail", errorDetail); console.log("errorInfo", errorInfo); - + Message.warning( + `视频流加载失败, ${ErrorTypesCn[errorType] || "其他错误"}` + ); this.initLiveVideo(); }); From b83f2bb4e10cdfcf13d112437539b185fc6a0dee Mon Sep 17 00:00:00 2001 From: zhangzhang <1747194829@qq.com> Date: Tue, 2 Apr 2024 17:52:00 +0800 Subject: [PATCH 02/21] =?UTF-8?q?bug=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../event/event/EventDetailDialog/index.vue | 4 +- .../postTrendsMonth/assets/charts.js | 19 +++++--- .../postTrendsMonth/assets/charts2.js | 47 ++++++++++++------- .../postTrendsMonth/assets/charts3.js | 11 ++++- .../components/postTrendsMonth/index.vue | 2 +- .../components/daylyAnalysis/assets/charts.js | 2 +- .../PublishingChannelManagement/index.vue | 2 +- 7 files changed, 57 insertions(+), 30 deletions(-) diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/EventDetailDialog/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/EventDetailDialog/index.vue index 0fa76476..4781411f 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/EventDetailDialog/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/EventDetailDialog/index.vue @@ -1,9 +1,9 @@