吊装管控

This commit is contained in:
cwchen 2024-09-19 13:24:20 +08:00
parent 7024f13a11
commit 434743dc43
1 changed files with 7 additions and 5 deletions

View File

@ -185,7 +185,9 @@ export default {
pageSize: 10
},
//
intervalId: null
intervalId: null,
//
checkDevCode: null
};
},
created() {
@ -204,8 +206,8 @@ export default {
},
methods: {
startRefresh() {
//
this.intervalId = setInterval(this.refreshData, 1000 * 30 * 1);
// 10
this.intervalId = setInterval(this.refreshData, 1000 * 60 * 10);
},
stopRefresh() {
if (this.intervalId) {
@ -214,7 +216,6 @@ export default {
}
},
refreshData() {
alert('刷新了');
//
this.tableData.splice(0);
this.queryParams.pageNum = 0;
@ -237,13 +238,14 @@ export default {
},
/* 向吊装视频传递参数 */
sendParams(devCode, warnPosition, index) {
this.checkDevCode = devCode;
this.devArr.forEach(item => {
item.status = 'nocheck'
})
this.devArr[index].status = 'check'
//
if (warnPosition) {
this.dz_dev_warn_img = require('../../../../assets/gif/'+warnPosition+'.gif');
this.dz_dev_warn_img = require('../../../../assets/gif/' + warnPosition + '.gif');
} else {
this.dz_dev_warn_img = dz_dev_warn_img;
}