From 73e26c835576818760e7f17760dd762b1cf4b0d9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=A3=8E=E8=8A=B1=E4=B8=80=E4=B8=96=E6=9C=88?=
<1149505133@qq.com>
Date: Tue, 9 Jul 2024 23:25:24 +0800
Subject: [PATCH] =?UTF-8?q?=20feat(=E8=A7=86=E9=A2=91):=20=E5=AE=8C?=
=?UTF-8?q?=E6=88=90=E8=A7=86=E9=A2=91=E5=88=97=E8=A1=A8=E5=92=8C=E8=A7=86?=
=?UTF-8?q?=E9=A2=91=E8=AF=A6=E6=83=85=E9=A1=B5=E9=9D=A2=EF=BC=8C=E5=8D=87?=
=?UTF-8?q?=E7=BA=A71.0.26=E7=89=88=E6=9C=AC?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
manifest.json | 4 +-
pages/video/video-detail.vue | 112 +++++++++++------
pages/video/video-list.vue | 233 +++++++++++++++++++++++++++++------
3 files changed, 270 insertions(+), 79 deletions(-)
diff --git a/manifest.json b/manifest.json
index a68c6a2..a203e42 100644
--- a/manifest.json
+++ b/manifest.json
@@ -2,8 +2,8 @@
"name" : "物联网可视化",
"appid" : "__UNI__604B8F1",
"description" : "",
- "versionName" : "1.0.25",
- "versionCode" : 1025,
+ "versionName" : "1.0.26",
+ "versionCode" : 1026,
"transformPx" : false,
/* 5+App特有相关 */
"app-plus" : {
diff --git a/pages/video/video-detail.vue b/pages/video/video-detail.vue
index 213a0bc..8065bc9 100644
--- a/pages/video/video-detail.vue
+++ b/pages/video/video-detail.vue
@@ -1,10 +1,22 @@
-
+
-
+
- -->
-
-
+
+
+ #endif -->
{{dataObj.name}}
+
+ 通道名称:{{dataObj.channeName}}
+
+
-
-
-
-
-
- {{item.name}}
- {{item.children?`(${item.children.length})`:''}}
+
+
+
+
+
+
+
-
-
-
- {{val.label}}
+
+
+ {{item.name}}
+
+
+ 设备型号:{{item.model||'-'}}
+
-
-
+
+
+
+ 设备类型:{{item.deviceType||'-'}}
+
+
+ 提供商:{{item.provider||'-'}}
+
+
+ 厂家:{{item.manufacturer||'-'}}
+
+
+ 创建时间:{{item.createdAt}}
+
+
+
+ 查询通道
+
+
+
+
+
-
@@ -59,11 +98,19 @@
mixins: [MescrollMixin],
data(){
return {
+ customStyle: {
+ padding: '30rpx 30rpx', // 注意驼峰命名,并且值必须用引号包括,因为这是对象
+ margin:'0'
+ },
+ customStyle2: {
+ padding: '30rpx 40rpx', // 注意驼峰命名,并且值必须用引号包括,因为这是对象
+ margin:'0'
+ },
upOption:{
noMoreSize: 4,
textNoMore: '---- 已经到底啦 ----',
empty:{
- tip: '~ 搜索无数据 ~' // 提示
+ tip: '~ 暂无监控设备 ~' // 提示
}
},
dataList:[],
@@ -84,6 +131,9 @@
let curPageData = res.data && res.data.list;
let curPageLen = curPageData && curPageData.length || 0;
let totalSize = res.data.totalCount;
+ curPageData.forEach((item,index)=>{
+ curPageData[index].channelList = []
+ })
this.$nextTick(()=>{
// 隐藏下拉刷新和上拉加载的状态;
this.mescroll.endBySize(curPageLen, totalSize);
@@ -101,32 +151,137 @@
this.$u.toast('服务器开小差了呢,请您稍后再试')
})
},
- goDetail(item){
- console.log("跳转详情",item);
- let obj = {
- url:encodeURIComponent(item.url),
- name:item.label
- }
- uni.navigateTo({
- url:'./video-detail?obj='+encodeURIComponent(JSON.stringify(item))
+ getChanneList(id,index){
+ console.log("id",id,index)
+ this.$api.videoApi.getVideoChannelList({pid: id,page:1,pageSize:999}).then(res => {
+ if(res.code == 0){
+ if(res.data.list && res.data.list.length>0){
+ console.log("this.dataList[index]",this.dataList[index])
+ this.$nextTick(()=>{
+ this.$set(this.dataList[index],'channelList',res.data.list)
+ })
+ }else{
+ this.$u.toast('通道为空');
+ this.$nextTick(()=>{
+ this.$set(this.dataList[index],'channelList',[])
+ })
+ }
+
+ }else{
+ this.$u.toast(res.msg);
+ }
+ }, error => {
+ this.$u.toast('服务器开小差了呢,请您稍后再试')
})
+ },
+ goDetail(index,i){
+ console.log("111")
+ let deviceObj = this.dataList[index];
+ let channeObj = this.dataList[index].channelList[i];
+ if(channeObj.hdlUrl){
+ uni.navigateTo({
+ url:'./video-detail?deviceObj='+encodeURIComponent(JSON.stringify(deviceObj))+ '&channeObj='+encodeURIComponent(JSON.stringify(channeObj))
+ })
+ }else{
+ this.$u.toast('获取通道地址错误')
+ }
+
}
}
}
-
\ No newline at end of file