From 6bd1c0f8dd79c1beecf633ec8653074a00ccc496 Mon Sep 17 00:00:00 2001 From: "@changcode" Date: Tue, 15 Feb 2022 10:08:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E5=8E=86=E5=8F=B2=E4=BA=92=E7=9B=B8=E5=BD=B1=E5=93=8D=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98=EF=BC=8C=E4=BF=AE=E5=A4=8Dasset=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E6=97=B6=E8=BE=93=E5=85=A5=E5=86=B2=E7=AA=81=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/common/js/constants.js | 1 + nezha-fronted/src/components/page/asset/asset.vue | 1 + nezha-fronted/src/components/page/config/credentials.vue | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/nezha-fronted/src/components/common/js/constants.js b/nezha-fronted/src/components/common/js/constants.js index 650ccea5a..85abbc92d 100644 --- a/nezha-fronted/src/components/common/js/constants.js +++ b/nezha-fronted/src/components/common/js/constants.js @@ -341,6 +341,7 @@ export const fromRoute = { alertSilence: 'alertSilence', model: 'model', mib: 'mib', + credential: 'credential', asset: 'asset', assetType: 'assetType', assetState: 'assetState', diff --git a/nezha-fronted/src/components/page/asset/asset.vue b/nezha-fronted/src/components/page/asset/asset.vue index 8330d2c36..8dcc4df9b 100644 --- a/nezha-fronted/src/components/page/asset/asset.vue +++ b/nezha-fronted/src/components/page/asset/asset.vue @@ -233,6 +233,7 @@ export default { modelId: '', model: { id: '', name: '' }, type: { name: '', id: '' }, + number: '', brandAndModel: [], typeId: '', snmpCredentialId: '', diff --git a/nezha-fronted/src/components/page/config/credentials.vue b/nezha-fronted/src/components/page/config/credentials.vue index 2bf678750..2a166d6ba 100644 --- a/nezha-fronted/src/components/page/config/credentials.vue +++ b/nezha-fronted/src/components/page/config/credentials.vue @@ -5,7 +5,7 @@ ref="dataList" :api="url" :custom-table-title.sync="tools.customTableTitle" - :from="fromRoute.mib" + :from="fromRoute.credential" :layout="['searchInput', 'elementSet', 'pagination']" :search-msg="searchMsg" @search="search"