From 5bfb638cfc89c97f4ad77fc434cbcdf31a03e630 Mon Sep 17 00:00:00 2001 From: xlsea Date: Mon, 10 Jun 2024 19:15:36 +0800 Subject: [PATCH] =?UTF-8?q?fix(sj=5F1.0.0):=20=E4=BF=AE=E5=A4=8D=E9=A6=96?= =?UTF-8?q?=E9=A1=B5=E8=B7=B3=E8=BD=AC=E5=8F=82=E6=95=B0=E8=B5=8B=E5=80=BC?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/job/batch/index.vue | 14 +++++++++++--- src/views/retry/log/index.vue | 14 +++++++++++--- src/views/workflow/batch/index.vue | 14 +++++++++++--- 3 files changed, 33 insertions(+), 9 deletions(-) diff --git a/src/views/job/batch/index.vue b/src/views/job/batch/index.vue index ead9755..8026c45 100644 --- a/src/views/job/batch/index.vue +++ b/src/views/job/batch/index.vue @@ -20,8 +20,6 @@ const detailData = ref(); /** 详情页可见状态 */ const { bool: detailVisible, setTrue: openDetail } = useBoolean(false); -const taskBatchStatus = history.state.taskBatchStatus; - const { columnChecks, columns, data, getData, loading, mobilePagination, searchParams, resetSearchParams } = useTable({ apiFn: fetchGetJobBatchList, apiParams: { @@ -29,7 +27,7 @@ const { columnChecks, columns, data, getData, loading, mobilePagination, searchP size: 10, groupName: null, jobName: null, - taskBatchStatus + taskBatchStatus: null }, columns: () => [ { @@ -190,6 +188,16 @@ watch( }, { immediate: true } ); + +function initParams() { + const taskBatchStatus = history.state.taskBatchStatus; + if (taskBatchStatus) { + searchParams.taskBatchStatus = taskBatchStatus; + getData(); + } +} + +initParams();