mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-19 17:54:37 +00:00
perf: translate
This commit is contained in:
@@ -30,7 +30,7 @@ export default {
|
|||||||
columnsShow: {
|
columnsShow: {
|
||||||
default: [
|
default: [
|
||||||
'automation', 'backup_name', 'trigger',
|
'automation', 'backup_name', 'trigger',
|
||||||
'date_start', 'date_finished', 'duration', 'actions'
|
'date_start', 'date_finished', 'actions'
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
columnsMeta: {
|
columnsMeta: {
|
||||||
|
@@ -38,7 +38,7 @@ export default {
|
|||||||
columnsShow: {
|
columnsShow: {
|
||||||
min: ['name', 'actions'],
|
min: ['name', 'actions'],
|
||||||
default: [
|
default: [
|
||||||
'name', 'backup_type', 'org_name', 'periodic_display',
|
'name', 'backup_type', 'periodic_display',
|
||||||
'executed_amount', 'is_active', 'actions'
|
'executed_amount', 'is_active', 'actions'
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@@ -22,7 +22,7 @@ export default {
|
|||||||
],
|
],
|
||||||
columnsShow: {
|
columnsShow: {
|
||||||
default: [
|
default: [
|
||||||
'automation', 'change_secret_name', 'status',
|
'automation', 'change_secret_name', 'trigger', 'status',
|
||||||
'date_start', 'date_finished', 'actions'
|
'date_start', 'date_finished', 'actions'
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@@ -36,7 +36,7 @@ export default {
|
|||||||
)
|
)
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('AccountRecord'),
|
title: this.$t('RecordList'),
|
||||||
name: 'ChangeSecretRecord',
|
name: 'ChangeSecretRecord',
|
||||||
hidden: () => !this.$hasPerm('accounts.view_changesecretrecord'),
|
hidden: () => !this.$hasPerm('accounts.view_changesecretrecord'),
|
||||||
component: () => import(
|
component: () => import(
|
||||||
|
@@ -28,7 +28,7 @@ export default {
|
|||||||
],
|
],
|
||||||
columnsShow: {
|
columnsShow: {
|
||||||
default: [
|
default: [
|
||||||
'automation', 'push_user_name', 'status',
|
'automation', 'push_user_name', 'trigger', 'status',
|
||||||
'date_start', 'date_finished', 'actions'
|
'date_start', 'date_finished', 'actions'
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@@ -28,7 +28,7 @@ export default {
|
|||||||
component: () => import('@/views/accounts/AccountPush/AccountPushExecutionList.vue')
|
component: () => import('@/views/accounts/AccountPush/AccountPushExecutionList.vue')
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('AccountRecord'),
|
title: this.$t('RecordList'),
|
||||||
name: 'AccountPushRecord',
|
name: 'AccountPushRecord',
|
||||||
hidden: () => !this.$hasPerm('accounts.view_pushsecretrecord'),
|
hidden: () => !this.$hasPerm('accounts.view_pushsecretrecord'),
|
||||||
component: () => import(
|
component: () => import(
|
||||||
|
@@ -26,7 +26,7 @@ export default {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'records',
|
name: 'records',
|
||||||
title: this.$t('Records'),
|
title: this.$t('RecordList'),
|
||||||
hidden: !this.$hasPerm('audits.view_integrationapplicationlog'),
|
hidden: !this.$hasPerm('audits.view_integrationapplicationlog'),
|
||||||
component: () => import('@/views/pam/Integration/components/CallRecords.vue')
|
component: () => import('@/views/pam/Integration/components/CallRecords.vue')
|
||||||
},
|
},
|
||||||
|
@@ -8,7 +8,7 @@ import { openTaskPage } from '@/utils/jms'
|
|||||||
import { DetailFormatter } from '@/components/Table/TableFormatters'
|
import { DetailFormatter } from '@/components/Table/TableFormatters'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'AccountPushExecutionList',
|
name: 'CheckAccountExecutionList',
|
||||||
components: {
|
components: {
|
||||||
GenericListTable
|
GenericListTable
|
||||||
},
|
},
|
||||||
@@ -24,7 +24,7 @@ export default {
|
|||||||
tableConfig: {
|
tableConfig: {
|
||||||
url: '/api/v1/accounts/check-account-executions/',
|
url: '/api/v1/accounts/check-account-executions/',
|
||||||
columns: [
|
columns: [
|
||||||
'task_name', 'asset_amount',
|
'automation', 'task_name', 'asset_amount',
|
||||||
'node_amount', 'status', 'trigger',
|
'node_amount', 'status', 'trigger',
|
||||||
'date_start', 'date_finished', 'actions'
|
'date_start', 'date_finished', 'actions'
|
||||||
],
|
],
|
||||||
@@ -36,9 +36,16 @@ export default {
|
|||||||
},
|
},
|
||||||
columnsMeta: {
|
columnsMeta: {
|
||||||
automation: {
|
automation: {
|
||||||
label: this.$t('TaskID'),
|
label: this.$t('ID'),
|
||||||
formatter: function(row) {
|
formatter: DetailFormatter,
|
||||||
return <span>{row.automation}</span>
|
formatterArgs: {
|
||||||
|
route: 'AccountCheckExecutionDetail',
|
||||||
|
getRoute: ({ row }) => ({
|
||||||
|
name: 'AccountCheckExecutionDetail',
|
||||||
|
params: { id: row.id }
|
||||||
|
}),
|
||||||
|
drawer: true,
|
||||||
|
can: this.$hasPerm('accounts.view_checkaccountexecution')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
task_name: {
|
task_name: {
|
||||||
@@ -68,12 +75,6 @@ export default {
|
|||||||
status: {
|
status: {
|
||||||
label: this.$t('Result')
|
label: this.$t('Result')
|
||||||
},
|
},
|
||||||
timedelta: {
|
|
||||||
label: this.$t('TimeDelta'),
|
|
||||||
formatter: function(row) {
|
|
||||||
return row.timedelta.toFixed(2) + 's'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
actions: {
|
actions: {
|
||||||
formatterArgs: {
|
formatterArgs: {
|
||||||
hasDelete: false,
|
hasDelete: false,
|
||||||
@@ -83,26 +84,17 @@ export default {
|
|||||||
{
|
{
|
||||||
name: 'log',
|
name: 'log',
|
||||||
type: 'primary',
|
type: 'primary',
|
||||||
can: this.$hasPerm('accounts.view_pushaccountexecution'),
|
can: this.$hasPerm('accounts.view_checkaccountexecution'),
|
||||||
title: this.$t('Log'),
|
title: this.$t('Log'),
|
||||||
callback: function({ row }) {
|
callback: function({ row }) {
|
||||||
openTaskPage(row['id'])
|
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',
|
name: 'report',
|
||||||
title: this.$t('Report'),
|
title: this.$t('Report'),
|
||||||
type: 'success',
|
type: 'success',
|
||||||
can: this.$hasPerm('accounts.view_pushaccountexecution'),
|
can: this.$hasPerm('accounts.view_checkaccountexecution'),
|
||||||
callback: function({ row }) {
|
callback: function({ row }) {
|
||||||
window.open(`/api/v1/accounts/check-account-executions/${row.id}/report/`)
|
window.open(`/api/v1/accounts/check-account-executions/${row.id}/report/`)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user