From 7f62101dd3d0f336dfa1811813963df4a5e3ab36 Mon Sep 17 00:00:00 2001 From: xiaoxie Date: Thu, 21 Apr 2022 12:33:10 +0800 Subject: [PATCH 1/3] =?UTF-8?q?1.=E9=87=8D=E6=9E=84=E5=85=A8=E5=B1=80?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E7=BB=93=E6=9E=84=EF=BC=8C=E4=BB=8E=E4=B9=8B?= =?UTF-8?q?=E5=89=8D=E6=AF=8F=E4=B8=AA=E9=A1=B5=E9=9D=A2=E7=8B=AC=E7=AB=8B?= =?UTF-8?q?=E7=BB=98=E5=88=B6=E6=94=B9=E4=B8=BA=E8=B7=AF=E7=94=B1=E5=B5=8C?= =?UTF-8?q?=E5=A5=97=202.=E5=85=A8=E5=B1=80=E9=A1=B5=E9=9D=A2=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=E4=BC=98=E5=8C=96=EF=BC=8C=E5=A6=82=E6=BB=9A=E5=8A=A8?= =?UTF-8?q?=E6=9D=A1=E3=80=81=E6=A0=87=E9=A2=98=E6=A0=8F=E7=AD=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web_src/src/components/CloudRecord.vue | 108 +- web_src/src/components/CloudRecordDetail.vue | 2 +- web_src/src/components/DeviceList.vue | 647 ++++----- web_src/src/components/MediaServerManger.vue | 65 +- web_src/src/components/ParentPlatformList.vue | 144 +- web_src/src/components/PushVideoList.vue | 606 +++++---- web_src/src/components/StreamProxyList.vue | 209 ++- web_src/src/components/UiHeader.vue | 141 -- web_src/src/components/channelList.vue | 735 +++++----- web_src/src/components/control.vue | 1196 +++++++++-------- web_src/src/components/devicePosition.vue | 64 +- web_src/src/components/live.vue | 77 +- web_src/src/components/setting/Media.vue | 2 +- web_src/src/components/setting/Sip.vue | 2 +- web_src/src/components/setting/Web.vue | 2 +- web_src/src/layout/UiHeader.vue | 151 +++ web_src/src/layout/index.vue | 90 ++ web_src/src/router/index.js | 143 +- 18 files changed, 2298 insertions(+), 2086 deletions(-) delete mode 100644 web_src/src/components/UiHeader.vue create mode 100644 web_src/src/layout/UiHeader.vue create mode 100644 web_src/src/layout/index.vue diff --git a/web_src/src/components/CloudRecord.vue b/web_src/src/components/CloudRecord.vue index 78f8a46e..1d0819b0 100644 --- a/web_src/src/components/CloudRecord.vue +++ b/web_src/src/components/CloudRecord.vue @@ -1,67 +1,57 @@ diff --git a/web_src/src/components/MediaServerManger.vue b/web_src/src/components/MediaServerManger.vue index c412bcb9..2e3eeeff 100644 --- a/web_src/src/components/MediaServerManger.vue +++ b/web_src/src/components/MediaServerManger.vue @@ -1,45 +1,38 @@ diff --git a/web_src/src/components/StreamProxyList.vue b/web_src/src/components/StreamProxyList.vue index 9ecb9330..d5533927 100644 --- a/web_src/src/components/StreamProxyList.vue +++ b/web_src/src/components/StreamProxyList.vue @@ -1,115 +1,108 @@ @@ -117,7 +110,7 @@ import streamProxyEdit from './dialog/StreamProxyEdit.vue' import onvifEdit from './dialog/onvifEdit.vue' import devicePlayer from './dialog/devicePlayer.vue' - import uiHeader from './UiHeader.vue' + import uiHeader from '../layout/UiHeader.vue' export default { name: 'streamProxyList', components: { diff --git a/web_src/src/components/UiHeader.vue b/web_src/src/components/UiHeader.vue deleted file mode 100644 index 828dda97..00000000 --- a/web_src/src/components/UiHeader.vue +++ /dev/null @@ -1,141 +0,0 @@ - - - diff --git a/web_src/src/components/channelList.vue b/web_src/src/components/channelList.vue index 6eae383d..59a6f740 100644 --- a/web_src/src/components/channelList.vue +++ b/web_src/src/components/channelList.vue @@ -1,393 +1,406 @@ diff --git a/web_src/src/components/control.vue b/web_src/src/components/control.vue index 742b0917..a0b2834f 100644 --- a/web_src/src/components/control.vue +++ b/web_src/src/components/control.vue @@ -1,584 +1,702 @@ diff --git a/web_src/src/components/devicePosition.vue b/web_src/src/components/devicePosition.vue index 777b11ed..0ffd5fa3 100644 --- a/web_src/src/components/devicePosition.vue +++ b/web_src/src/components/devicePosition.vue @@ -1,43 +1,35 @@ + diff --git a/web_src/src/layout/index.vue b/web_src/src/layout/index.vue new file mode 100644 index 00000000..4fdbc72e --- /dev/null +++ b/web_src/src/layout/index.vue @@ -0,0 +1,90 @@ + + + + + diff --git a/web_src/src/router/index.js b/web_src/src/router/index.js index 05bb1ae6..356bc337 100644 --- a/web_src/src/router/index.js +++ b/web_src/src/router/index.js @@ -1,5 +1,6 @@ import Vue from 'vue' import VueRouter from 'vue-router' +import Layout from "../layout/index.vue" import control from '../components/control.vue' import deviceList from '../components/DeviceList.vue' @@ -32,78 +33,86 @@ export default new VueRouter({ routes: [ { path: '/', - component: control, - }, - { - path: '/live', - component: live, - }, - { - path: '/deviceList', - component: deviceList, - }, - { - path: '/pushVideoList', - component: pushVideoList, - }, - { - path: '/streamProxyList', - component: streamProxyList, + name: 'home', + component: Layout, + redirect: '/control', + children: [ + { + path: '/control', + component: control, + }, + { + path: '/live', + component: live, + }, + { + path: '/deviceList', + component: deviceList, + }, + { + path: '/pushVideoList', + component: pushVideoList, + }, + { + path: '/streamProxyList', + component: streamProxyList, + }, + { + path: '/channelList/:deviceId/:parentChannelId/:count/:page', + name: 'channelList', + component: channelList, + }, + { + path: '/parentPlatformList/:count/:page', + name: 'parentPlatformList', + component: parentPlatformList, + }, + { + path: '/devicePosition/:deviceId/:parentChannelId/:count/:page', + name: 'devicePosition', + component: devicePosition, + }, + { + path: '/cloudRecord', + name: 'cloudRecord', + component: cloudRecord, + }, + { + path: '/mediaServerManger', + name: 'mediaServerManger', + component: mediaServerManger, + }, + { + path: '/setting/web', + name: 'web', + component: web, + }, + { + path: '/setting/sip', + name: 'sip', + component: sip, + }, + { + path: '/setting/media', + name: 'media', + component: media, + }, + { + path: '/play/wasm/:url', + name: 'wasmPlayer', + component: wasmPlayer, + }, + { + path: '/play/rtc/:url', + name: 'rtcPlayer', + component: rtcPlayer, + }, + ] }, { path: '/login', name: '登录', component: login, }, - { - path: '/channelList/:deviceId/:parentChannelId/:count/:page', - name: 'channelList', - component: channelList, - }, - { - path: '/parentPlatformList/:count/:page', - name: 'parentPlatformList', - component: parentPlatformList, - }, - { - path: '/devicePosition/:deviceId/:parentChannelId/:count/:page', - name: 'devicePosition', - component: devicePosition, - }, - { - path: '/cloudRecord', - name: 'cloudRecord', - component: cloudRecord, - }, - { - path: '/mediaServerManger', - name: 'mediaServerManger', - component: mediaServerManger, - }, - { - path: '/setting/web', - name: 'web', - component: web, - }, - { - path: '/setting/sip', - name: 'sip', - component: sip, - }, - { - path: '/setting/media', - name: 'media', - component: media, - }, - { - path: '/play/wasm/:url', - name: 'wasmPlayer', - component: wasmPlayer, - }, - { - path: '/play/rtc/:url', - name: 'rtcPlayer', - component: rtcPlayer, - }, ] }) From 5d8f68ede7e6233aec1e0258af38f49b40cf9ee8 Mon Sep 17 00:00:00 2001 From: xiaoxie Date: Thu, 21 Apr 2022 12:39:09 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E9=80=9A=E9=81=93=E9=A1=B5=E9=80=82?= =?UTF-8?q?=E9=85=8D=E5=85=A8=E5=B1=80=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web_src/src/components/channelList.vue | 164 ++++++++++++------------- 1 file changed, 81 insertions(+), 83 deletions(-) diff --git a/web_src/src/components/channelList.vue b/web_src/src/components/channelList.vue index 59a6f740..34f540df 100644 --- a/web_src/src/components/channelList.vue +++ b/web_src/src/components/channelList.vue @@ -1,15 +1,12 @@ From fd1256acb1c21ac5971df03ab0f132b32e864f1c Mon Sep 17 00:00:00 2001 From: xiaoxie Date: Thu, 21 Apr 2022 12:45:27 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E5=85=A8=E5=B1=80=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E9=80=82=E9=85=8D=E4=B8=89=E4=B8=AA=E9=9A=90=E8=97=8F=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web_src/src/components/setting/Media.vue | 147 +++++++++++------------ web_src/src/components/setting/Sip.vue | 79 ++++++------ web_src/src/components/setting/Web.vue | 15 +-- 3 files changed, 109 insertions(+), 132 deletions(-) diff --git a/web_src/src/components/setting/Media.vue b/web_src/src/components/setting/Media.vue index 0dc6c765..19465b96 100644 --- a/web_src/src/components/setting/Media.vue +++ b/web_src/src/components/setting/Media.vue @@ -1,85 +1,78 @@