|
|
@ -31,7 +31,7 @@ |
|
|
|
<span :class="`serve-text ${'status-color'+scope.row.state}`">{{ setStatusText(scope.row) }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="操作" width="350" align="center"> |
|
|
|
<el-table-column label="操作" width="250" align="center"> |
|
|
|
<template #default="scope"> |
|
|
|
<el-button |
|
|
|
v-if="scope.row.state == 0" |
|
|
@ -41,22 +41,22 @@ |
|
|
|
size="small" |
|
|
|
>启动</el-button |
|
|
|
> |
|
|
|
<el-button |
|
|
|
<!-- <el-button |
|
|
|
v-if="scope.row.state == 1" |
|
|
|
class="edit-button-style" |
|
|
|
@click="cmdPause(scope.row)" |
|
|
|
icon="el-icon-video-pause" |
|
|
|
size="small" |
|
|
|
>暂停</el-button |
|
|
|
> |
|
|
|
<el-button |
|
|
|
> --> |
|
|
|
<!-- <el-button |
|
|
|
v-if="scope.row.state == 2" |
|
|
|
class="edit-button-style" |
|
|
|
@click="cmdRecover(scope.row)" |
|
|
|
icon="el-icon-refresh" |
|
|
|
size="small" |
|
|
|
>恢复</el-button |
|
|
|
> |
|
|
|
> --> |
|
|
|
<el-button |
|
|
|
v-if="scope.row.state != 0" |
|
|
|
class="edit-button-style" |
|
|
|