From 6621da86399853c35e92cc91684125d0e17dc3ad Mon Sep 17 00:00:00 2001 From: Bai Date: Thu, 23 Feb 2023 16:15:09 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=B5=84=E4=BA=A7?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E6=B5=8B=E8=AF=95=E6=8C=89=E9=92=AE=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=20auto=5Finfo=20=E9=80=89=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/assets/Asset/AssetList/components/BaseList.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/views/assets/Asset/AssetList/components/BaseList.vue b/src/views/assets/Asset/AssetList/components/BaseList.vue index 174e48337..1e63812c2 100644 --- a/src/views/assets/Asset/AssetList/components/BaseList.vue +++ b/src/views/assets/Asset/AssetList/components/BaseList.vue @@ -139,7 +139,11 @@ export default { { name: 'Test', title: this.$t('common.Test'), - can: this.$hasPerm('assets.test_assetconnectivity') && !this.$store.getters.currentOrgIsRoot, + can: ({ row }) => + this.$hasPerm('assets.test_assetconnectivity') && + !this.$store.getters.currentOrgIsRoot && + row['auto_info'].ansible_enabled && + row['auto_info'].ping_enabled, callback: ({ row }) => { if (row.platform.name === 'Gateway') { this.GatewayVisible = true