feat: 支持 MongoDB 数据库的纳管

This commit is contained in:
jiangweidong
2022-02-17 10:56:34 +08:00
committed by 老广
parent 96157bb18d
commit 7a8d35b986
6 changed files with 25 additions and 3 deletions

View File

@@ -45,11 +45,12 @@
"vmware_client":"Vmware Client",
"custom":"Custom",
"mysql": "MySQL",
"redis": "Redis",
"oracle": "Oracle",
"postgresql": "PostgreSQL",
"mariadb": "MariaDB",
"sqlserver": "SQLServer",
"redis": "Redis",
"mongodb": "MongoDB",
"k8s": "Kubernetes"
},
"applicationsCategory": {

View File

@@ -40,11 +40,12 @@
"vmware_client":"Vmware Client",
"custom":"Custom",
"mysql": "MySQL",
"redis": "Redis",
"oracle": "Oracle",
"postgresql": "PostgreSQL",
"mariadb": "MariaDB",
"sqlserver": "SQLServer",
"redis": "Redis",
"mongodb": "MongoDB",
"k8s": "kubernetes"
},
"applicationsCategory": {

View File

@@ -44,6 +44,11 @@ export default {
title: 'Redis',
has: true,
group: this.$t('assets.NoSQLProtocol')
},
{
name: 'mongodb',
title: 'MongoDB',
has: this.$store.getters.hasValidLicense
}
]
return {

View File

@@ -48,6 +48,7 @@ export default {
case 'mariadb':
case 'sqlserver':
case 'redis':
case 'mongodb':
return Database
case 'k8s':
return K8S

View File

@@ -138,6 +138,12 @@ export default {
has: true,
group: this.$t('assets.NoSQLProtocol')
},
{
name: 'MongoDB',
title: 'MongoDB',
type: 'primary',
has: this.$store.getters.hasValidLicense
},
{
name: 'K8S',
title: 'K8S',

View File

@@ -43,12 +43,13 @@ export const REMOTE_APP = [
]
export const MYSQL = 'mysql'
export const REDIS = 'redis'
export const ORACLE = 'oracle'
export const POSTGRESQL = 'postgresql'
export const MARIADB = 'mariadb'
export const DATABASE_CATEGORY = 'db'
export const SQLSERVER = 'sqlserver'
export const REDIS = 'redis'
export const MONGODB = 'mongodb'
export const DATABASE = [
{
@@ -94,6 +95,13 @@ export const DATABASE = [
category: DATABASE_CATEGORY,
has: true,
group: i18n.t('applications.NoSQLProtocol')
},
{
name: MONGODB,
title: i18n.t(`applications.applicationsType.${MONGODB}`),
type: 'primary',
category: DATABASE_CATEGORY,
has: hasLicence
}
]