Commit b9d3aa29 by 乔延琦

Merge branch 'develop-zhouyi' into 'develop'

feat(@rbc/workflow-job-view): 切换页签时刷新

See merge request GFP/RBC/rbc-frontend!84
parents 9193e368 95b9bc0c
......@@ -107,11 +107,13 @@ export default {
this.templateName = this.templateOptionList[0]?.templateName;
this.handleSearch();
});
window.GMS.vbus.$on('refresh-workflow-job-view', () => {
this.handleSearch()
})
window.GMS.vbus.$on('refresh-workflow-job-view', this.handleSearch)
this.$root.$on('updated', this.handleSearch)
},
beforeUnmount() {
window.GMS.vbus.$off('refresh-workflow-job-view', this.handleSearch)
this.$root.$off('updated', this.handleSearch)
},
methods: {
handleQueryDataChange(v) {
this.queryData = v.map((o) => {
......@@ -187,7 +189,8 @@ export default {
this.$refs.seniorQuery.selectedConditions = []
window.GMS.vbus.$emit('clear-senior-query-from-app')
},
handleSearch() {
handleSearch(state) {
if (state == 'hide') return
if (!this.templateName) return;
this.$refs.seniorQuery.makeSure('from-app-click')
},
......
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