From 7d91233c80e5b6c1f05c2c1022147df1a243d167 Mon Sep 17 00:00:00 2001 From: dhb52 Date: Mon, 13 May 2024 16:15:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BB=BB=E5=8A=A1=E6=89=B9=E6=AC=A1?= =?UTF-8?q?=E5=88=97=E8=A1=A8-=E5=A2=9E=E5=8A=A0=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/job/batch/index.vue | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/views/job/batch/index.vue b/src/views/job/batch/index.vue index 756847a..fde5751 100644 --- a/src/views/job/batch/index.vue +++ b/src/views/job/batch/index.vue @@ -7,7 +7,7 @@ import { fetchGetJobBatchList, fetchGetJobNameList, fetchJobBatchRetry, fetchJob import { $t } from '@/locales'; import { useAppStore } from '@/store/modules/app'; import { useTable } from '@/hooks/common/table'; -import { operationReasonRecord } from '@/constants/business'; +import { operationReasonRecord, taskBatchStatusRecord } from '@/constants/business'; import { tagColor } from '@/utils/common'; import JobBatchSearch from './modules/job-batch-search.vue'; import JobBatchDetailDrawer from './modules/job-batch-detail-drawer.vue'; @@ -66,6 +66,20 @@ const { columnChecks, columns, data, getData, loading, mobilePagination, searchP align: 'center', minWidth: 120 }, + { + key: 'taskBatchStatus', + title: $t('page.jobBatch.taskBatchStatus'), + align: 'center', + minWidth: 120, + render: row => { + if (row.taskBatchStatus === null) { + return null; + } + const label = $t(taskBatchStatusRecord[row.taskBatchStatus!]); + + return {label}; + } + }, { key: 'operationReason', title: $t('page.jobBatch.operationReason'),