fix: 自动任务跳转执行列表显示结果不准确的问题

This commit is contained in:
wangruidong
2024-03-12 10:58:42 +08:00
committed by Bryan
parent 18fc63b8c0
commit 67c8521d5c
5 changed files with 29 additions and 7 deletions

View File

@@ -57,7 +57,7 @@ export default {
},
getUrlQuery: {
type: Boolean,
default: () => true
default: () => false
},
default: {
type: Object,
@@ -213,12 +213,10 @@ export default {
delete routeFilter.search
}
const asFilterTags = _.cloneDeep(this.filterTags)
setTimeout(() => {
this.filterTags = {
...asFilterTags,
...routeFilter
}
}, 100)
this.filterTags = {
...asFilterTags,
...routeFilter
}
},
getValueLabel(key, value) {
for (const field of this.options) {

View File

@@ -99,6 +99,12 @@ export default {
hasBulkUpdate: false
}
}
},
mounted() {
const plan_id = this.$route.query.plan_id
if (plan_id !== undefined) {
this.tableConfig.url = `${this.tableConfig.url}?plan_id=${plan_id}`
}
}
}
</script>

View File

@@ -119,6 +119,12 @@ export default {
hasBulkUpdate: false
}
}
},
mounted() {
const automation_id = this.$route.query.automation_id
if (automation_id !== undefined) {
this.tableConfig.url = `${this.tableConfig.url}?automation_id=${automation_id}`
}
}
}
</script>

View File

@@ -101,6 +101,12 @@ export default {
hasBulkUpdate: false
}
}
},
mounted() {
const automation_id = this.$route.query.automation_id
if (automation_id !== undefined) {
this.tableConfig.url = `${this.tableConfig.url}?automation_id=${automation_id}`
}
}
}
</script>

View File

@@ -119,6 +119,12 @@ export default {
hasBulkUpdate: false
}
}
},
mounted() {
const automation_id = this.$route.query.automation_id
if (automation_id !== undefined) {
this.tableConfig.url = `${this.tableConfig.url}?automation_id=${automation_id}`
}
}
}
</script>