feat(sj_1.1.0-beta3): 定时任务新增删除按钮

This commit is contained in:
xlsea 2024-07-11 16:37:19 +08:00
parent d624cb7727
commit c83a22f5fe

View File

@ -199,23 +199,17 @@ const { columnChecks, columns, data, getData, loading, mobilePagination, searchP
<NButton type="warning" ghost text size="small" onClick={() => edit(row.id!)}>
{$t('common.edit')}
</NButton>
{hasAuth('R_ADMIN') ? (
<>
<n-divider vertical />
<NPopconfirm onPositiveClick={() => handleDelete(row.id!)}>
{{
default: () => $t('common.confirmDelete'),
trigger: () => (
<NButton type="error" text ghost size="small">
{$t('common.delete')}
</NButton>
)
}}
</NPopconfirm>
</>
) : (
''
)}
<n-divider vertical />
<NPopconfirm onPositiveClick={() => handleDelete(row.id!)}>
{{
default: () => $t('common.confirmDelete'),
trigger: () => (
<NButton type="error" text ghost size="small">
{$t('common.delete')}
</NButton>
)
}}
</NPopconfirm>
</div>
)
}