吊装管控

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