perf: 优化账号相关翻译

This commit is contained in:
feng
2024-05-08 18:03:20 +08:00
parent f843dde3d6
commit 846f3c6c5b
8 changed files with 18 additions and 15 deletions

View File

@@ -350,8 +350,8 @@ export default {
],
extraMoreActions: [
{
name: 'BatchTest',
title: this.$t('BatchTest'),
name: 'TestSelected',
title: this.$t('TestSelected'),
type: 'primary',
icon: 'fa-handshake-o',
can: ({ selectedRows }) => {
@@ -389,13 +389,13 @@ export default {
{ account_ids: ids }).then(() => {
this.$message.success(this.$tc('ClearSuccessMsg'))
}).catch(err => {
this.$message.error(this.$tc('BatchClearErrorMsg' + ' ' + err))
this.$message.error(this.$tc('ClearErrorMsg' + ' ' + err))
})
}.bind(this)
},
{
name: 'BatchUpdate',
title: this.$t('BatchUpdate'),
name: 'UpdateSelected',
title: this.$t('UpdateSelected'),
icon: 'batch-update',
can: ({ selectedRows }) => {
return selectedRows.length > 0 &&

View File

@@ -68,7 +68,7 @@ export default {
extraMoreActions: [
{
name: 'UnlockSelected',
title: this.$t('BatchUnblock'),
title: this.$t('UnblockSelected'),
type: 'primary',
can: ({ selectedRows }) => {
return selectedRows.length > 0

View File

@@ -134,7 +134,7 @@ export default {
hasBulkDelete: false,
hasBulkUpdate: false,
searchConfig: {
exclude: ['id', 'status'],
exclude: ['id', 'status', 'execution'],
options: [
{
label: this.$t('Asset'),

View File

@@ -16,6 +16,9 @@ export const getChangeSecretFields = () => {
}
},
secret: {
el: {
autocomplete: 'new-password'
},
label: i18n.t('Password'),
hidden: ({ secret_strategy, secret_type }) => {
return secret_strategy !== 'specific' || secret_type !== 'password'

View File

@@ -132,8 +132,8 @@ export default {
},
extraMoreActions: [
{
name: 'BatchSync',
title: this.$t('BatchSync'),
name: 'SyncSelected',
title: this.$t('SyncSelected'),
type: 'primary',
icon: 'fa fa-exchange',
can: ({ selectedRows }) => {
@@ -149,13 +149,13 @@ export default {
).then(() => {
this.$message.success(this.$tc('SyncSuccessMsg'))
}).catch(err => {
this.$message.error(this.$tc('BatchSyncErrorMsg' + ' ' + err))
this.$message.error(this.$tc('SyncErrorMsg' + ' ' + err))
})
}.bind(this)
},
{
name: 'BatchSyncDelete',
title: this.$t('BatchSyncDelete'),
name: 'SyncDeleteSelected',
title: this.$t('SyncDeleteSelected'),
type: 'primary',
icon: 'fa fa-exchange',
can: ({ selectedRows }) => {

View File

@@ -134,7 +134,7 @@ export default {
hasBulkDelete: false,
hasBulkUpdate: false,
searchConfig: {
exclude: ['id', 'status'],
exclude: ['id', 'status', 'execution'],
options: [
{
label: this.$t('Asset'),

View File

@@ -57,7 +57,7 @@ export default {
{ required: false }
],
label: this.$t('Platform'),
helpText: this.$t('BatchUpdatePlatformHelpText')
helpText: this.$t('UpdatePlatformHelpText')
},
nodes: {
...meta.nodes,

View File

@@ -110,7 +110,7 @@ export default {
extraMoreActions: [
{
name: 'OfflineSelected',
title: this.$t('BatchOffline'),
title: this.$t('OfflineSelected'),
type: 'danger',
icon: 'clean',
can: ({ selectedRows }) => {