From 0cbba3073d700ef2a55e6f2fb22811b26e1c104b Mon Sep 17 00:00:00 2001 From: "@changcode" Date: Wed, 28 Apr 2021 14:21:01 +0800 Subject: [PATCH] =?UTF-8?q?asset=20type=E9=A1=B5=E9=9D=A2=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E5=88=97=E8=A1=A8=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/common/js/constants.js | 2 +- .../src/components/common/language/en.js | 3 ++ .../rightBox/administration/assetTypeBox.vue | 21 ++++++++++++++ .../common/rightBox/assetMetaBox.vue | 3 +- .../common/table/settings/assetTypeTable.vue | 29 +++++++++++++++++-- .../src/components/page/config/assetMeta.vue | 7 ++--- .../src/components/page/config/assetType.vue | 4 ++- 7 files changed, 59 insertions(+), 10 deletions(-) diff --git a/nezha-fronted/src/components/common/js/constants.js b/nezha-fronted/src/components/common/js/constants.js index b1c28d20f..30062b160 100644 --- a/nezha-fronted/src/components/common/js/constants.js +++ b/nezha-fronted/src/components/common/js/constants.js @@ -81,7 +81,7 @@ export const asset = { ], assetType: { authProtocolOptions: [ - { value: 0, label: '无' }, + { value: 0, label: 'nothing' }, { value: 1, label: 'SSH' }, { value: 2, label: 'TELNET' } ], diff --git a/nezha-fronted/src/components/common/language/en.js b/nezha-fronted/src/components/common/language/en.js index 0209afe2b..e7df133c3 100644 --- a/nezha-fronted/src/components/common/language/en.js +++ b/nezha-fronted/src/components/common/language/en.js @@ -977,7 +977,10 @@ const en = { vmh:'VMH', authProtocol:'AuthProtocol', snmpEnable: 'SnmpEnable', + snmpCollect:'SnmpCollect', createModel:'CreateModel', + sshCollect:'SshCollect', + sshCollectScript:'SshCollectScript', parent: 'Parent', pname: 'Parent name', editAssetType: 'Edit asset type', diff --git a/nezha-fronted/src/components/common/rightBox/administration/assetTypeBox.vue b/nezha-fronted/src/components/common/rightBox/administration/assetTypeBox.vue index b23496702..4bb12c244 100644 --- a/nezha-fronted/src/components/common/rightBox/administration/assetTypeBox.vue +++ b/nezha-fronted/src/components/common/rightBox/administration/assetTypeBox.vue @@ -46,6 +46,27 @@ :inactive-value="0"> + + + + + + + + + + + + + - + - + diff --git a/nezha-fronted/src/components/page/config/assetType.vue b/nezha-fronted/src/components/page/config/assetType.vue index 71433a2bc..cb4802a22 100644 --- a/nezha-fronted/src/components/page/config/assetType.vue +++ b/nezha-fronted/src/components/page/config/assetType.vue @@ -65,7 +65,9 @@ export default { vm: '', vmh:'', authProtocol:'', - snmpEnable:'' + snmpEnable:'', + snmpCollect:'', + sshCollect:'' }, tableId: 'typeConfTable', searchMsg: { // 给搜索框子组件传递的信息