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

View File

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

View File

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

View File

@ -164,7 +164,11 @@ getGroupNames();
</NGi> </NGi>
<NGi span="24 s:24 m:8"> <NGi span="24 s:24 m:8">
<div class="task-tab-rank"> <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"> <ul class="task-tab-rank__list">
<li v-for="(item, index) in data?.rankList" :key="index" class="task-tab-rank__list--item"> <li v-for="(item, index) in data?.rankList" :key="index" class="task-tab-rank__list--item">
<span> <span>