From d24d8c7dd328f4afbf6b30dbf246b00fb2d9b4a0 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Wed, 23 Aug 2023 10:48:14 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E6=9A=82=E5=AD=98=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=20softwareAsset?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../rightBox/software/softwareAssetBox.vue | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/nezha-fronted/src/components/common/rightBox/software/softwareAssetBox.vue b/nezha-fronted/src/components/common/rightBox/software/softwareAssetBox.vue index ed0c47ddb..4a89967dc 100644 --- a/nezha-fronted/src/components/common/rightBox/software/softwareAssetBox.vue +++ b/nezha-fronted/src/components/common/rightBox/software/softwareAssetBox.vue @@ -16,7 +16,7 @@ - + @@ -55,7 +55,7 @@
- {{$t('softwareAsset.params')}} + {{$t('softwareAsset.Connector')}}
@@ -174,6 +174,7 @@ export default { created () { this.getProjectList() this.getAsset() + this.getSoftwareTypeList() }, mounted () { }, @@ -242,11 +243,20 @@ export default { } }) }, + /* 获取asset列表 */ getAsset () { this.$get('asset/asset', { pageSize: -1 }).then(res => { this.assetList = res.data.list }) }, + /* 获取softwareType列表 */ + getSoftwareTypeList () { + this.$get('asset/software/type', { pageSize: -1, pageNo: 1 }).then(response => { + if (response.code === 200) { + this.softwareTypeArr = response.data.list + } + }) + }, resultFormat (resp) { if (resp && resp.data) { const assetData = {} @@ -254,6 +264,9 @@ export default { assetData.totalRow = resp.data.total return assetData } + }, + renderParams () { + this.editSoftwareAsset.params = {} } } }