master
parent
ea921af657
commit
3a13cbe626
|
|
@ -59,6 +59,7 @@
|
||||||
const warnetm = moment().format("YYYY-MM-DD HH:mm:ss")
|
const warnetm = moment().format("YYYY-MM-DD HH:mm:ss")
|
||||||
import SkInfo from '../skInfo/index.vue'
|
import SkInfo from '../skInfo/index.vue'
|
||||||
import YlzList from '../ylzList/index.vue'
|
import YlzList from '../ylzList/index.vue'
|
||||||
|
let timer= null;
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
SkInfo,
|
SkInfo,
|
||||||
|
|
@ -143,6 +144,7 @@
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getList() {
|
getList() {
|
||||||
|
console.log(11);
|
||||||
uni.$http.post('/gunshiApp/xyt/messageCenter/list', {
|
uni.$http.post('/gunshiApp/xyt/messageCenter/list', {
|
||||||
start: '',
|
start: '',
|
||||||
end: ''
|
end: ''
|
||||||
|
|
@ -253,12 +255,22 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
onShow() {
|
onShow() {
|
||||||
this.getList();
|
var that = this;
|
||||||
|
that.getList();
|
||||||
|
timer = setInterval(function() {
|
||||||
|
that.getList();
|
||||||
|
}, 10000);
|
||||||
|
|
||||||
this.setInsert()
|
this.setInsert()
|
||||||
this.getXcrwData();
|
this.getXcrwData();
|
||||||
this.getHandleData();
|
this.getHandleData();
|
||||||
this.getYjData();
|
this.getYjData();
|
||||||
},
|
},
|
||||||
|
onHide() {
|
||||||
|
console.log(222);
|
||||||
|
clearInterval(timer)
|
||||||
|
timer = null;
|
||||||
|
},
|
||||||
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue