Skip to content

Commit

Permalink
fix: add new status for joined apps;
Browse files Browse the repository at this point in the history
  • Loading branch information
maslow committed May 3, 2022
1 parent 54fd0f3 commit 768cf95
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion packages/system-client/src/views/application/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -138,15 +138,33 @@
</el-table-column>
<el-table-column label="服务启停" align="center" width="240" class-name="small-padding">
<template slot-scope="{row}">
<el-button v-if="row.status !== 'running'" :loading="serviceLoading[row.appid]" plain type="success" size="mini" @click="startApp(row)">
<el-button v-if="row.status === 'stopped' || row.status === 'created'" :loading="serviceLoading[row.appid]" plain type="success" size="mini" @click="startApp(row)">
启动
</el-button>
<el-button v-if="row.status === 'prepared_start'" :loading="true" plain type="info" size="mini">
准备启动
</el-button>
<el-button v-if="row.status === 'starting'" :loading="true" plain type="info" size="mini">
正在启动
</el-button>
<el-button v-if="row.status === 'running'" :loading="serviceLoading[row.appid]" plain type="danger" size="mini" @click="stopApp(row)">
停止
</el-button>
<el-button v-if="row.status === 'prepared_stop'" :loading="true" plain type="info" size="mini">
准备停止
</el-button>
<el-button v-if="row.status === 'stopping'" :loading="true" plain type="info" size="mini">
停止中
</el-button>
<el-button v-if="row.status === 'running'" :loading="serviceLoading[row.appid]" plain type="default" size="mini" @click="restartApp(row)">
重启
</el-button>
<el-button v-if="row.status === 'prepared_restart'" :loading="true" plain type="info" size="mini">
准备重启
</el-button>
<el-button v-if="row.status === 'restarting'" :loading="true" plain type="info" size="mini">
重启中
</el-button>
</template>
</el-table-column>
<el-table-column label="创建时间" align="center" min-width="120">
Expand Down

0 comments on commit 768cf95

Please sign in to comment.