[Update] 检查表单Title 和 activeMenu

This commit is contained in:
xinwen
2020-06-12 13:59:15 +08:00
parent d789a2e0fc
commit 1b94b03d3f
11 changed files with 19 additions and 19 deletions

View File

@@ -17,7 +17,7 @@ export default {
},
fields: [
['', ['name', 'username', 'password', 'private_key', 'comment']]
[this.$t('common.BasicInfo'), ['name', 'username', 'password', 'private_key', 'comment']]
],
fieldsMeta: {
name: {

View File

@@ -13,7 +13,7 @@ export default {
},
fields: [
['', ['name', 'comment']]
[this.$t('common.BasicInfo'), ['name', 'comment']]
],
fieldsMeta: {

View File

@@ -16,7 +16,7 @@ export default {
},
fields: [
['', ['name', 'value', 'assets']]
[this.$t('common.BasicInfo'), ['name', 'value', 'assets']]
],
fieldsMeta: {
assets: {

View File

@@ -91,11 +91,11 @@ export default {
}
},
fieldsMap: {
s3: ['name', 'type', 'bucket', 'access_key', 'secret_key', 'endpoint', 'comment'],
ceph: ['name', 'type', 'bucket', 'access_key', 'secret_key', 'endpoint', 'comment'],
swift: ['name', 'type', 'bucket', 'access_key', 'secret_key', 'region', 'endpoint', 'protocol', 'comment'],
oss: ['name', 'type', 'bucket', 'access_key', 'secret_key', 'endpoint', 'comment'],
azure: ['name', 'type', 'container_name', 'account_name', 'account_key', 'endpoint_suffix', 'comment']
s3: [[this.$t('common.BasicInfo'), ['name', 'type', 'bucket', 'access_key', 'secret_key', 'endpoint', 'comment']]],
ceph: [[this.$t('common.BasicInfo'), ['name', 'type', 'bucket', 'access_key', 'secret_key', 'endpoint', 'comment']]],
swift: [[this.$t('common.BasicInfo'), ['name', 'type', 'bucket', 'access_key', 'secret_key', 'region', 'endpoint', 'protocol', 'comment']]],
oss: [[this.$t('common.BasicInfo'), ['name', 'type', 'bucket', 'access_key', 'secret_key', 'endpoint', 'comment']]],
azure: [[this.$t('common.BasicInfo'), ['name', 'type', 'container_name', 'account_name', 'account_key', 'endpoint_suffix', 'comment']]]
}
}
},

View File

@@ -31,7 +31,7 @@ export default {
},
data() {
return {
selectFields: ['SITE_URL', 'USER_GUIDE_URL', 'EMAIL_SUBJECT_PREFIX'],
selectFields: [[this.$t('common.BasicInfo'), ['SITE_URL', 'USER_GUIDE_URL', 'EMAIL_SUBJECT_PREFIX']]],
successUrl: { name: 'Settings', params: { activeMenu: 'Basic' }},
fieldsMeta: {
SITE_URL: {

View File

@@ -34,8 +34,8 @@ export default {
data() {
const vm = this
return {
selectFields: ['EMAIL_HOST', 'EMAIL_PORT', 'EMAIL_HOST_USER', 'EMAIL_HOST_PASSWORD',
'EMAIL_FROM', 'EMAIL_RECIPIENT', 'EMAIL_USE_SSL', 'EMAIL_USE_TLS'],
selectFields: [[this.$t('common.BasicInfo'), ['EMAIL_HOST', 'EMAIL_PORT', 'EMAIL_HOST_USER', 'EMAIL_HOST_PASSWORD',
'EMAIL_FROM', 'EMAIL_RECIPIENT', 'EMAIL_USE_SSL', 'EMAIL_USE_TLS']]],
successUrl: { name: 'Settings', params: { activeMenu: 'Email' }},
fieldsMeta: {
EMAIL_HOST: {

View File

@@ -92,8 +92,8 @@ export default {
dialogVisible: false,
dialogLdapUserImport: false,
initialData: {},
selectFields: ['AUTH_LDAP_SERVER_URI', 'AUTH_LDAP_BIND_DN', 'AUTH_LDAP_BIND_PASSWORD', 'AUTH_LDAP_SEARCH_OU',
'AUTH_LDAP_SEARCH_FILTER', 'AUTH_LDAP_USER_ATTR_MAP', 'AUTH_LDAP'],
selectFields: [[this.$t('common.BasicInfo'), ['AUTH_LDAP_SERVER_URI', 'AUTH_LDAP_BIND_DN', 'AUTH_LDAP_BIND_PASSWORD', 'AUTH_LDAP_SEARCH_OU',
'AUTH_LDAP_SEARCH_FILTER', 'AUTH_LDAP_USER_ATTR_MAP', 'AUTH_LDAP']]],
successUrl: { name: 'Settings', params: { activeMenu: 'Email' }},
fieldsMeta: {
AUTH_LDAP_SERVER_URI: {

View File

@@ -13,7 +13,7 @@ export default {
return {
fields: [
[
this.$t(''), [
this.$t('common.BasicInfo'), [
'name', 'provider', 'access_key_id', 'access_key_secret', 'comment'
]
]

View File

@@ -19,7 +19,7 @@ export default {
},
fields: [
[
this.$t(''), [
this.$t('common.BasicInfo'), [
'name', 'account', 'regions', 'node', 'admin_user', 'covered_always',
'is_periodic', 'crontab', 'interval', 'comment'
]

View File

@@ -18,7 +18,7 @@ export default {
},
fields: [
['', ['asset', 'username', 'password', 'private_key', 'comment']]
[this.$t('common.BasicInfo'), ['asset', 'username', 'password', 'private_key', 'comment']]
],
fieldsMeta: {
asset: {

View File

@@ -75,7 +75,7 @@ export default {
component: () => import('@/views/xpack/Cloud/Account/AccountCreateUpdate'),
name: 'AccountCreate',
hidden: true,
meta: { title: i18n.t('xpack.Cloud.AccountCreate'), action: 'create' }
meta: { title: i18n.t('xpack.Cloud.AccountCreate'), action: 'create', activeMenu: '/xpack/cloud' }
},
{
path: 'account/:id/update',
@@ -200,13 +200,13 @@ export default {
path: '',
component: () => import('@/views/xpack/Vault/VaultList.vue'),
name: 'VaultList',
meta: { title: i18n.t('xpack.Vault.Vault'), activeMenu: '/xpack/vault/vault' }
meta: { title: i18n.t('xpack.Vault.Vault'), activeMenu: '/xpack/vault' }
},
{
path: 'create',
component: () => import('@/views/xpack/Vault/VaultCreate'),
name: 'VaultCreate',
meta: { title: i18n.t('xpack.Vault.Create'), activeMenu: '/xpack/vault/vault' },
meta: { title: i18n.t('xpack.Vault.Create'), activeMenu: '/xpack/vault' },
hidden: true
}
]