perf: translate

This commit is contained in:
feng
2025-02-13 18:55:33 +08:00
committed by feng626
parent f1956b4982
commit ded7920a8a
8 changed files with 21 additions and 29 deletions

View File

@@ -30,7 +30,7 @@ export default {
columnsShow: {
default: [
'automation', 'backup_name', 'trigger',
'date_start', 'date_finished', 'duration', 'actions'
'date_start', 'date_finished', 'actions'
]
},
columnsMeta: {

View File

@@ -38,7 +38,7 @@ export default {
columnsShow: {
min: ['name', 'actions'],
default: [
'name', 'backup_type', 'org_name', 'periodic_display',
'name', 'backup_type', 'periodic_display',
'executed_amount', 'is_active', 'actions'
]
},

View File

@@ -22,7 +22,7 @@ export default {
],
columnsShow: {
default: [
'automation', 'change_secret_name', 'status',
'automation', 'change_secret_name', 'trigger', 'status',
'date_start', 'date_finished', 'actions'
]
},

View File

@@ -36,7 +36,7 @@ export default {
)
},
{
title: this.$t('AccountRecord'),
title: this.$t('RecordList'),
name: 'ChangeSecretRecord',
hidden: () => !this.$hasPerm('accounts.view_changesecretrecord'),
component: () => import(

View File

@@ -28,7 +28,7 @@ export default {
],
columnsShow: {
default: [
'automation', 'push_user_name', 'status',
'automation', 'push_user_name', 'trigger', 'status',
'date_start', 'date_finished', 'actions'
]
},

View File

@@ -28,7 +28,7 @@ export default {
component: () => import('@/views/accounts/AccountPush/AccountPushExecutionList.vue')
},
{
title: this.$t('AccountRecord'),
title: this.$t('RecordList'),
name: 'AccountPushRecord',
hidden: () => !this.$hasPerm('accounts.view_pushsecretrecord'),
component: () => import(

View File

@@ -26,7 +26,7 @@ export default {
},
{
name: 'records',
title: this.$t('Records'),
title: this.$t('RecordList'),
hidden: !this.$hasPerm('audits.view_integrationapplicationlog'),
component: () => import('@/views/pam/Integration/components/CallRecords.vue')
},

View File

@@ -8,7 +8,7 @@ import { openTaskPage } from '@/utils/jms'
import { DetailFormatter } from '@/components/Table/TableFormatters'
export default {
name: 'AccountPushExecutionList',
name: 'CheckAccountExecutionList',
components: {
GenericListTable
},
@@ -24,7 +24,7 @@ export default {
tableConfig: {
url: '/api/v1/accounts/check-account-executions/',
columns: [
'task_name', 'asset_amount',
'automation', 'task_name', 'asset_amount',
'node_amount', 'status', 'trigger',
'date_start', 'date_finished', 'actions'
],
@@ -36,9 +36,16 @@ export default {
},
columnsMeta: {
automation: {
label: this.$t('TaskID'),
formatter: function(row) {
return <span>{row.automation}</span>
label: this.$t('ID'),
formatter: DetailFormatter,
formatterArgs: {
route: 'AccountCheckExecutionDetail',
getRoute: ({ row }) => ({
name: 'AccountCheckExecutionDetail',
params: { id: row.id }
}),
drawer: true,
can: this.$hasPerm('accounts.view_checkaccountexecution')
}
},
task_name: {
@@ -68,12 +75,6 @@ export default {
status: {
label: this.$t('Result')
},
timedelta: {
label: this.$t('TimeDelta'),
formatter: function(row) {
return row.timedelta.toFixed(2) + 's'
}
},
actions: {
formatterArgs: {
hasDelete: false,
@@ -83,26 +84,17 @@ export default {
{
name: 'log',
type: 'primary',
can: this.$hasPerm('accounts.view_pushaccountexecution'),
can: this.$hasPerm('accounts.view_checkaccountexecution'),
title: this.$t('Log'),
callback: function({ row }) {
openTaskPage(row['id'])
}
},
{
name: 'detail',
title: this.$t('Detail'),
type: 'info',
can: this.$hasPerm('accounts.view_pushaccountexecution'),
callback: function({ row }) {
return this.$router.push({ name: 'AccountCheckExecutionDetail', params: { id: row.id }})
}
},
{
name: 'report',
title: this.$t('Report'),
type: 'success',
can: this.$hasPerm('accounts.view_pushaccountexecution'),
can: this.$hasPerm('accounts.view_checkaccountexecution'),
callback: function({ row }) {
window.open(`/api/v1/accounts/check-account-executions/${row.id}/report/`)
}