故障
This commit is contained in:
@@ -30,6 +30,8 @@ export default {
|
|||||||
name: 'ErrorManage',
|
name: 'ErrorManage',
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
|
interTime: this.$store.getters.setTime,
|
||||||
|
timer: null,
|
||||||
pkId: '',
|
pkId: '',
|
||||||
dataList: []
|
dataList: []
|
||||||
// dataList: [
|
// dataList: [
|
||||||
@@ -65,8 +67,17 @@ export default {
|
|||||||
},
|
},
|
||||||
created () {
|
created () {
|
||||||
this.initData()
|
this.initData()
|
||||||
|
this.refresh()
|
||||||
|
},
|
||||||
|
beforeDestroy () {
|
||||||
|
clearInterval(this.timer)
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
refresh () {
|
||||||
|
this.timer = setInterval(() => {
|
||||||
|
this.initData()
|
||||||
|
}, this.interTime)
|
||||||
|
},
|
||||||
async initData () {
|
async initData () {
|
||||||
let res = await querryError()
|
let res = await querryError()
|
||||||
if (res.code === '1') {
|
if (res.code === '1') {
|
||||||
|
|||||||
@@ -126,8 +126,8 @@ export default {
|
|||||||
position relative
|
position relative
|
||||||
width 4.5rem
|
width 4.5rem
|
||||||
height 4.5rem
|
height 4.5rem
|
||||||
// background center / 100% 100% url(../../../images/aio/car2.png) no-repeat
|
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/AGV223.gif) no-repeat
|
||||||
margin-left .95rem
|
margin-left .95rem
|
||||||
margin-right .95rem
|
margin-right .95rem
|
||||||
margin-top 1.1rem
|
margin-top 1.1rem
|
||||||
|
|||||||
Reference in New Issue
Block a user