fix(sj_1.0.0): 首页重试tab的失败总量文案

This commit is contained in:
dhb52 2024-06-09 22:37:29 +08:00
parent 3f0de9fa56
commit 168a6b440f
4 changed files with 40 additions and 35 deletions

View File

@ -58,7 +58,6 @@ const local: App.I18n.Schema = {
update: 'Update',
updateSuccess: 'Update Success',
updateFailed: 'Update Failed',
userCenter: 'User Center',
downloadFail: 'File download failed',
success: 'Success',
fail: 'Fail',
@ -90,13 +89,13 @@ const local: App.I18n.Schema = {
disable: 'Disable'
},
systemTaskType: {
retry: 'Retry task',
callback: 'Callback task',
job: 'Job task',
retry: 'Retry Task',
callback: 'Callback Task',
job: 'Job Task',
workflow: 'Workflow'
},
routeKey: {
routeLabel: 'Route key',
routeLabel: 'Route Key',
routeForm: 'Please enter route key',
items: {
consistentHash: 'Consistent hash',
@ -106,7 +105,7 @@ const local: App.I18n.Schema = {
}
},
blockStrategy: {
label: 'Block strategy',
label: 'Block Strategy',
form: 'Please enter block strategy',
items: {
discard: 'Discard',
@ -115,14 +114,14 @@ const local: App.I18n.Schema = {
}
},
executorType: {
label: 'Executor type',
label: 'Executor Type',
form: 'Please enter executor type',
items: {
java: 'Java'
}
},
taskType: {
label: 'Task type',
label: 'Task Type',
form: 'Please enter task type',
items: {
cluster: 'Cluster',
@ -140,7 +139,7 @@ const local: App.I18n.Schema = {
}
},
taskBatchStatus: {
label: 'Task batch status',
label: 'Task Batch Status',
form: 'Please enter task batch status',
items: {
waiting: 'Waiting',
@ -152,7 +151,7 @@ const local: App.I18n.Schema = {
}
},
taskStatus: {
label: 'Task status',
label: 'Task Status',
form: 'Please enter task status',
items: {
running: 'Running',
@ -163,7 +162,7 @@ const local: App.I18n.Schema = {
}
},
jobOperationReason: {
label: 'Job operation reason',
label: 'Job Operation Reason',
form: 'Please enter job operation reason',
items: {
none: 'None',
@ -183,8 +182,8 @@ const local: App.I18n.Schema = {
workflowDecisionFailed: 'Workflow decision failed'
}
},
updateDt: 'updated time',
createDt: 'created time'
updateDt: 'Updated Time',
createDt: 'Created Time'
},
request: {
logout: 'Logout user after request failed',
@ -296,13 +295,13 @@ const local: App.I18n.Schema = {
document_antd: 'Ant Design Vue Document',
about: 'About',
pods: 'Online Machine',
namespace: 'namespace',
notify: 'notify',
notify_recipient: 'Notify recipient',
notify_scene: 'Notify scene',
retry: 'Retry task',
retry_task: 'Retry task',
retry_scene: 'Retry scene',
namespace: 'Namespace',
notify: 'Notify',
notify_recipient: 'Notify Recipient',
notify_scene: 'Notify Scene',
retry: 'Retry Task',
retry_task: 'Retry Task',
retry_scene: 'Retry Scene',
retry_log: 'Retry Log',
'retry_dead-letter': 'Retry Dead Letter',
user: 'User',
@ -332,7 +331,7 @@ const local: App.I18n.Schema = {
},
login: {
common: {
loginOrRegister: 'Login / Register',
loginOrRegister: 'Login/Register',
userNamePlaceholder: 'Please enter user name',
phonePlaceholder: 'Please enter phone number',
codePlaceholder: 'Please enter verification code',
@ -348,8 +347,8 @@ const local: App.I18n.Schema = {
},
pwdLogin: {
title: 'Password Login',
rememberMe: 'Remember me',
forgetPassword: 'Forget password?',
rememberMe: 'Remember Me',
forgetPassword: 'Forget Password?',
register: 'Register',
otherAccountLogin: 'Other Account Login',
otherLoginMode: 'Other Login Mode',
@ -409,7 +408,8 @@ const local: App.I18n.Schema = {
year: 'Year Round'
},
rank: {
title: 'Failure ranking'
title: 'Failure Ranking',
titleRetry: 'Total Amount Ranking'
},
task: {
title: 'List of scenes',
@ -483,11 +483,11 @@ const local: App.I18n.Schema = {
retryConfig: 'RetryConfig',
form: {
groupName: 'Please enter group name',
token: 'Please enter Token',
token: 'Please enter token',
groupStatus: 'Please select group status',
description: 'Please enter description',
idGeneratorMode: 'Please select ID generator mode',
groupPartition: 'Please select Group partition',
groupPartition: 'Please select group partition',
initScene: 'Initialized scene',
collapseCommon: 'Common config',
collapseRetry: 'Retry config',
@ -834,12 +834,12 @@ const local: App.I18n.Schema = {
oldPassword: 'Old Password',
newPassword: 'New Password',
form: {
role: 'Please enter Role',
password: 'Please enter Password',
username: 'Please enter Username',
checkPassword: 'Please enter Confirm Password',
permissions: 'Please select Group',
namespaceIds: 'Please select Namespaces',
role: 'Please enter role',
password: 'Please enter password',
username: 'Please enter username',
checkPassword: 'Please enter confirm password',
permissions: 'Please select group',
namespaceIds: 'Please select namespaces',
oldPassword: 'Please enter old password',
newPassword: 'Please enter new password'
},

View File

@ -293,7 +293,6 @@ const local: App.I18n.Schema = {
document_unocss: 'UnoCSS文档',
document_naive: 'Naive UI文档',
document_antd: 'Ant Design Vue文档',
'user-center': '个人中心',
about: '关于',
pods: '在线机器',
namespace: '命名空间',
@ -420,7 +419,8 @@ const local: App.I18n.Schema = {
year: '全年'
},
rank: {
title: '失败总量排名'
title: '失败总量排名',
titleRetry: '任务量排名'
},
task: {
title: '场景列表',

View File

@ -580,6 +580,7 @@ declare namespace App {
};
rank: {
title: string;
titleRetry: string;
};
task: {
title: string;

View File

@ -164,7 +164,11 @@ getGroupNames();
</NGi>
<NGi span="24 s:24 m:8">
<div class="task-tab-rank">
<h4 class="task-tab-title">{{ $t('page.home.retryTab.rank.title') }}</h4>
<h4 class="task-tab-title">
{{
taskType === 'RETRY' ? $t('page.home.retryTab.rank.titleRetry') : $t('page.home.retryTab.rank.title')
}}
</h4>
<ul class="task-tab-rank__list">
<li v-for="(item, index) in data?.rankList" :key="index" class="task-tab-rank__list--item">
<span>