This commit is contained in:
2023-10-20 14:25:18 +08:00
parent 6d758902fe
commit 61b3e442dc
2 changed files with 13 additions and 2 deletions

View File

@@ -30,6 +30,8 @@ export default {
name: 'ErrorManage',
data () {
return {
interTime: this.$store.getters.setTime,
timer: null,
pkId: '',
dataList: []
// dataList: [
@@ -65,8 +67,17 @@ export default {
},
created () {
this.initData()
this.refresh()
},
beforeDestroy () {
clearInterval(this.timer)
},
methods: {
refresh () {
this.timer = setInterval(() => {
this.initData()
}, this.interTime)
},
async initData () {
let res = await querryError()
if (res.code === '1') {

View File

@@ -126,8 +126,8 @@ export default {
position relative
width 4.5rem
height 4.5rem
// background center / 100% 100% url(../../../images/aio/car2.png) no-repeat
background center / 100% 100% url(../../../images/aio/AGV223.gif) no-repeat
background center / 100% 100% url(../../../images/aio/car2.png) no-repeat
// background center / 100% 100% url(../../../images/aio/AGV223.gif) no-repeat
margin-left .95rem
margin-right .95rem
margin-top 1.1rem