故障
This commit is contained in:
@@ -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') {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user