fix(首页-物联网): 刷新首页工作台列表(调整云台样式、解决云台控制提示太多、云台按钮图片选中问题在h5中更新)
This commit is contained in:
parent
e3fde71b2d
commit
435267f34f
|
@ -2,8 +2,8 @@
|
||||||
"name" : "物联网可视化",
|
"name" : "物联网可视化",
|
||||||
"appid" : "__UNI__604B8F1",
|
"appid" : "__UNI__604B8F1",
|
||||||
"description" : "",
|
"description" : "",
|
||||||
"versionName" : "1.0.27",
|
"versionName" : "1.0.28",
|
||||||
"versionCode" : 1027,
|
"versionCode" : 1028,
|
||||||
"transformPx" : false,
|
"transformPx" : false,
|
||||||
/* 5+App特有相关 */
|
/* 5+App特有相关 */
|
||||||
"app-plus" : {
|
"app-plus" : {
|
||||||
|
|
|
@ -176,6 +176,9 @@
|
||||||
// this.timer = setInterval(() => {
|
// this.timer = setInterval(() => {
|
||||||
// this.mescroll.resetUpScroll();
|
// this.mescroll.resetUpScroll();
|
||||||
this.getDeviceInfo();
|
this.getDeviceInfo();
|
||||||
|
if(this.dataList.length>0){
|
||||||
|
this.resetDeviceList();
|
||||||
|
}
|
||||||
console.log("当前起始项Index为", this.showStartIndex, this.showEndIndex);
|
console.log("当前起始项Index为", this.showStartIndex, this.showEndIndex);
|
||||||
// }, 5000)
|
// }, 5000)
|
||||||
},
|
},
|
||||||
|
@ -317,6 +320,23 @@
|
||||||
this.mescroll.endErr();
|
this.mescroll.endErr();
|
||||||
}
|
}
|
||||||
}, error => {})
|
}, 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