mirror of
https://github.com/jumpserver/lina.git
synced 2025-07-04 10:46:42 +00:00
perf: account automation translate
This commit is contained in:
parent
145e6db3ec
commit
aea72bcc6e
@ -286,7 +286,7 @@ export default {
|
||||
|
||||
.comment {
|
||||
display: -webkit-box;
|
||||
height: 110px;
|
||||
height: 120px;
|
||||
font-size: 12px;
|
||||
padding: 15px 0;
|
||||
cursor: pointer;
|
||||
|
@ -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']
|
||||
}
|
||||
},
|
||||
|
@ -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',
|
||||
|
@ -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'
|
||||
|
@ -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: {
|
||||
|
@ -50,7 +50,7 @@ export default {
|
||||
formatterArgs: {
|
||||
showFalse: false
|
||||
},
|
||||
width: '150px'
|
||||
width: '180px'
|
||||
},
|
||||
executed_amount: {
|
||||
formatter: DetailFormatter,
|
||||
|
@ -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'
|
||||
]
|
||||
|
@ -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',
|
||||
|
@ -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')
|
||||
|
@ -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'
|
||||
|
@ -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: [
|
||||
|
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user