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 { .comment {
display: -webkit-box; display: -webkit-box;
height: 110px; height: 120px;
font-size: 12px; font-size: 12px;
padding: 15px 0; padding: 15px 0;
cursor: pointer; cursor: pointer;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -28,15 +28,15 @@ export default {
'id', 'name', 'is_periodic', 'id', 'name', 'is_periodic',
{ {
key: this.$t('Crontab'), key: this.$t('Crontab'),
value: this.object?.periodic_display || '' value: this.object?.periodic_display || '-'
}, },
{ {
key: this.$t('DateLastSync'), 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'), 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' 'comment'
] ]

View File

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

View File

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

View File

@ -69,15 +69,17 @@ export default {
value: this.object.secret_strategy.label value: this.object.secret_strategy.label
}, },
{ {
key: this.$t('Crontab'),
value: this.object.crontab, value: this.object.crontab,
formatter: (item, val) => { 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, value: this.object.interval,
formatter: (item, val) => { 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' 'date_created', 'date_updated', 'comment', 'is_active'

View File

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

View File

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