fix: 消息跳转执行记录也表

This commit is contained in:
taojinlong 2021-07-29 12:34:15 +08:00
parent 86f0791a4f
commit d02199f44b
2 changed files with 6 additions and 3 deletions

View File

@ -122,6 +122,7 @@ export default {
computed: {
},
created() {
console.log(this.param)
if (this.param !== null && this.param.taskId) {
this.matchLogId = this.param.logId || this.matchLogId
this.transCondition['dataset_table_task.id'] = {

View File

@ -4,10 +4,10 @@
<el-row style="height: 100%;width: 100%;">
<el-tabs v-model="tabActive" @tab-click="changeTab">
<el-tab-pane :label="$t('dataset.task.list')" name="DatasetTaskList">
<dataset-task-list v-if="tabActive=='DatasetTaskList'" :transCondition="transCondition" @jumpTaskRecord="jumpTaskRecord" />
<dataset-task-list v-if="tabActive=='DatasetTaskList'" :param="task" :transCondition="transCondition" @jumpTaskRecord="jumpTaskRecord" />
</el-tab-pane>
<el-tab-pane :label="$t('dataset.task.record')" name="TaskRecord">
<task-record v-if="tabActive=='TaskRecord'" ref="task_record" :trans-condition="transCondition" @jumpTask="jumpTask" />
<task-record v-if="tabActive=='TaskRecord'" ref="task_record" :param="task" :trans-condition="transCondition" @jumpTask="jumpTask" />
</el-tab-pane>
</el-tabs>
</el-row>
@ -28,7 +28,8 @@ export default {
data() {
return {
tabActive: 'DatasetTaskList',
transCondition: {}
transCondition: {},
task: null
}
},
computed: {
@ -50,6 +51,7 @@ export default {
},
methods: {
changeTab() {
this.task = null
this.transCondition = {}
},
jumpTaskRecord(task) {