From 3335ce934c4f59ff41668ecbaa55920987446101 Mon Sep 17 00:00:00 2001 From: hyunfa <1598047833@qq.com> Date: Tue, 27 Aug 2024 11:01:03 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20agent=E5=BC=82=E5=B8=B8=E6=9C=BA?= =?UTF-8?q?=E5=99=A8=E7=A6=81=E6=AD=A2=E9=87=8D=E5=90=AF=E6=93=8D=E4=BD=9C?= =?UTF-8?q?=20#=20Reviewed,=20transaction=20id:=2016552?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/agent/agent-list.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/agent/agent-list.vue b/frontend/src/views/agent/agent-list.vue index f9908f71a..d77794703 100644 --- a/frontend/src/views/agent/agent-list.vue +++ b/frontend/src/views/agent/agent-list.vue @@ -549,7 +549,7 @@ :class="[ 'list-item', fontSize, - { 'disabled': row.status === 'not_installed' && !(['log', 'remove'].includes(item.id)) } + { 'disabled': ['terminated', 'not_installed'].includes(row.status) && !(['log', 'remove'].includes(item.id)) } ]" :key="item.id" v-test.common="`moreItem.${item.id}`" @@ -1684,7 +1684,7 @@ export default class AgentList extends Mixins(pollMixin, TableHeaderMixins, auth * Linux、window卸载都不需要经过编辑页面 ***** */ private handleOperate(type: string, data: IAgentHost[], batch = false) { - if (!batch && data[0].status === 'not_installed' && !(['log', 'reinstall', 'remove'].includes(type))) { + if (!batch && ['terminated', 'not_installed'].includes(data[0].status) && !(['log', 'reinstall', 'remove'].includes(type))) { return; } if (!batch && this.$refs[data[0].bk_host_id]) {