fix: 任务批次列表-增加状态字段
This commit is contained in:
parent
23deefd49a
commit
7d91233c80
@ -7,7 +7,7 @@ import { fetchGetJobBatchList, fetchGetJobNameList, fetchJobBatchRetry, fetchJob
|
|||||||
import { $t } from '@/locales';
|
import { $t } from '@/locales';
|
||||||
import { useAppStore } from '@/store/modules/app';
|
import { useAppStore } from '@/store/modules/app';
|
||||||
import { useTable } from '@/hooks/common/table';
|
import { useTable } from '@/hooks/common/table';
|
||||||
import { operationReasonRecord } from '@/constants/business';
|
import { operationReasonRecord, taskBatchStatusRecord } from '@/constants/business';
|
||||||
import { tagColor } from '@/utils/common';
|
import { tagColor } from '@/utils/common';
|
||||||
import JobBatchSearch from './modules/job-batch-search.vue';
|
import JobBatchSearch from './modules/job-batch-search.vue';
|
||||||
import JobBatchDetailDrawer from './modules/job-batch-detail-drawer.vue';
|
import JobBatchDetailDrawer from './modules/job-batch-detail-drawer.vue';
|
||||||
@ -66,6 +66,20 @@ const { columnChecks, columns, data, getData, loading, mobilePagination, searchP
|
|||||||
align: 'center',
|
align: 'center',
|
||||||
minWidth: 120
|
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 <NTag type={tagColor(row.taskBatchStatus!)}>{label}</NTag>;
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
key: 'operationReason',
|
key: 'operationReason',
|
||||||
title: $t('page.jobBatch.operationReason'),
|
title: $t('page.jobBatch.operationReason'),
|
||||||
|
Loading…
Reference in New Issue
Block a user