吊装管控
This commit is contained in:
parent
7024f13a11
commit
434743dc43
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue