From 890b3c5fd776cc9dba37ceb6dde9df48649ead6a Mon Sep 17 00:00:00 2001 From: opensnail <598092184@qq.com> Date: Sun, 26 May 2024 17:52:14 +0800 Subject: [PATCH] =?UTF-8?q?feat(sj=5F1.0.0):=20=E8=B0=83=E6=95=B4=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/group/index.vue | 2 +- src/views/job/task/index.vue | 31 ++++++++++++++++++------------- src/views/namespace/index.vue | 2 +- src/views/notify/scene/index.vue | 28 +++++++++++++++++----------- src/views/workflow/task/index.vue | 5 +++-- 5 files changed, 40 insertions(+), 28 deletions(-) diff --git a/src/views/group/index.vue b/src/views/group/index.vue index 4800dd8..51d77d8 100644 --- a/src/views/group/index.vue +++ b/src/views/group/index.vue @@ -131,7 +131,7 @@ const { columns, columnChecks, data, getData, loading, mobilePagination, searchP } return (
- edit(row.id!)}> + edit(row.id!)}> {$t('common.edit')}
diff --git a/src/views/job/task/index.vue b/src/views/job/task/index.vue index 345da1e..04a3298 100644 --- a/src/views/job/task/index.vue +++ b/src/views/job/task/index.vue @@ -175,29 +175,34 @@ const { columnChecks, columns, data, getData, loading, mobilePagination, searchP {{ default: () => $t('common.confirmExecute'), trigger: () => ( - + {$t('common.execute')} ) }} - goToBatch(row.id!)}> + + goToBatch(row.id!)}> {$t('common.batchList')} - edit(row.id!)}> + + edit(row.id!)}> {$t('common.edit')} {hasAuth('R_ADMIN') ? ( - handleDelete(row.id!)}> - {{ - default: () => $t('common.confirmDelete'), - trigger: () => ( - - {$t('common.delete')} - - ) - }} - + <> + + handleDelete(row.id!)}> + {{ + default: () => $t('common.confirmDelete'), + trigger: () => ( + + {$t('common.delete')} + + ) + }} + + ) : ( '' )} diff --git a/src/views/namespace/index.vue b/src/views/namespace/index.vue index cdb2740..3124484 100644 --- a/src/views/namespace/index.vue +++ b/src/views/namespace/index.vue @@ -54,7 +54,7 @@ const { columns, columnChecks, data, getData, loading, mobilePagination, searchP width: 64, render: row => (
- edit(row.id!)}> + edit(row.id!)}> {$t('common.edit')}
diff --git a/src/views/notify/scene/index.vue b/src/views/notify/scene/index.vue index d810606..24bba11 100644 --- a/src/views/notify/scene/index.vue +++ b/src/views/notify/scene/index.vue @@ -153,22 +153,28 @@ const { columns, columnChecks, data, getData, loading, mobilePagination, searchP title: $t('common.operate'), align: 'center', width: 130, + fixed: 'right', render: row => (
- edit(row.id!)}> + edit(row.id!)}> {$t('common.edit')} {hasAuth('R_ADMIN') ? ( - handleDelete(row.id!)}> - {{ - default: () => $t('common.confirmDelete'), - trigger: () => ( - - {$t('common.delete')} - - ) - }} - + <> + + handleDelete(row.id!)}> + {{ + default: () => $t('common.confirmDelete'), + trigger: () => ( + + + {$t('common.delete')} + + + ) + }} + + ) : ( '' )} diff --git a/src/views/workflow/task/index.vue b/src/views/workflow/task/index.vue index 59ad1f9..580b0b5 100644 --- a/src/views/workflow/task/index.vue +++ b/src/views/workflow/task/index.vue @@ -164,7 +164,6 @@ const { columns, columnChecks, data, getData, loading, mobilePagination, searchP edit(row.id!)}> {$t('common.edit')} - {hasAuth('R_ADMIN') ? ( <> @@ -179,7 +178,9 @@ const { columns, columnChecks, data, getData, loading, mobilePagination, searchP }} - ) : null} + ) : ( + '' + )}