From 0f9bcda6ca4409d10c90b92a35f8de4c1e76bd16 Mon Sep 17 00:00:00 2001 From: feng626 <1304903146@qq.com> Date: Tue, 30 Aug 2022 15:31:09 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=A6=E5=8F=B7=E5=A4=87=E4=BB=BD=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/FormTypeField.vue | 110 +++++++++++++++++- 1 file changed, 106 insertions(+), 4 deletions(-) diff --git a/src/views/accounts/AccountBackupPlan/components/FormTypeField.vue b/src/views/accounts/AccountBackupPlan/components/FormTypeField.vue index 52fea5d35..bf33a9c12 100644 --- a/src/views/accounts/AccountBackupPlan/components/FormTypeField.vue +++ b/src/views/accounts/AccountBackupPlan/components/FormTypeField.vue @@ -36,12 +36,114 @@ export default { label: this.$t('perms.all'), children: [ { - id: 'asset', - label: this.$t('route.AssetAccount') + id: 'host', + label: this.$t('applications.host'), + children: [ + { + id: 'linux', + label: 'Linux' + }, + { + id: 'windows', + label: 'Windows' + }, + { + id: 'unix', + label: 'Unix' + }, + { + id: 'bsd', + label: 'BSD' + }, + { + id: 'macos', + label: 'MacOS' + }, + { + id: 'mainframe', + label: 'Mainframe' + }, + { + id: 'other_host', + label: 'Other host' + } + ] }, { - id: 'application', - label: this.$t('route.ApplicationAccount') + id: 'networking', + label: 'NetworkDevice', + children: [ + { + id: 'switch', + label: 'Switch' + }, + { + id: 'router', + label: 'Router' + }, + { + id: 'firewall', + label: 'Firewall' + }, + { + id: 'other_network', + label: 'Other network' + } + ] + }, + { + id: 'database', + label: this.$t('assets.Database'), + children: [ + { + id: 'mysql', + label: 'Mysql' + }, + { + id: 'mariadb', + label: 'MariaDB' + }, + { + id: 'postgresql', + label: 'PostgreSQL' + }, + { + id: 'oracle', + label: 'Oracle' + }, + { + id: 'sqlserver', + label: 'SQLServer' + }, + { + id: 'mongodb', + label: 'MongoDB' + }, + { + id: 'redis', + label: 'Redis' + } + ] + }, + { + id: 'cloud', + label: 'Clouding', + children: [ + { + id: 'k8s', + label: 'Kubernetes' + } + ] + }, + { + id: 'web', + label: 'Web', + children: [ + { + id: 'general', + label: 'General' + } + ] } ] }