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 @@ - - - - - - - - 节点列表 - - - 添加节点 - + + + 节点列表 + + 添加节点 + + - - - - - - {{item.id}} - 编辑 - 查看 - 移除 - - {{item.ip}} - {{item.createTime}} - - - - - 默认 - - - - - - + + + + + + {{item.id}} + 编辑 + 查看 + 移除 + + {{item.ip}} + {{item.createTime}} + + + + + 默认 + + + + 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 @@ - - - - - - - - 拉流代理列表 - - - 添加代理 - 搜索ONVIF - - - - - - - - - + + + 拉流代理列表 + + 添加代理 + 搜索ONVIF + + + + + + + + + + - - - {{scope.row.url}} - - - - {{scope.row.src_url}} - - - - - - - - - {{scope.row.type}} - - - + + + {{scope.row.url}} + + + + {{scope.row.src_url}} + + + + + + + + + {{scope.row.type}} + + + - - - - - 在线 - 离线 - - - - - - - 已启用 - 未启用 - - - - - - - - 已启用 - 未启用 - - - - - - - 已启用 - 未启用 - - - - - - - 已启用 - 未启用 - - - + + + + + 在线 + 离线 + + + + + + + 已启用 + 未启用 + + + + + + + + 已启用 + 未启用 + + + + + + + 已启用 + 未启用 + + + + + + + 已启用 + 未启用 + + + - - - - 播放 - 停用 - 启用 - 删除 - - - - - - - - - - + + + + 播放 + 停用 + 启用 + 删除 + + + + + + + + @@ -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 af6d665f..00000000 --- a/web_src/src/components/UiHeader.vue +++ /dev/null @@ -1,143 +0,0 @@ - - - - 控制台 - 实时监控 - 国标设备 - 电子地图 - 推流列表 - 拉流代理 - 云端录像 - 节点管理 - 国标级联 - 设备树 - 在线文档 - - - - - - - - - - 欢迎,{{this.$cookies.get("session").username}} - 修改密码 - 注销 - - - - - - - diff --git a/web_src/src/components/channelList.vue b/web_src/src/components/channelList.vue index 6eae383d..34f540df 100644 --- a/web_src/src/components/channelList.vue +++ b/web_src/src/components/channelList.vue @@ -1,393 +1,404 @@ - - - - - - - - 通道列表({{parentChannelId ==0 ? deviceId:parentChannelId}}) + + + + + 返回 + + 通道列表({{ parentChannelId == 0 ? deviceId : parentChannelId }}) + + 搜索: + - - - 返回 - 搜索: + 通道类型: + + + + + + 在线状态: + + + + + + + 自动刷新 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ scope.row.longitude }},{{ scope.row.latitude }} + + + + + + + + + + + + + 开启 + 关闭 + + + - 通道类型: - - - - - 在线状态: - - - - - 自动刷新 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {{scope.row.longitude}},{{scope.row.latitude}} - - - - - - - - - - - - - 开启 - 关闭 - - - - - - - - - 播放 - 停止 - 查看 - 设备录象 - - - - - - - - - - - + + + + + 播放 + 停止 + + 查看 + + 设备录象 + + + + + + + + + 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 @@ - - - - - - - - 控制台 - - 节点选择: - - - - {{loadCount}} - - - - - - - {{key}} - - - - {{ getMediaKeyNameFromKey(key1) }} - - {{ value1 }} - - - - 媒体服务器配置 - - - - - - - - - - {{ getNameFromKey(key) }} - - {{ value }} - - + + + 控制台 + + 节点选择: + + + + + {{ loadCount }} + + + + + + + {{ key }} + + + + {{ getMediaKeyNameFromKey(key1) }} + + {{ value1 }} + + + + 媒体服务器配置 + + + + + + + + + + {{ getNameFromKey(key) }} + + {{ value }} + + - - - - - - - - {{ getNameFromKey(key) }} - - - + + + + + + + + {{ getNameFromKey(key) }} + + + 查看 - - {{value}} - - - - - - 已启用 - - - 未启用 - - - {{ value }} - - + + {{ value }} + + + + + + + 已启用 + + + 未启用 + + + {{ value }} + + - - - - - - - - - - - {{ getNameFromKey(key) }} - - {{ value }} - - + + + + + + + + + + + {{ getNameFromKey(key) }} + + {{ value }} + + - - - 信令服务器配置 - - 重启媒体服务器 - - - - table1 - - - table2 - - - - - - - - - - - - 移除 - - - + + 信令服务器配置 + + 重启媒体服务器 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - + + + + + + + + + + + + + + + + + - + + + + + + + + + + + table1 + + + table2 + + + + + + + + + + + + 移除 + + + + + diff --git a/web_src/src/components/live.vue b/web_src/src/components/live.vue index 8d9cb3eb..bcb13895 100644 --- a/web_src/src/components/live.vue +++ b/web_src/src/components/live.vue @@ -45,8 +45,8 @@ + 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 273fa8ca..6128d434 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' @@ -33,89 +34,87 @@ 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', - name: 'devicePosition', - component: devicePosition, - }, - { - path: '/devicePosition/:deviceId', - name: 'devicePosition', - component: devicePosition, - }, - { - path: '/devicePosition/:deviceId/:parentChannelId', - 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: '/test', name: 'deviceTree',