Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MindSpore
mindinsight
提交
710ee695
M
mindinsight
项目概览
MindSpore
/
mindinsight
通知
8
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看板
提交
710ee695
编写于
8月 07, 2020
作者:
M
mindspore-ci-bot
提交者:
Gitee
8月 07, 2020
浏览文件
操作
浏览文件
下载
差异文件
!508 Summay homepage add page initialization data loading excessive page protection
Merge pull request !508 from 秦君艳/summary
上级
0e3621c6
4ffd5edd
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
51 addition
and
9 deletion
+51
-9
mindinsight/ui/src/views/train-manage/summary-manage.vue
mindinsight/ui/src/views/train-manage/summary-manage.vue
+51
-9
未找到文件。
mindinsight/ui/src/views/train-manage/summary-manage.vue
浏览文件 @
710ee695
...
...
@@ -16,7 +16,16 @@ limitations under the License.
<
template
>
<div
id=
"cl-summary-manage"
>
<div
class=
"cl-summary-manage-container"
>
<div
v-if=
"loading"
class=
"no-data-page"
>
<div
class=
"no-data-img"
>
<img
:src=
"require('@/assets/images/nodata.png')"
alt=
""
/>
<p
class=
"no-data-text"
>
{{
$t
(
"
public.dataLoading
"
)
}}
</p>
</div>
</div>
<div
class=
"cl-summary-manage-container"
v-if=
"!loading"
>
<div
class=
"cl-title"
>
<div
class=
"cl-title-left"
>
<span
class=
"summary-title"
>
{{
$t
(
'
summaryManage.summaryList
'
)
}}
</span>
...
...
@@ -58,15 +67,21 @@ limitations under the License.
<!--operate -->
<el-table-column
prop=
"operate"
:label=
"$t('summaryManage.operation')"
width=
"2
2
0"
>
width=
"2
4
0"
>
<template
slot-scope=
"scope"
>
<el-button
type=
"text"
@
click.stop=
"goToTrainDashboard(scope.row)"
>
<el-button
type=
"text"
@
click.stop=
"goToTrainDashboard(scope.row)"
>
{{
$t
(
'
summaryManage.viewDashboard
'
)
}}
</el-button>
<el-button
type=
"text"
class=
"operate-btn"
v-if=
"scope.row.viewProfiler"
@
click.stop=
"goToProfiler(scope.row)"
>
<el-button
type=
"text"
class=
"operate-btn"
v-if=
"scope.row.viewProfiler"
@
click.stop=
"goToProfiler(scope.row)"
>
{{
$t
(
'
summaryManage.viewProfiler
'
)
}}
</el-button>
<el-button
type=
"text"
class=
"operate-btn"
disabled
:title=
"$t('summaryManage.disableProfilerTip')"
v-if=
"!scope.row.viewProfiler"
>
{{
$t
(
'
summaryManage.viewProfiler
'
)
}}
</el-button>
<el-button
type=
"text"
class=
"operate-btn"
disabled
:title=
"$t('summaryManage.disableProfilerTip')"
v-if=
"!scope.row.viewProfiler"
>
{{
$t
(
'
summaryManage.viewProfiler
'
)
}}
</el-button>
</
template
>
</el-table-column>
</el-table>
...
...
@@ -93,6 +108,7 @@ import RequestService from '../../services/request-service';
export
default
{
data
()
{
return
{
loading
:
true
,
currentFolder
:
'
--
'
,
summaryList
:
[],
pagination
:
{
...
...
@@ -130,6 +146,7 @@ export default {
RequestService
.
querySummaryList
(
params
,
false
)
.
then
(
(
res
)
=>
{
this
.
loading
=
false
;
if
(
res
&&
res
.
data
&&
res
.
data
.
train_jobs
)
{
const
summaryList
=
JSON
.
parse
(
JSON
.
stringify
(
res
.
data
.
train_jobs
),
...
...
@@ -149,9 +166,13 @@ export default {
this
.
summaryList
=
[];
}
},
(
error
)
=>
{},
(
error
)
=>
{
this
.
loading
=
false
;
},
)
.
catch
((
e
)
=>
{});
.
catch
((
e
)
=>
{
this
.
loading
=
false
;
});
},
currentPageChange
(
currentPage
)
{
this
.
pagination
.
currentPage
=
currentPage
;
...
...
@@ -202,6 +223,27 @@ export default {
height
:
100%
;
width
:
100%
;
background-color
:
#fff
;
.no-data-page
{
width
:
100%
;
height
:
100%
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
.no-data-img
{
background
:
#fff
;
text-align
:
center
;
height
:
200px
;
width
:
310px
;
margin
:
auto
;
img
{
max-width
:
100%
;
}
p
{
font-size
:
16px
;
padding-top
:
10px
;
}
}
}
.cl-summary-manage-container
{
height
:
100%
;
padding
:
14px
32px
32px
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录