修改看板

boardTest
夜笙歌 2 weeks ago
parent 57ac9bafa9
commit e5f2df87fa

@ -369,15 +369,13 @@ export default {
selectOffLineDevice() { selectOffLineDevice() {
Object.keys(this.isOnline).forEach(key => { Object.keys(this.isOnline).forEach(key => {
// console.log(key, new Date().getTime() - this.isOnline[key]) // console.log(key, new Date().getTime() - this.isOnline[key])
if (new Date().getTime() - this.isOnline[key] > (1000 * 60 * 60)) { if (new Date().getTime() - this.isOnline[key] > (1000 * 30)) {
console.log('error', key)
this.$confirm(`设备${key}已离线`, '设备离线', { this.$confirm(`设备${key}已离线`, '设备离线', {
cancelButtonText: '关闭', cancelButtonText: '关闭',
showConfirmButton: false, showConfirmButton: false,
type: 'error' type: 'error'
}) })
setTimeout(() => {
debugger
}, 200)
this.isOnline[key] = new Date().getTime() this.isOnline[key] = new Date().getTime()
} }
} }

Loading…
Cancel
Save