From f5494c0b9595565202f289ae53e0337f3930c6cd Mon Sep 17 00:00:00 2001 From: lin <648540858@qq.com> Date: Wed, 10 Jun 2026 18:15:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8B=86=E5=88=86=E6=92=AD=E6=94=BE=E5=99=A8?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E5=92=8C=E4=BA=91=E5=8F=B0=E6=8E=A7=E5=88=B6?= =?UTF-8?q?=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/api/frontEnd.js | 2 +- web/src/views/common/playerTabs.vue | 152 +++ web/src/views/common/ptzControls.vue | 233 +++++ web/src/views/common/ptzPrecise.vue | 65 ++ web/src/views/common/ptzPreset.vue | 106 +- web/src/views/device/channel/index.vue | 20 +- .../views/device/common/playerPtzPanel.vue | 124 +++ web/src/views/device/common/ptzConfig.vue | 112 +++ .../views/device/common/ptzCruiseConfig.vue | 200 ++++ .../views/device/common/ptzPresetConfig.vue | 156 +++ web/src/views/device/common/ptzScanConfig.vue | 107 ++ .../views/device/common/ptzSwitchConfig.vue | 42 + .../views/device/common/ptzWiperConfig.vue | 34 + web/src/views/dialog/devicePlayer.vue | 946 ++++-------------- 14 files changed, 1441 insertions(+), 858 deletions(-) create mode 100644 web/src/views/common/playerTabs.vue create mode 100644 web/src/views/common/ptzControls.vue create mode 100644 web/src/views/common/ptzPrecise.vue create mode 100644 web/src/views/device/common/playerPtzPanel.vue create mode 100644 web/src/views/device/common/ptzConfig.vue create mode 100644 web/src/views/device/common/ptzCruiseConfig.vue create mode 100644 web/src/views/device/common/ptzPresetConfig.vue create mode 100644 web/src/views/device/common/ptzScanConfig.vue create mode 100644 web/src/views/device/common/ptzSwitchConfig.vue create mode 100644 web/src/views/device/common/ptzWiperConfig.vue diff --git a/web/src/api/frontEnd.js b/web/src/api/frontEnd.js index 47c51323a..d59ccae27 100644 --- a/web/src/api/frontEnd.js +++ b/web/src/api/frontEnd.js @@ -182,7 +182,7 @@ export function wiper([deviceId, channelDeviceId, command]) { }) } -export function ptz([deviceId, channelId, command, horizonSpeed, verticalSpeed, zoomSpeed]) { +export function ptz({ deviceId, channelId, command, horizonSpeed, verticalSpeed, zoomSpeed }) { return request({ method: 'get', url: `/api/front-end/ptz/${deviceId}/${channelId}`, diff --git a/web/src/views/common/playerTabs.vue b/web/src/views/common/playerTabs.vue new file mode 100644 index 000000000..aa15ed9bb --- /dev/null +++ b/web/src/views/common/playerTabs.vue @@ -0,0 +1,152 @@ + + + + + diff --git a/web/src/views/common/ptzControls.vue b/web/src/views/common/ptzControls.vue new file mode 100644 index 000000000..59ccb8c04 --- /dev/null +++ b/web/src/views/common/ptzControls.vue @@ -0,0 +1,233 @@ + + + + + diff --git a/web/src/views/common/ptzPrecise.vue b/web/src/views/common/ptzPrecise.vue new file mode 100644 index 000000000..6831e6c8b --- /dev/null +++ b/web/src/views/common/ptzPrecise.vue @@ -0,0 +1,65 @@ + + + + + diff --git a/web/src/views/common/ptzPreset.vue b/web/src/views/common/ptzPreset.vue index debd76b31..5e641eaea 100644 --- a/web/src/views/common/ptzPreset.vue +++ b/web/src/views/common/ptzPreset.vue @@ -3,46 +3,22 @@ - {{ item.presetName?item.presetName:item.presetId }} + {{ item.presetName || item.presetId }} - - - - + 添加 diff --git a/web/src/views/device/channel/index.vue b/web/src/views/device/channel/index.vue index eb26e64eb..a32eaa000 100755 --- a/web/src/views/device/channel/index.vue +++ b/web/src/views/device/channel/index.vue @@ -1,6 +1,6 @@ @@ -216,12 +219,14 @@ + + diff --git a/web/src/views/device/common/ptzConfig.vue b/web/src/views/device/common/ptzConfig.vue new file mode 100644 index 000000000..3da124481 --- /dev/null +++ b/web/src/views/device/common/ptzConfig.vue @@ -0,0 +1,112 @@ + + + + + diff --git a/web/src/views/device/common/ptzCruiseConfig.vue b/web/src/views/device/common/ptzCruiseConfig.vue new file mode 100644 index 000000000..68e346974 --- /dev/null +++ b/web/src/views/device/common/ptzCruiseConfig.vue @@ -0,0 +1,200 @@ + + + diff --git a/web/src/views/device/common/ptzPresetConfig.vue b/web/src/views/device/common/ptzPresetConfig.vue new file mode 100644 index 000000000..feb492f8a --- /dev/null +++ b/web/src/views/device/common/ptzPresetConfig.vue @@ -0,0 +1,156 @@ + + + diff --git a/web/src/views/device/common/ptzScanConfig.vue b/web/src/views/device/common/ptzScanConfig.vue new file mode 100644 index 000000000..a9dcd2481 --- /dev/null +++ b/web/src/views/device/common/ptzScanConfig.vue @@ -0,0 +1,107 @@ + + + diff --git a/web/src/views/device/common/ptzSwitchConfig.vue b/web/src/views/device/common/ptzSwitchConfig.vue new file mode 100644 index 000000000..8ba49e2dd --- /dev/null +++ b/web/src/views/device/common/ptzSwitchConfig.vue @@ -0,0 +1,42 @@ + + + diff --git a/web/src/views/device/common/ptzWiperConfig.vue b/web/src/views/device/common/ptzWiperConfig.vue new file mode 100644 index 000000000..c6203ccdc --- /dev/null +++ b/web/src/views/device/common/ptzWiperConfig.vue @@ -0,0 +1,34 @@ + + + diff --git a/web/src/views/dialog/devicePlayer.vue b/web/src/views/dialog/devicePlayer.vue index d5ce75bc1..7de1152d2 100755 --- a/web/src/views/dialog/devicePlayer.vue +++ b/web/src/views/dialog/devicePlayer.vue @@ -5,319 +5,119 @@ v-if="showVideoDialog" v-el-drag-dialog title="视频播放" - top="0" - append-to-body - width="40vw" + top="2vh" + width="65vw" :close-on-click-modal="false" :visible.sync="showVideoDialog" @close="close()" > -
- - - + +
+
+ +
+
+ +
+
+ +
- - - - - - - - - -
-
- - - -
- 播放地址: - - - -
-
- iframe: - - - -
-
- 资源地址: - - - - - 更多地址 - - - - FLV: - {{ streamInfo.flv }} - - - FLV(https): - {{ streamInfo.https_flv }} - - - FLV(ws): - {{ streamInfo.ws_flv }} - - - FLV(wss): - {{ streamInfo.wss_flv }} - - - FMP4: - {{ streamInfo.fmp4 }} - - - FMP4(https): - {{ streamInfo.https_fmp4 }} - - - FMP4(ws): - {{ streamInfo.ws_fmp4 }} - - - FMP4(wss): - {{ streamInfo.wss_fmp4 }} - - - HLS: - {{ streamInfo.hls }} - - - HLS(https): - {{ streamInfo.https_hls }} - - - HLS(ws): - {{ streamInfo.ws_hls }} - - - HLS(wss): - {{ streamInfo.wss_hls }} - - - TS: - {{ streamInfo.ts }} - - - TS(https): - {{ streamInfo.https_ts }} - - - TS(ws): - {{ streamInfo.ws_ts }} - - - TS(wss): - {{ streamInfo.wss_ts }} - - - RTC: - {{ streamInfo.rtc }} - - - RTCS: - {{ streamInfo.rtcs }} - - - RTMP: - {{ streamInfo.rtmp }} - - - RTMPS: - {{ streamInfo.rtmps }} - - - RTSP: - {{ streamInfo.rtsp }} - - - RTSPS: - {{ streamInfo.rtsps }} - - - - - -
-
- - - -
-
- -
-
- -
-
-
- -
-
-
- -
-
-
- -
-
-
-
-
-
- -
-
-
-
-
- -
-
- -
-
-
-
- -
-
- -
-
-
-
- -
-
- -
-
-
-
-
- - - - - - - - - - - - - -
-
- - - - - -
- - - - - - 喊话(Broadcast) - 对讲(Talk) - -
-
- + + -

- 正在释放资源 - 点击开始对讲 - 等待接通中... - 请说话 -

+
+ +
+
+ 播放地址: + + + +
+
+ iframe: + + + +
+
+ 资源地址: + + + + 更多地址 + + FLV:{{ streamInfo.flv }} + FLV(https):{{ streamInfo.https_flv }} + FLV(ws):{{ streamInfo.ws_flv }} + FLV(wss):{{ streamInfo.wss_flv }} + FMP4:{{ streamInfo.fmp4 }} + FMP4(https):{{ streamInfo.https_fmp4 }} + FMP4(ws):{{ streamInfo.ws_fmp4 }} + FMP4(wss):{{ streamInfo.wss_fmp4 }} + HLS:{{ streamInfo.hls }} + HLS(https):{{ streamInfo.https_hls }} + HLS(ws):{{ streamInfo.ws_hls }} + HLS(wss):{{ streamInfo.wss_hls }} + TS:{{ streamInfo.ts }} + TS(https):{{ streamInfo.https_ts }} + TS(ws):{{ streamInfo.ws_ts }} + TS(wss):{{ streamInfo.wss_ts }} + RTC:{{ streamInfo.rtc }} + RTCS:{{ streamInfo.rtcs }} + RTMP:{{ streamInfo.rtmp }} + RTMPS:{{ streamInfo.rtmps }} + RTSP:{{ streamInfo.rtsp }} + RTSPS:{{ streamInfo.rtsps }} + + + +
+
+
+ + + + +
+ + 喊话(Broadcast) + 对讲(Talk) + +
+
+ +

+ 正在释放资源 + 点击开始对讲 + 等待接通中... + 请说话 +

+
+
+ +
-
- - -
@@ -326,77 +126,41 @@