Commit 0ca560c8 by Joey

fix(@rbc/bill-runner-query): 页签切换时刷新

parent 93df37c4
<template>
<gms-query
:templateName="config.name"
v-if="config.name"
v-if="config.name && visible"
:extrCondition="extrCondition"
:tableHeight="tableHeight"
></gms-query>
......@@ -29,6 +29,7 @@ export default {
return {
extrCondition: [],
tableHeight: height,
visible: true,
};
},
mounted() {
......@@ -38,6 +39,20 @@ export default {
if(GMS.$hideContainer.$route.query && GMS.$hideContainer.$route.query.param){
this.extrCondition = GMS.$hideContainer.$route.query.param.fieldQueryRelation;
}
this.$root.$on('updated', this.refresh)
},
beforeUnmount() {
this.$root.$off('updated', this.refresh)
},
methods: {
refresh(visible) {
if (visible == 'show') {
this.visible = false
this.$nextTick(() => {
this.visible = true
})
}
},
},
};
</script>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment