fix(首页-物联网): 刷新首页工作台列表(调整云台样式、解决云台控制提示太多、云台按钮图片选中问题在h5中更新)

This commit is contained in:
风花一世月 2024-07-15 23:37:55 +08:00
parent e3fde71b2d
commit 435267f34f
2 changed files with 22 additions and 2 deletions

View File

@ -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" : {

View File

@ -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 => {})
} }
} }
} }