From 2c2fac2ac1f855ab356c88b55189d9f67ff53cc0 Mon Sep 17 00:00:00 2001 From: Bai Date: Wed, 1 Feb 2023 17:02:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=B8=BB=E6=9C=BA=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E8=B5=84=E4=BA=A7=E7=A1=AC=E4=BB=B6=E4=BF=A1?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/assets/Asset/AssetDetail/Detail.vue | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/views/assets/Asset/AssetDetail/Detail.vue b/src/views/assets/Asset/AssetDetail/Detail.vue index 44674ddee..738b7f21c 100644 --- a/src/views/assets/Asset/AssetDetail/Detail.vue +++ b/src/views/assets/Asset/AssetDetail/Detail.vue @@ -2,7 +2,8 @@ - + + @@ -172,13 +173,20 @@ export default { 'is_active', 'date_created', 'created_by', 'comment' ] }, - detailSpecificConfig: { + detailSpecInfoConfig: { show: Object.keys(this.object['spec_info']).length > 0, title: this.$t('common.SpecificInfo'), url: `/api/v1/assets/assets/${this.object.id}/spec-info/`, object: this.object.spec_info, showUndefine: false, excludes: ['spec_info.script'] + }, + detailInfoConfig: { + show: this.object.category.value === 'host' && Object.keys(this.object['info']).length > 0, + url: `/api/v1/assets/hosts/${this.object.id}/info/`, + title: this.$t('assets.HardwareInfo'), + object: this.object.info, + showUndefine: false } } },