|
@@ -79,7 +79,8 @@ const AppDeviceEnquire = {
|
|
|
const commonMixin = {
|
|
|
data(){
|
|
|
return {
|
|
|
- toThousands
|
|
|
+ toThousands,
|
|
|
+ isActiveComp: false
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
@@ -92,8 +93,24 @@ const commonMixin = {
|
|
|
this.spinning = a
|
|
|
}
|
|
|
}
|
|
|
+ },
|
|
|
+ '$store.state.app.visibilityState':function(a,b){
|
|
|
+ if(a && this.isActiveComp){
|
|
|
+ if(this.$refs.table){
|
|
|
+ this.$refs.table.refresh()
|
|
|
+ }
|
|
|
+ if(this.$refs.chooseTable){
|
|
|
+ this.$refs.chooseTable.refresh()
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
+ activated(){
|
|
|
+ this.isActiveComp = true
|
|
|
+ },
|
|
|
+ deactivated(){
|
|
|
+ this.isActiveComp = false
|
|
|
+ },
|
|
|
methods: {
|
|
|
getIsHomeNav () {
|
|
|
const data = sessionStorage.getItem('isHomeNav')
|