diff --git a/src/views/job/batch/index.vue b/src/views/job/batch/index.vue
index ce9159a..c9c9cab 100644
--- a/src/views/job/batch/index.vue
+++ b/src/views/job/batch/index.vue
@@ -159,41 +159,61 @@ const { columnChecks, columns, data, getData, loading, mobilePagination, searchP
title: $t('common.operate'),
align: 'center',
width: 130,
- render: row => (
-
-
- {$t('common.log')}
-
- {row.taskBatchStatus === 1 || row.taskBatchStatus === 2 ? (
- handleStopJob(row.id!)}>
- {{
- default: () => $t('common.confirmStop'),
- trigger: () => (
-
- {$t('common.stop')}
-
- )
- }}
-
- ) : (
- ''
- )}
- {row.taskBatchStatus === 4 || row.taskBatchStatus === 5 || row.taskBatchStatus === 6 ? (
- handleRetryJob(row.id!)}>
- {{
- default: () => $t('common.confirmRetry'),
- trigger: () => (
-
- {$t('common.retry')}
-
- )
- }}
-
- ) : (
- ''
- )}
-
- )
+ render: row => {
+ const stopBtn = () => {
+ if (row.taskBatchStatus === 1 || row.taskBatchStatus === 2) {
+ return (
+ <>
+
+ handleStopJob(row.id!)}>
+ {{
+ default: () => $t('common.confirmStop'),
+ trigger: () => (
+ <>
+
+
+ {$t('common.stop')}
+
+ >
+ )
+ }}
+
+ >
+ );
+ }
+ return null;
+ };
+
+ const retryBtn = () => {
+ if (row.taskBatchStatus === 4 || row.taskBatchStatus === 5 || row.taskBatchStatus === 6) {
+ return (
+ <>
+
+ handleRetryJob(row.id!)}>
+ {{
+ default: () => $t('common.confirmRetry'),
+ trigger: () => (
+
+ {$t('common.retry')}
+
+ )
+ }}
+
+ >
+ );
+ }
+ return null;
+ };
+ return (
+
+
+ {$t('common.log')}
+
+ {stopBtn()}
+ {retryBtn()}
+
+ );
+ }
}
]
});