perf: account automation translate

This commit is contained in:
feng 2024-05-16 14:25:51 +08:00
parent 145e6db3ec
commit aea72bcc6e
12 changed files with 19 additions and 15 deletions

View File

@ -286,7 +286,7 @@ export default {
.comment {
display: -webkit-box;
height: 110px;
height: 120px;
font-size: 12px;
padding: 15px 0;
cursor: pointer;

View File

@ -162,7 +162,7 @@ export default {
name: 'Execution',
component: () => import('@/views/ops/Execution'),
meta: {
title: i18n.t('ExecutionHistory'),
title: i18n.t('ExecutionList'),
permissions: ['ops.view_jobexecution']
}
},

View File

@ -55,14 +55,14 @@ export default {
key: this.$t('Crontab'),
value: this.object.crontab,
formatter: (item, val) => {
return <span>{this.object.is_periodic ? val : ''}</span>
return <span>{this.object.is_periodic ? val : '-'}</span>
}
},
{
key: this.$t('Interval'),
value: this.object.interval,
formatter: (item, val) => {
return <span>{this.object.is_periodic ? val : ''}</span>
return <span>{this.object.is_periodic ? val : '-'}</span>
}
},
'date_created', 'date_updated', 'comment',

View File

@ -72,14 +72,14 @@ export default {
key: this.$t('Crontab'),
value: this.object.crontab,
formatter: (item, val) => {
return <span>{this.object.is_periodic ? val : ''}</span>
return <span>{this.object.is_periodic ? val : '-'}</span>
}
},
{
key: this.$t('Interval'),
value: this.object.interval,
formatter: (item, val) => {
return <span>{this.object.is_periodic ? val : ''}</span>
return <span>{this.object.is_periodic ? val : '-'}</span>
}
},
'date_created', 'date_updated', 'comment', 'is_active'

View File

@ -23,6 +23,7 @@ export default {
return {
plan: { name: '', username: '', comment: '' },
config: {
titlePrefix: this.$t('AccountChangeSecretDetail'),
activeMenu: 'AccountChangeSecretInfo',
url: '/api/v1/accounts/change-secret-automations',
actions: {

View File

@ -50,7 +50,7 @@ export default {
formatterArgs: {
showFalse: false
},
width: '150px'
width: '180px'
},
executed_amount: {
formatter: DetailFormatter,

View File

@ -28,15 +28,15 @@ export default {
'id', 'name', 'is_periodic',
{
key: this.$t('Crontab'),
value: this.object?.periodic_display || ''
value: this.object?.periodic_display || '-'
},
{
key: this.$t('DateLastSync'),
value: this.object.date_last_sync ? toSafeLocalDateStr(this.object.date_created) : ''
value: this.object.date_last_sync ? toSafeLocalDateStr(this.object.date_created) : '-'
},
{
key: this.$t('DateCreated'),
value: this.object.date_created ? toSafeLocalDateStr(this.object.date_created) : ''
value: this.object.date_created ? toSafeLocalDateStr(this.object.date_created) : '-'
},
'comment'
]

View File

@ -25,7 +25,7 @@ export default {
config: {
url: '/api/v1/accounts/gather-account-automations',
activeMenu: 'Detail',
titlePrefix: this.$t('AccountGatherTaskList'),
titlePrefix: this.$t('AccountGatherDetail'),
actions: {
deleteSuccessRoute: 'AccountGatherList',
canUpdate: 'accounts.change_gatheraccountsautomation',

View File

@ -16,7 +16,7 @@ export default {
activeMenu: 'AccountGatherList',
submenu: [
{
title: this.$t('AccountGatherList'),
title: this.$t('GatheredAccountList'),
name: 'AccountGatherList',
hidden: !this.$hasPerm('accounts.view_gatheredaccount'),
component: () => import('@/views/accounts/AccountGather/AccountGatherList.vue')

View File

@ -69,15 +69,17 @@ export default {
value: this.object.secret_strategy.label
},
{
key: this.$t('Crontab'),
value: this.object.crontab,
formatter: (item, val) => {
return <span>{this.object.is_periodic ? val : ''}</span>
return <span>{this.object.is_periodic ? val : '-'}</span>
}
},
{
key: this.$t('Interval'),
value: this.object.interval,
formatter: (item, val) => {
return <span>{this.object.is_periodic ? val : ''}</span>
return <span>{this.object.is_periodic ? val : '-'}</span>
}
},
'date_created', 'date_updated', 'comment', 'is_active'

View File

@ -19,6 +19,7 @@ export default {
return {
plan: { name: '', username: '', comment: '' },
config: {
titlePrefix: this.$t('AccountPushDetail'),
activeMenu: 'AccountPushInfo',
url: '/api/v1/accounts/push-account-automations',
submenu: [

View File

@ -22,7 +22,7 @@ export default {
component: () => import('@/views/accounts/AccountPush/AccountPushList.vue')
},
{
title: this.$t('AccountPushExecutionList'),
title: this.$t('ExecutionList'),
name: 'AccountPushExecutionList',
hidden: !this.$hasPerm('accounts.view_pushaccountexecution'),
component: () => import('@/views/accounts/AccountPush/AccountPushExecutionList.vue')