[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: [ fields: [
['', ['name', 'username', 'password', 'private_key', 'comment']] [this.$t('common.BasicInfo'), ['name', 'username', 'password', 'private_key', 'comment']]
], ],
fieldsMeta: { fieldsMeta: {
name: { name: {

View File

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

View File

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

View File

@@ -91,11 +91,11 @@ export default {
} }
}, },
fieldsMap: { fieldsMap: {
s3: ['name', 'type', 'bucket', 'access_key', 'secret_key', 'endpoint', 'comment'], s3: [[this.$t('common.BasicInfo'), ['name', 'type', 'bucket', 'access_key', 'secret_key', 'endpoint', 'comment']]],
ceph: ['name', 'type', 'bucket', 'access_key', 'secret_key', 'endpoint', 'comment'], ceph: [[this.$t('common.BasicInfo'), ['name', 'type', 'bucket', 'access_key', 'secret_key', 'endpoint', 'comment']]],
swift: ['name', 'type', 'bucket', 'access_key', 'secret_key', 'region', 'endpoint', 'protocol', 'comment'], swift: [[this.$t('common.BasicInfo'), ['name', 'type', 'bucket', 'access_key', 'secret_key', 'region', 'endpoint', 'protocol', 'comment']]],
oss: ['name', 'type', 'bucket', 'access_key', 'secret_key', 'endpoint', 'comment'], oss: [[this.$t('common.BasicInfo'), ['name', 'type', 'bucket', 'access_key', 'secret_key', 'endpoint', 'comment']]],
azure: ['name', 'type', 'container_name', 'account_name', 'account_key', 'endpoint_suffix', '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() { data() {
return { 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' }}, successUrl: { name: 'Settings', params: { activeMenu: 'Basic' }},
fieldsMeta: { fieldsMeta: {
SITE_URL: { SITE_URL: {

View File

@@ -34,8 +34,8 @@ export default {
data() { data() {
const vm = this const vm = this
return { return {
selectFields: ['EMAIL_HOST', 'EMAIL_PORT', 'EMAIL_HOST_USER', 'EMAIL_HOST_PASSWORD', 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'], 'EMAIL_FROM', 'EMAIL_RECIPIENT', 'EMAIL_USE_SSL', 'EMAIL_USE_TLS']]],
successUrl: { name: 'Settings', params: { activeMenu: 'Email' }}, successUrl: { name: 'Settings', params: { activeMenu: 'Email' }},
fieldsMeta: { fieldsMeta: {
EMAIL_HOST: { EMAIL_HOST: {

View File

@@ -92,8 +92,8 @@ export default {
dialogVisible: false, dialogVisible: false,
dialogLdapUserImport: false, dialogLdapUserImport: false,
initialData: {}, initialData: {},
selectFields: ['AUTH_LDAP_SERVER_URI', 'AUTH_LDAP_BIND_DN', 'AUTH_LDAP_BIND_PASSWORD', 'AUTH_LDAP_SEARCH_OU', 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'], 'AUTH_LDAP_SEARCH_FILTER', 'AUTH_LDAP_USER_ATTR_MAP', 'AUTH_LDAP']]],
successUrl: { name: 'Settings', params: { activeMenu: 'Email' }}, successUrl: { name: 'Settings', params: { activeMenu: 'Email' }},
fieldsMeta: { fieldsMeta: {
AUTH_LDAP_SERVER_URI: { AUTH_LDAP_SERVER_URI: {

View File

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

View File

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

View File

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

View File

@@ -75,7 +75,7 @@ export default {
component: () => import('@/views/xpack/Cloud/Account/AccountCreateUpdate'), component: () => import('@/views/xpack/Cloud/Account/AccountCreateUpdate'),
name: 'AccountCreate', name: 'AccountCreate',
hidden: true, 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', path: 'account/:id/update',
@@ -200,13 +200,13 @@ export default {
path: '', path: '',
component: () => import('@/views/xpack/Vault/VaultList.vue'), component: () => import('@/views/xpack/Vault/VaultList.vue'),
name: 'VaultList', 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', path: 'create',
component: () => import('@/views/xpack/Vault/VaultCreate'), component: () => import('@/views/xpack/Vault/VaultCreate'),
name: '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 hidden: true
} }
] ]