From 73ed6bef3031989d0e999d2eeff979a8fcbf0f3b Mon Sep 17 00:00:00 2001 From: marvzhang Date: Thu, 13 Feb 2020 12:10:18 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9B=B6=E5=80=BC=E6=8A=A5=E8=AD=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/InfoView/TaskInfoView.vue | 9 +++++++++ frontend/src/components/Status/StatusTag.vue | 13 ++++++++++++- frontend/src/i18n/zh.js | 1 + 3 files changed, 22 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/InfoView/TaskInfoView.vue b/frontend/src/components/InfoView/TaskInfoView.vue index d55945b0..d4b55d68 100644 --- a/frontend/src/components/InfoView/TaskInfoView.vue +++ b/frontend/src/components/InfoView/TaskInfoView.vue @@ -17,9 +17,18 @@ style="margin-left:10px; cursor:pointer;" > + {{$t('Log with errors')}} + + + {{$t('Empty results')}} + diff --git a/frontend/src/components/Status/StatusTag.vue b/frontend/src/components/Status/StatusTag.vue index 1f4f0c89..befe2ab3 100644 --- a/frontend/src/components/Status/StatusTag.vue +++ b/frontend/src/components/Status/StatusTag.vue @@ -1,5 +1,6 @@ @@ -38,6 +39,16 @@ export default { return s.label } return 'NA' + }, + icon () { + if (this.status === 'finished') { + return 'el-icon-check' + } else if (this.status === 'running') { + return 'el-icon-loading' + } else if (this.status === 'error') { + return 'el-icon-error' + } + return '' } } } diff --git a/frontend/src/i18n/zh.js b/frontend/src/i18n/zh.js index 5dbf2919..419fcd9d 100644 --- a/frontend/src/i18n/zh.js +++ b/frontend/src/i18n/zh.js @@ -213,6 +213,7 @@ export default { 'Updating log...': '正在更新日志...', 'Error Count': '错误数', 'Log with errors': '日志错误', + 'Empty results': '空结果', // 任务列表 'Node': '节点',