diff --git a/manifest.json b/manifest.json index e11dff6..bc37c43 100644 --- a/manifest.json +++ b/manifest.json @@ -2,8 +2,8 @@ "name" : "物联网可视化", "appid" : "__UNI__604B8F1", "description" : "", - "versionName" : "1.0.27", - "versionCode" : 1027, + "versionName" : "1.0.28", + "versionCode" : 1028, "transformPx" : false, /* 5+App特有相关 */ "app-plus" : { diff --git a/pages/tabbar/module/iots2.vue b/pages/tabbar/module/iots2.vue index 8d5c26f..d05fb44 100644 --- a/pages/tabbar/module/iots2.vue +++ b/pages/tabbar/module/iots2.vue @@ -176,6 +176,9 @@ // this.timer = setInterval(() => { // this.mescroll.resetUpScroll(); this.getDeviceInfo(); + if(this.dataList.length>0){ + this.resetDeviceList(); + } console.log("当前起始项Index为", this.showStartIndex, this.showEndIndex); // }, 5000) }, @@ -317,6 +320,23 @@ this.mescroll.endErr(); } }, error => {}) + }, + resetDeviceList(){ + let params = { + "pk": this.productPk, + "page": 1, + "pageSize": this.dataList.length, + } + this.$api.iotsApi.getDeviceList(params).then(res => { + if (res.code === 0) { + let curPageData = (res.data && res.data.list)||[]; + let totalSize = res.data.totalCount; + this.dataList = curPageData; //追加新数据 + this.total = totalSize; + } else { + this.$u.toast(res.msg); + } + }, error => {}) } } }