mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-17 23:59:02 +00:00
perf: 优化账号相关翻译
This commit is contained in:
@@ -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 &&
|
||||
|
@@ -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
|
||||
|
@@ -134,7 +134,7 @@ export default {
|
||||
hasBulkDelete: false,
|
||||
hasBulkUpdate: false,
|
||||
searchConfig: {
|
||||
exclude: ['id', 'status'],
|
||||
exclude: ['id', 'status', 'execution'],
|
||||
options: [
|
||||
{
|
||||
label: this.$t('Asset'),
|
||||
|
@@ -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'
|
||||
|
@@ -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 }) => {
|
||||
|
@@ -134,7 +134,7 @@ export default {
|
||||
hasBulkDelete: false,
|
||||
hasBulkUpdate: false,
|
||||
searchConfig: {
|
||||
exclude: ['id', 'status'],
|
||||
exclude: ['id', 'status', 'execution'],
|
||||
options: [
|
||||
{
|
||||
label: this.$t('Asset'),
|
||||
|
@@ -57,7 +57,7 @@ export default {
|
||||
{ required: false }
|
||||
],
|
||||
label: this.$t('Platform'),
|
||||
helpText: this.$t('BatchUpdatePlatformHelpText')
|
||||
helpText: this.$t('UpdatePlatformHelpText')
|
||||
},
|
||||
nodes: {
|
||||
...meta.nodes,
|
||||
|
@@ -110,7 +110,7 @@ export default {
|
||||
extraMoreActions: [
|
||||
{
|
||||
name: 'OfflineSelected',
|
||||
title: this.$t('BatchOffline'),
|
||||
title: this.$t('OfflineSelected'),
|
||||
type: 'danger',
|
||||
icon: 'clean',
|
||||
can: ({ selectedRows }) => {
|
||||
|
Reference in New Issue
Block a user