feat(sj_1.1.0-beta3): 定时任务新增删除按钮
This commit is contained in:
parent
d624cb7727
commit
c83a22f5fe
@ -199,23 +199,17 @@ const { columnChecks, columns, data, getData, loading, mobilePagination, searchP
|
|||||||
<NButton type="warning" ghost text size="small" onClick={() => edit(row.id!)}>
|
<NButton type="warning" ghost text size="small" onClick={() => edit(row.id!)}>
|
||||||
{$t('common.edit')}
|
{$t('common.edit')}
|
||||||
</NButton>
|
</NButton>
|
||||||
{hasAuth('R_ADMIN') ? (
|
<n-divider vertical />
|
||||||
<>
|
<NPopconfirm onPositiveClick={() => handleDelete(row.id!)}>
|
||||||
<n-divider vertical />
|
{{
|
||||||
<NPopconfirm onPositiveClick={() => handleDelete(row.id!)}>
|
default: () => $t('common.confirmDelete'),
|
||||||
{{
|
trigger: () => (
|
||||||
default: () => $t('common.confirmDelete'),
|
<NButton type="error" text ghost size="small">
|
||||||
trigger: () => (
|
{$t('common.delete')}
|
||||||
<NButton type="error" text ghost size="small">
|
</NButton>
|
||||||
{$t('common.delete')}
|
)
|
||||||
</NButton>
|
}}
|
||||||
)
|
</NPopconfirm>
|
||||||
}}
|
|
||||||
</NPopconfirm>
|
|
||||||
</>
|
|
||||||
) : (
|
|
||||||
''
|
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user