首页接口重构

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