Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MindSpore
mindinsight
提交
36e2e29d
M
mindinsight
项目概览
MindSpore
/
mindinsight
通知
7
Star
3
Fork
2
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
mindinsight
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
36e2e29d
编写于
8月 21, 2020
作者:
M
mindspore-ci-bot
提交者:
Gitee
8月 21, 2020
浏览文件
操作
浏览文件
下载
差异文件
!548 modify icon when device not available
Merge pull request !548 from 冯学峰/myMaster03
上级
362a05e4
dcb42da5
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
16 addition
and
2 deletion
+16
-2
mindinsight/ui/src/assets/images/occupy.svg
mindinsight/ui/src/assets/images/occupy.svg
+11
-0
mindinsight/ui/src/views/train-manage/hardware-visual.vue
mindinsight/ui/src/views/train-manage/hardware-visual.vue
+5
-2
未找到文件。
mindinsight/ui/src/assets/images/occupy.svg
0 → 100644
浏览文件 @
36e2e29d
<?xml version="1.0" encoding="UTF-8"?>
<svg
width=
"197px"
height=
"197px"
viewBox=
"0 0 197 197"
version=
"1.1"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
>
<!-- Generator: Sketch 63.1 (92452) - https://sketch.com -->
<title>
设备占比
</title>
<desc>
Created with Sketch.
</desc>
<g
id=
"硬件资源可视-特性文档"
stroke=
"none"
stroke-width=
"1"
fill=
"none"
fill-rule=
"evenodd"
>
<g
id=
"设备占比"
fill=
"#FA9841"
fill-rule=
"nonzero"
>
<path
d=
"M98.4375,0.1375 C44.1479091,0.1375 0.1375,44.1479091 0.1375,98.4375 C0.1375,152.727091 44.1479091,196.7375 98.4375,196.7375 C152.727091,196.7375 196.7375,152.727091 196.7375,98.4375 C196.682379,44.1707574 152.704243,0.192621163 98.4375,0.1375 Z M103.4375,15.4375 C121.974914,16.606052 139.582848,23.9661683 153.4375,36.3375 L103.4375,86.3375 L103.4375,15.3375 L103.4375,15.4375 Z M15.1374914,98.4375 C15.2134747,54.4129965 49.495318,18.0295843 93.4375,15.3375 L93.4375,98.4375 C93.46687,99.7540728 94.0043749,101.008251 94.9375,101.9375 L153.637491,160.6375 C129.148862,182.422768 94.1517029,187.800527 64.2521242,174.372702 C34.3525455,160.944877 15.1226403,131.21388 15.1374914,98.4375 Z M160.7375,153.6375 L105.5375,98.4375 L160.7375,43.2375 C188.850198,74.6684524 188.850198,122.206548 160.7375,153.6375 Z"
id=
"形状"
></path>
</g>
</g>
</svg>
\ No newline at end of file
mindinsight/ui/src/views/train-manage/hardware-visual.vue
浏览文件 @
36e2e29d
...
...
@@ -580,8 +580,10 @@ export default {
dealChartData
(
chart
,
data
)
{
if
(
data
.
others
===
0
)
{
chart
.
legend
=
[
'
used
'
,
'
available
'
];
this
.
pieColorArr
=
[
'
#5e7ce0
'
,
'
#a6dd82
'
];
}
else
{
chart
.
legend
=
[
'
used
'
,
'
others
'
,
'
available
'
];
this
.
pieColorArr
=
[
'
#5e7ce0
'
,
'
#ccc
'
,
'
#a6dd82
'
];
}
chart
.
data
=
chart
.
legend
.
map
((
val
)
=>
{
return
{
...
...
@@ -799,12 +801,13 @@ export default {
.cl-chip-wrap
{
height
:
calc
(
100%
-
36px
);
overflow
:
auto
;
.available-fail
{
.available-fail
{
display
:
inline-block
;
width
:
12px
;
height
:
12px
;
border-radius
:
12px
;
background
:
#ffaa00
;
background-image
:
url('../../assets/images/occupy.svg')
;
background-size
:
100%
100%
;
}
.el-icon-success
:before
{
color
:
#57d7ac
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录