From aea72bcc6e7b0ed2493aa40d4f07fb6c0870dedc Mon Sep 17 00:00:00 2001
From: feng <1304903146@qq.com>
Date: Thu, 16 May 2024 14:25:51 +0800
Subject: [PATCH] perf: account automation translate
---
src/components/Table/CardTable.vue | 2 +-
src/router/workbench/index.js | 2 +-
.../AccountBackup/AccountBackupDetail/AccountBackupInfo.vue | 4 ++--
.../AccountChangeSecretDetail/AccountChangeSecretInfo.vue | 4 ++--
.../AccountChangeSecret/AccountChangeSecretDetail/index.vue | 1 +
.../AccountChangeSecret/AccountChangeSecretList.vue | 2 +-
src/views/accounts/AccountGather/TaskDetail/Detail.vue | 6 +++---
src/views/accounts/AccountGather/TaskDetail/index.vue | 2 +-
src/views/accounts/AccountGather/index.vue | 2 +-
.../AccountPush/AccountPushDetail/AccountPushInfo.vue | 6 ++++--
src/views/accounts/AccountPush/AccountPushDetail/index.vue | 1 +
src/views/accounts/AccountPush/index.vue | 2 +-
12 files changed, 19 insertions(+), 15 deletions(-)
diff --git a/src/components/Table/CardTable.vue b/src/components/Table/CardTable.vue
index 5e753323c..41cd03110 100644
--- a/src/components/Table/CardTable.vue
+++ b/src/components/Table/CardTable.vue
@@ -286,7 +286,7 @@ export default {
.comment {
display: -webkit-box;
- height: 110px;
+ height: 120px;
font-size: 12px;
padding: 15px 0;
cursor: pointer;
diff --git a/src/router/workbench/index.js b/src/router/workbench/index.js
index 4e289090c..7ce4f3d74 100644
--- a/src/router/workbench/index.js
+++ b/src/router/workbench/index.js
@@ -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']
}
},
diff --git a/src/views/accounts/AccountBackup/AccountBackupDetail/AccountBackupInfo.vue b/src/views/accounts/AccountBackup/AccountBackupDetail/AccountBackupInfo.vue
index f980b04db..2433d509e 100644
--- a/src/views/accounts/AccountBackup/AccountBackupDetail/AccountBackupInfo.vue
+++ b/src/views/accounts/AccountBackup/AccountBackupDetail/AccountBackupInfo.vue
@@ -55,14 +55,14 @@ export default {
key: this.$t('Crontab'),
value: this.object.crontab,
formatter: (item, val) => {
- return {this.object.is_periodic ? val : ''}
+ return {this.object.is_periodic ? val : '-'}
}
},
{
key: this.$t('Interval'),
value: this.object.interval,
formatter: (item, val) => {
- return {this.object.is_periodic ? val : ''}
+ return {this.object.is_periodic ? val : '-'}
}
},
'date_created', 'date_updated', 'comment',
diff --git a/src/views/accounts/AccountChangeSecret/AccountChangeSecretDetail/AccountChangeSecretInfo.vue b/src/views/accounts/AccountChangeSecret/AccountChangeSecretDetail/AccountChangeSecretInfo.vue
index f15f20ed7..3e54aa8d8 100644
--- a/src/views/accounts/AccountChangeSecret/AccountChangeSecretDetail/AccountChangeSecretInfo.vue
+++ b/src/views/accounts/AccountChangeSecret/AccountChangeSecretDetail/AccountChangeSecretInfo.vue
@@ -72,14 +72,14 @@ export default {
key: this.$t('Crontab'),
value: this.object.crontab,
formatter: (item, val) => {
- return {this.object.is_periodic ? val : ''}
+ return {this.object.is_periodic ? val : '-'}
}
},
{
key: this.$t('Interval'),
value: this.object.interval,
formatter: (item, val) => {
- return {this.object.is_periodic ? val : ''}
+ return {this.object.is_periodic ? val : '-'}
}
},
'date_created', 'date_updated', 'comment', 'is_active'
diff --git a/src/views/accounts/AccountChangeSecret/AccountChangeSecretDetail/index.vue b/src/views/accounts/AccountChangeSecret/AccountChangeSecretDetail/index.vue
index bfa9f9847..9339216c9 100644
--- a/src/views/accounts/AccountChangeSecret/AccountChangeSecretDetail/index.vue
+++ b/src/views/accounts/AccountChangeSecret/AccountChangeSecretDetail/index.vue
@@ -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: {
diff --git a/src/views/accounts/AccountChangeSecret/AccountChangeSecretList.vue b/src/views/accounts/AccountChangeSecret/AccountChangeSecretList.vue
index e247f715f..e4d3ebb20 100644
--- a/src/views/accounts/AccountChangeSecret/AccountChangeSecretList.vue
+++ b/src/views/accounts/AccountChangeSecret/AccountChangeSecretList.vue
@@ -50,7 +50,7 @@ export default {
formatterArgs: {
showFalse: false
},
- width: '150px'
+ width: '180px'
},
executed_amount: {
formatter: DetailFormatter,
diff --git a/src/views/accounts/AccountGather/TaskDetail/Detail.vue b/src/views/accounts/AccountGather/TaskDetail/Detail.vue
index 12bf9b100..caa451233 100644
--- a/src/views/accounts/AccountGather/TaskDetail/Detail.vue
+++ b/src/views/accounts/AccountGather/TaskDetail/Detail.vue
@@ -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'
]
diff --git a/src/views/accounts/AccountGather/TaskDetail/index.vue b/src/views/accounts/AccountGather/TaskDetail/index.vue
index 01b541c68..1ab4561f0 100644
--- a/src/views/accounts/AccountGather/TaskDetail/index.vue
+++ b/src/views/accounts/AccountGather/TaskDetail/index.vue
@@ -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',
diff --git a/src/views/accounts/AccountGather/index.vue b/src/views/accounts/AccountGather/index.vue
index 10d4a3e6a..ea8b3cad1 100644
--- a/src/views/accounts/AccountGather/index.vue
+++ b/src/views/accounts/AccountGather/index.vue
@@ -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')
diff --git a/src/views/accounts/AccountPush/AccountPushDetail/AccountPushInfo.vue b/src/views/accounts/AccountPush/AccountPushDetail/AccountPushInfo.vue
index 98fd51238..0ff9e4b84 100644
--- a/src/views/accounts/AccountPush/AccountPushDetail/AccountPushInfo.vue
+++ b/src/views/accounts/AccountPush/AccountPushDetail/AccountPushInfo.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 {this.object.is_periodic ? val : ''}
+ return {this.object.is_periodic ? val : '-'}
}
},
{
+ key: this.$t('Interval'),
value: this.object.interval,
formatter: (item, val) => {
- return {this.object.is_periodic ? val : ''}
+ return {this.object.is_periodic ? val : '-'}
}
},
'date_created', 'date_updated', 'comment', 'is_active'
diff --git a/src/views/accounts/AccountPush/AccountPushDetail/index.vue b/src/views/accounts/AccountPush/AccountPushDetail/index.vue
index 6ce2cd531..983b7d479 100644
--- a/src/views/accounts/AccountPush/AccountPushDetail/index.vue
+++ b/src/views/accounts/AccountPush/AccountPushDetail/index.vue
@@ -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: [
diff --git a/src/views/accounts/AccountPush/index.vue b/src/views/accounts/AccountPush/index.vue
index 70d69c535..1c0f76b35 100644
--- a/src/views/accounts/AccountPush/index.vue
+++ b/src/views/accounts/AccountPush/index.vue
@@ -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')