Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
wmsofts
mindinsight
提交
521e2e67
M
mindinsight
项目概览
wmsofts
/
mindinsight
与 Fork 源项目一致
Fork自
MindSpore / mindinsight
通知
1
Star
0
Fork
0
代码
文件
提交
分支
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看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
521e2e67
编写于
5月 22, 2020
作者:
W
WeiFeng
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
溯源
上级
16e94c3f
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
65 addition
and
30 deletion
+65
-30
mindinsight/ui/src/locales/zh-cn.json
mindinsight/ui/src/locales/zh-cn.json
+2
-1
mindinsight/ui/src/views/train-manage/data-traceback.vue
mindinsight/ui/src/views/train-manage/data-traceback.vue
+23
-6
mindinsight/ui/src/views/train-manage/model-traceback.vue
mindinsight/ui/src/views/train-manage/model-traceback.vue
+37
-20
mindinsight/ui/src/views/train-manage/profiler.vue
mindinsight/ui/src/views/train-manage/profiler.vue
+2
-2
mindinsight/ui/src/views/train-manage/summary-manage.vue
mindinsight/ui/src/views/train-manage/summary-manage.vue
+1
-1
未找到文件。
mindinsight/ui/src/locales/zh-cn.json
浏览文件 @
521e2e67
...
...
@@ -75,7 +75,8 @@
"metricLabel"
:
"Metric"
,
"userDefinedLabel"
:
"User Defined"
,
"hyperLabel"
:
"Hyper"
,
"otherLabel"
:
"其他"
"otherLabel"
:
"其他"
,
"remarkTips"
:
"提示:终止服务后备注及tag信息将被清除"
},
"dataTraceback"
:
{
"details"
:
"详情"
,
...
...
mindinsight/ui/src/views/train-manage/data-traceback.vue
浏览文件 @
521e2e67
...
...
@@ -58,7 +58,7 @@ limitations under the License.
<button
type=
"text"
@
click=
"deselectAll"
class=
"deselect-all-button"
:class=
"[selectCheckAll?'checked-color':'button-text',
:class=
"[
!
selectCheckAll?'checked-color':'button-text',
basearr.length>checkOptions.length ? 'btn-disabled' : '']"
:disabled=
"basearr.length>checkOptions.length"
>
{{
$t
(
'
public.deselectAll
'
)
}}
...
...
@@ -150,9 +150,15 @@ limitations under the License.
</
template
>
</el-table-column>
<!-- remark column -->
<el-table-column
:label=
"$t('public.remark')"
fixed=
"right"
<el-table-column
fixed=
"right"
width=
"220"
>
<
template
slot=
"header"
>
<div>
<div
class=
"label-text"
>
{{
$t
(
'
public.remark
'
)
}}
</div>
<br>
<div
class=
"remark-tip"
>
{{
$t
(
'
modelTraceback.remarkTips
'
)
}}
</div>
</div>
</
template
>
<
template
slot-scope=
"scope"
>
<!-- The system determines whether to display the pen icon and
text box based on the values of editShow -->
...
...
@@ -660,7 +666,7 @@ export default {
editRemarks
(
row
)
{
row
.
editShow
=
false
;
row
.
isError
=
false
;
this
.
beforeEditValue
=
row
.
netwo
rk
;
this
.
beforeEditValue
=
row
.
rema
rk
;
},
/**
...
...
@@ -691,7 +697,7 @@ export default {
*/
cancelRemarksValue
(
row
)
{
row
.
editShow
=
true
;
row
.
netwo
rk
=
this
.
beforeEditValue
;
row
.
rema
rk
=
this
.
beforeEditValue
;
row
.
isError
=
false
;
},
...
...
@@ -1768,6 +1774,17 @@ export default {
};
</
script
>
<
style
lang=
"scss"
>
.label-text
{
line-height
:
20px
!
important
;
vertical-align
:
bottom
;
}
.remark-tip
{
line-height
:
14px
!
important
;
font-size
:
12px
;
white-space
:
pre-wrap
!
important
;
vertical-align
:
bottom
;
color
:
gray
;
}
.el-color-dropdown__main-wrapper
,
.el-color-dropdown__value
,
.el-color-alpha-slider
{
...
...
@@ -1846,7 +1863,7 @@ export default {
padding
:
4px
;
height
:
30px
;
width
:
30px
;
border
:
1px
solid
white
;
border
:
1px
solid
transparent
;
}
.icon-image-container
{
margin
:
16px
10px
18px
;
...
...
mindinsight/ui/src/views/train-manage/model-traceback.vue
浏览文件 @
521e2e67
...
...
@@ -215,9 +215,15 @@ limitations under the License.
</
template
>
</el-table-column>
<!-- remark column -->
<el-table-column
:label=
"$t('public.remark')"
fixed=
"right"
<el-table-column
fixed=
"right"
width=
"220"
>
<
template
slot=
"header"
>
<div>
<div
class=
"label-text"
>
{{
$t
(
'
public.remark
'
)
}}
</div>
<br>
<div
class=
"remark-tip"
>
{{
$t
(
'
modelTraceback.remarkTips
'
)
}}
</div>
</div>
</
template
>
<
template
slot-scope=
"scope"
>
<div
class=
"edit-text-container"
v-show=
"scope.row.editShow"
>
{{
scope
.
row
.
remark
}}
</div>
...
...
@@ -266,7 +272,7 @@ limitations under the License.
<div>
<div
class=
"icon-image-container"
>
<div
class=
"icon-image"
:class=
"[item.number==scope.row.tag&&scope.row.showIcon ? 'iconBorder':'']"
:class=
"[item.number==
=
scope.row.tag&&scope.row.showIcon ? 'iconBorder':'']"
v-for=
"item in imageList"
:key=
"item.number"
@
click=
"iconValueChange(scope.row,item.number,$event)"
>
...
...
@@ -491,7 +497,7 @@ export default {
*/
iconChangeSave
(
row
)
{
row
.
showIcon
=
false
;
if
(
row
.
tag
==
this
.
iconValue
||
this
.
iconValue
==
0
)
{
if
(
row
.
tag
==
=
this
.
iconValue
||
this
.
iconValue
=
==
0
)
{
return
;
}
row
.
tag
=
this
.
iconValue
;
...
...
@@ -556,7 +562,7 @@ export default {
allList
.
forEach
((
item
)
=>
{
Object
.
keys
(
this
.
table
.
columnOptions
).
filter
((
i
)
=>
{
const
labelValue
=
this
.
table
.
columnOptions
[
i
].
label
;
if
(
labelValue
==
item
)
{
if
(
labelValue
==
=
item
)
{
this
.
table
.
columnOptions
[
i
].
selected
=
true
;
}
});
...
...
@@ -591,7 +597,7 @@ export default {
allList
.
forEach
((
item
)
=>
{
Object
.
keys
(
this
.
table
.
columnOptions
).
filter
((
i
)
=>
{
const
labelValue
=
this
.
table
.
columnOptions
[
i
].
label
;
if
(
labelValue
==
item
)
{
if
(
labelValue
==
=
item
)
{
this
.
table
.
columnOptions
[
i
].
selected
=
true
;
}
});
...
...
@@ -847,14 +853,14 @@ export default {
const
columnArray
=
[];
const
hyperArray
=
[];
columnList
.
forEach
((
item
)
=>
{
if
(
item
.
indexOf
(
'
metric/
'
)
==
0
)
{
if
(
item
.
indexOf
(
'
metric/
'
)
==
=
0
)
{
metricArray
.
push
(
item
);
}
else
if
(
item
.
indexOf
(
'
user_defined/
'
)
==
0
)
{
}
else
if
(
item
.
indexOf
(
'
user_defined/
'
)
==
=
0
)
{
userDefinedArray
.
push
(
item
);
}
else
if
(
item
==
'
epoch
'
||
item
==
'
batch_size
'
||
item
==
'
learning_rate
'
item
==
=
'
epoch
'
||
item
==
=
'
batch_size
'
||
item
==
=
'
learning_rate
'
)
{
hyperArray
.
push
(
item
);
}
else
{
...
...
@@ -1065,12 +1071,12 @@ export default {
const
tempEchartData
=
this
.
setDataOfModel
(
res
.
data
.
object
);
this
.
hidenDirChecked
.
forEach
((
dir
)
=>
{
tempEchartData
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
summary_dir
==
dir
)
{
if
(
item
.
summary_dir
==
=
dir
)
{
tempEchartData
.
splice
(
index
,
1
);
}
});
});
if
(
tempEchartData
.
length
==
0
)
{
if
(
tempEchartData
.
length
==
=
0
)
{
this
.
showEchartPic
=
false
;
}
else
{
this
.
showEchartPic
=
true
;
...
...
@@ -1111,7 +1117,7 @@ export default {
if
(
this
.
hidenDirChecked
.
length
)
{
this
.
hidenDirChecked
.
forEach
((
dir
)
=>
{
tempList
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
summary_dir
==
dir
)
{
if
(
item
.
summary_dir
==
=
dir
)
{
tempList
.
splice
(
index
,
1
);
}
});
...
...
@@ -1249,7 +1255,7 @@ export default {
allList
.
forEach
((
item
)
=>
{
Object
.
keys
(
this
.
table
.
columnOptions
).
filter
((
i
)
=>
{
const
labelValue
=
this
.
table
.
columnOptions
[
i
].
label
;
if
(
labelValue
==
item
)
{
if
(
labelValue
==
=
item
)
{
this
.
table
.
columnOptions
[
i
].
selected
=
true
;
}
});
...
...
@@ -1278,7 +1284,7 @@ export default {
const
tempEchartData
=
this
.
echart
.
brushData
;
this
.
hidenDirChecked
.
forEach
((
dir
)
=>
{
tempEchartData
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
summary_dir
==
dir
)
{
if
(
item
.
summary_dir
==
=
dir
)
{
tempEchartData
.
splice
(
index
,
1
);
}
});
...
...
@@ -1286,7 +1292,7 @@ export default {
const
tableTemp
=
this
.
table
.
data
;
this
.
hidenDirChecked
.
forEach
((
dir
)
=>
{
tableTemp
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
summary_dir
==
dir
)
{
if
(
item
.
summary_dir
==
=
dir
)
{
tableTemp
.
splice
(
index
,
1
);
}
});
...
...
@@ -1413,7 +1419,7 @@ export default {
chartAxis
.
forEach
((
key
)
=>
{
if
(
(
i
[
key
]
||
i
[
key
]
==
0
)
&&
(
i
[
key
]
||
i
[
key
]
==
=
0
)
&&
this
.
keysOfMixed
&&
this
.
keysOfMixed
.
length
&&
this
.
keysOfMixed
.
includes
(
key
)
...
...
@@ -1562,7 +1568,7 @@ export default {
const
selectedAxisId
=
params
.
parallelAxisId
;
if
(
list
.
length
)
{
list
.
forEach
((
item
,
index
)
=>
{
if
(
item
==
selectedAxisId
)
{
if
(
item
==
=
selectedAxisId
)
{
list
.
splice
(
index
,
1
);
}
});
...
...
@@ -1823,6 +1829,17 @@ export default {
};
</
script
>
<
style
lang=
"scss"
>
.label-text
{
line-height
:
20px
!
important
;
vertical-align
:
bottom
;
}
.remark-tip
{
line-height
:
14px
!
important
;
font-size
:
12px
;
white-space
:
pre-wrap
!
important
;
vertical-align
:
bottom
;
color
:
gray
;
}
.el-color-dropdown__main-wrapper
,
.el-color-dropdown__value
,
.el-color-alpha-slider
{
...
...
@@ -1904,7 +1921,7 @@ export default {
padding
:
4px
;
height
:
30px
;
width
:
30px
;
border
:
1px
solid
white
;
border
:
1px
solid
transparent
;
}
.icon-image-container
{
margin
:
16px
10px
18px
;
...
...
mindinsight/ui/src/views/train-manage/profiler.vue
浏览文件 @
521e2e67
...
...
@@ -951,10 +951,10 @@ export default {
mounted
()
{
if
(
this
.
$route
.
query
&&
this
.
$route
.
query
.
profier_
dir
&&
this
.
$route
.
query
.
dir
&&
this
.
$route
.
query
.
id
)
{
this
.
profile_dir
=
this
.
$route
.
query
.
profier_
dir
;
this
.
profile_dir
=
this
.
$route
.
query
.
dir
;
this
.
train_id
=
this
.
$route
.
query
.
id
;
document
.
title
=
decodeURIComponent
(
this
.
train_id
)
+
...
...
mindinsight/ui/src/views/train-manage/summary-manage.vue
浏览文件 @
521e2e67
...
...
@@ -179,7 +179,7 @@ export default {
* @param {Object} row select row
*/
goToProfiler
(
row
)
{
const
profilerDir
=
encodeURIComponent
(
row
.
profier_dir
);
const
profilerDir
=
encodeURIComponent
(
row
.
profi
l
er_dir
);
const
trainId
=
encodeURIComponent
(
row
.
train_id
);
this
.
$router
.
push
({
path
:
'
/profiler
'
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录