From dce99fab2756bb1d09e8825a24077a0d3f6cc486 Mon Sep 17 00:00:00 2001 From: fengxuefeng Date: Sat, 18 Jul 2020 14:38:58 +0800 Subject: [PATCH] Modify prompts and icons --- mindinsight/ui/src/locales/zh-cn.json | 5 +++-- .../ui/src/views/train-manage/hardware-visual.vue | 12 ++++++++---- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/mindinsight/ui/src/locales/zh-cn.json b/mindinsight/ui/src/locales/zh-cn.json index 3973d78..c277d25 100644 --- a/mindinsight/ui/src/locales/zh-cn.json +++ b/mindinsight/ui/src/locales/zh-cn.json @@ -394,7 +394,7 @@ "allCpu": "CPU-总计:", "chipNameTip": "芯片名称", "deviceIdTip": "芯片号", - "availableTip": "芯片是否空闲", + "availableTip": "芯片是否空闲(仅供参考)", "healthTip": "芯片健康指数(正常、一般警告、重要警告、紧急警告)", "ipTip": "芯片IP地址", "aicoreTip": "芯片利用率", @@ -412,7 +412,8 @@ "cpuGuestTip": "运行虚拟机的时间百分比", "cpuGuestniceTip": "运行低优先级虚拟机的时间百分比", "cpuInterruptTip": "处理硬中断的时间百分比", - "cpuDpcTip": "远程调用的时间百分比" + "cpuDpcTip": "远程调用的时间百分比", + "noNpuInfo":"暂无昇腾AI处理器信息" }, "components": { "summaryTitle": "训练选择", diff --git a/mindinsight/ui/src/views/train-manage/hardware-visual.vue b/mindinsight/ui/src/views/train-manage/hardware-visual.vue index 02c99b4..9c81fd5 100644 --- a/mindinsight/ui/src/views/train-manage/hardware-visual.vue +++ b/mindinsight/ui/src/views/train-manage/hardware-visual.vue @@ -20,11 +20,12 @@ limitations under the License. v-if="!(chipTableData.length === 0 && cpuList.length===0)">
-
+
{{$t('hardwareVisual.processor')}}
- @@ -66,7 +67,7 @@ limitations under the License. @@ -189,7 +190,7 @@ limitations under the License.
-

{{$t("public.noData")}}

+

{{$t("hardwareVisual.noNpuInfo")}}

@@ -721,6 +722,9 @@ export default { .cl-chip-wrap { height: calc(100% - 36px); overflow: auto; + .el-icon-question::before { + color: red; + } .el-icon-success:before { color: #57d7ac; } -- GitLab