From f3616f06e82e51e538a6d95a6a7429ff32b85a8f Mon Sep 17 00:00:00 2001 From: Bai Date: Thu, 23 Feb 2023 11:42:45 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=B5=84=E4=BA=A7?= =?UTF-8?q?=E8=B4=A6=E5=8F=B7=E5=88=97=E8=A1=A8=E6=B5=8B=E8=AF=95=E6=9D=83?= =?UTF-8?q?=E9=99=90=E6=8E=A7=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/AccountListTable/AccountList.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/AccountListTable/AccountList.vue b/src/components/AccountListTable/AccountList.vue index c83132956..76ed99e6e 100644 --- a/src/components/AccountListTable/AccountList.vue +++ b/src/components/AccountListTable/AccountList.vue @@ -203,7 +203,11 @@ export default { { name: 'Test', title: this.$t('common.Test'), - can: this.$hasPerm('accounts.change_account') && !this.$store.getters.currentOrgIsRoot, + can: ({ row }) => + !this.$store.getters.currentOrgIsRoot && + this.$hasPerm('accounts.change_account') && + row.asset['auto_info'].ansible_enabled && + row.asset['auto_info'].ping_enabled, callback: ({ row }) => { this.$axios.post( `/api/v1/accounts/accounts/tasks/`,