首页接口重构

This commit is contained in:
2026-04-13 18:07:10 +08:00
parent 44d6658160
commit e4a2b0b255

View File

@@ -122,14 +122,12 @@
@confirm="handleDockerAction('start', row)"
>
<template #reference>
<el-tooltip content="启动" placement="top" :show-after="200">
<el-button
link
type="primary"
:icon="VideoPlay"
:loading="actionLoadingMap[row.containerId] === 'start'"
/>
</el-tooltip>
<el-button
link
type="primary"
:icon="VideoPlay"
:loading="actionLoadingMap[row.containerId] === 'start'"
/>
</template>
</el-popconfirm>
<template v-else>
@@ -139,14 +137,12 @@
@confirm="handleDockerAction('restart', row)"
>
<template #reference>
<el-tooltip content="重启" placement="top" :show-after="200">
<el-button
link
type="warning"
:icon="RefreshRight"
:loading="actionLoadingMap[row.containerId] === 'restart'"
/>
</el-tooltip>
<el-button
link
type="warning"
:icon="RefreshRight"
:loading="actionLoadingMap[row.containerId] === 'restart'"
/>
</template>
</el-popconfirm>
<el-popconfirm
@@ -155,14 +151,12 @@
@confirm="handleDockerAction('stop', row)"
>
<template #reference>
<el-tooltip content="停止" placement="top" :show-after="200">
<el-button
link
type="danger"
:icon="SwitchButton"
:loading="actionLoadingMap[row.containerId] === 'stop'"
/>
</el-tooltip>
<el-button
link
type="danger"
:icon="SwitchButton"
:loading="actionLoadingMap[row.containerId] === 'stop'"
/>
</template>
</el-popconfirm>
</template>