2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 10:17:17 +08:00

feat: 优化编排删除

This commit is contained in:
2025-05-31 19:51:09 +08:00
parent 7be3e799be
commit 7987cec9b9
2 changed files with 16 additions and 5 deletions

View File

@@ -57,7 +57,7 @@ const columns: any = [
{
title: $gettext('Status'),
key: 'status',
width: 150,
width: 300,
resizable: true,
ellipsis: { tooltip: true }
},
@@ -165,10 +165,18 @@ const columns: any = [
NPopconfirm,
{
onPositiveClick: () => {
useRequest(container.composeDown(row.name)).onSuccess(() => {
refresh()
window.$message.success($gettext('Stop successful'))
const messageReactive = window.$message.loading($gettext('Stopping...'), {
duration: 0
})
useRequest(container.composeDown(row.name))
.onSuccess(() => {
refresh()
forcePush.value = false
window.$message.success($gettext('Stop successful'))
})
.onComplete(() => {
messageReactive?.destroy()
})
}
},
{
@@ -290,7 +298,7 @@ onMounted(() => {
striped
remote
:loading="loading"
:scroll-x="1000"
:scroll-x="1100"
:data="data"
:columns="columns"
:row-key="(row: any) => row.name"