fix(首页-物联网): 刷新首页工作台列表(调整云台样式、解决云台控制提示太多、云台按钮图片选中问题在h5中更新)
This commit is contained in:
parent
e3fde71b2d
commit
435267f34f
|
@ -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" : {
|
||||
|
|
|
@ -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 => {})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue