diff --git a/network/api/index.js b/network/api/index.js
index a376bf4..dc94364 100644
--- a/network/api/index.js
+++ b/network/api/index.js
@@ -5,6 +5,8 @@ export default {
iotsApi:require("./iots/index.js").default,
// 组态模块
configurationApi:require("./configuration/index.js").default,
+ // 视频监控模块
+ videoApi:require("./video/index.js").default,
// 消息模块
newApi:require("./new.js").default,
diff --git a/network/api/video/index.js b/network/api/video/index.js
new file mode 100644
index 0000000..33acdcc
--- /dev/null
+++ b/network/api/video/index.js
@@ -0,0 +1,34 @@
+import request from "../../request.js"
+
+export default {
+ // 获取监控设备列表
+ getVideoList(data){
+ return new Promise((resolve, reject) => {
+ request.TokenRequest({
+ url: '/video/admin/video/list',
+ method: 'GET',
+ },data)
+ .then((res) =>{
+ resolve(res);
+ }).catch(err =>{
+ reject(err);
+ })
+ })
+ },
+
+ // 获取监控通道列表
+ getVideoChannelList(data){
+ return new Promise((resolve, reject) => {
+ request.TokenRequest({
+ url: '/video/admin/video/channel/list',
+ method: 'GET',
+ },data)
+ .then((res) =>{
+ resolve(res);
+ }).catch(err =>{
+ reject(err);
+ })
+ })
+ },
+
+}
\ No newline at end of file
diff --git a/pages.json b/pages.json
index d3dd52b..c3bcee0 100644
--- a/pages.json
+++ b/pages.json
@@ -285,6 +285,33 @@
}
}
]
+ },
+ // 视频监控
+ {
+ "root": "pages/video/",
+ "pages": [
+ {
+ "path": "video-list",
+ "style": {
+ "navigationBarTitleText": "视频监控列表"
+ // "navigationStyle":"custom"
+ }
+ },
+ {
+ "path": "video-detail",
+ "style": {
+ // "navigationStyle": "default",
+ "navigationBarTitleText": "视频监控详情"
+ // "navigationBarBackgroundColor":"#1b85e9",
+ // "navigationBarTextStyle":"white",
+ // "pageOrientation":"landscape"
+ // // #ifdef APP-PLUS
+ // ,
+ // "navigationStyle":"custom"
+ // // #endif
+ }
+ }
+ ]
}
],
"globalStyle": {
@@ -363,6 +390,11 @@
"path": "pages/tabbar/my", //启动页面,必选
"query": "" //启动参数,在页面的onLoad函数里面得到
},
+ {
+ "name": "视频监控列表", //模式名称
+ "path": "pages/video/video-list", //启动页面,必选
+ "query": "" //启动参数,在页面的onLoad函数里面得到
+ },
{
"name": "消息", //模式名称
"path": "pages/tabbar/new", //启动页面,必选
diff --git a/pages/video/video-detail.vue b/pages/video/video-detail.vue
new file mode 100644
index 0000000..213a0bc
--- /dev/null
+++ b/pages/video/video-detail.vue
@@ -0,0 +1,440 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 退出全屏
+
+
+
+
+
+
+ {{dataObj.name}}
+
+
+
+
+
+ 速度:{{netStatus.netSpeed==undefined?'':netStatus.netSpeed}}
+ 网络抖动:{{netStatus.netJitter==undefined?'':netStatus.netJitter}}
+ 视频帧率:{{netStatus.videoFPS==undefined?'':netStatus.videoFPS}}
+ 状态码:{{videoStatus}}
+
+
+
+
+
+
+
+ 云台控制
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 显示
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/video/video-list.vue b/pages/video/video-list.vue
new file mode 100644
index 0000000..7d1a284
--- /dev/null
+++ b/pages/video/video-list.vue
@@ -0,0 +1,132 @@
+
+
+
+
+
+
+
+
+
+ {{item.name}}
+ {{item.children?`(${item.children.length})`:''}}
+
+
+
+
+ {{val.label}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file