Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
wmsofts
mindinsight
提交
1bbae386
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 搜索 >>
提交
1bbae386
编写于
6月 04, 2020
作者:
Q
qin_jun_yan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
After the data traceability switches the page number, the sorting parameter is incorrect.
上级
2998df5d
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
65 addition
and
48 deletion
+65
-48
mindinsight/ui/src/assets/images/icon-down.svg
mindinsight/ui/src/assets/images/icon-down.svg
+10
-0
mindinsight/ui/src/views/train-manage/data-traceback.vue
mindinsight/ui/src/views/train-manage/data-traceback.vue
+30
-24
mindinsight/ui/src/views/train-manage/model-traceback.vue
mindinsight/ui/src/views/train-manage/model-traceback.vue
+25
-24
未找到文件。
mindinsight/ui/src/assets/images/icon-down.svg
0 → 100644
浏览文件 @
1bbae386
<?xml version="1.0" encoding="UTF-8"?>
<svg
width=
"20px"
height=
"20px"
viewBox=
"0 0 20 20"
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>
10备份
</title>
<desc>
Created with Sketch.
</desc>
<g
id=
"10备份"
stroke=
"none"
stroke-width=
"1"
fill=
"none"
fill-rule=
"evenodd"
>
<path
d=
"M12.6700332,9.66417786 L14,10.9951335 L10.0080998,15 L6.0161996,11.0051332 L7.34616635,9.67417753 L10.0030999,12.3330889 L12.6700332,9.66417786 Z M12.6508337,6 L13.9818005,7.32995567 L9.99290018,11.3248225 L9.99090023,11.3238225 L9.98990025,11.3248225 L6,7.32995567 L7.32996675,6 L9.99090023,8.66191127 L12.6508337,6 Z"
id=
"合并形状备份-3"
fill=
"#00A5A7"
></path>
<rect
id=
"矩形"
stroke=
"#CCCCCC"
x=
"0.5"
y=
"0.5"
width=
"19"
height=
"19"
rx=
"2"
></rect>
</g>
</svg>
\ No newline at end of file
mindinsight/ui/src/views/train-manage/data-traceback.vue
浏览文件 @
1bbae386
...
...
@@ -195,14 +195,12 @@ limitations under the License.
<
template
slot-scope=
"scope"
>
<div
@
click=
"showAllIcon(scope.row,scope)"
class=
"tag-icon-container"
>
<i
v-if=
"!scope.row.tag"
class=
"el-icon-arrow-down"
></i>
<img
:id=
"scope.row.summary_dir"
v-if=
"scope.row.tag"
<img
v-if=
"scope.row.tag"
:class=
"'img' + scope.$index"
:src=
"require('@/assets/images/icon' + scope.row.tag + '.svg')"
>
<img
v-else
:
id=
"scope.row.summary_dir
"
:src=
"
''
"
>
:
class=
"'img' + scope.$index
"
:src=
"
require('@/assets/images/icon-down.svg')
"
>
</div>
</
template
>
</el-table-column>
...
...
@@ -289,14 +287,14 @@ limitations under the License.
<el-button
type=
"primary"
size=
"mini"
class=
"custom-btn"
@
click=
"iconChangeSave(tagScope
.row
)"
@
click=
"iconChangeSave(tagScope)"
plain
>
{{ $t('public.sure')}}
</el-button>
<el-button
type=
"primary"
size=
"mini"
class=
"custom-btn"
@
click=
"clearIcon(tagScope
.row
)"
@
click=
"clearIcon(tagScope)"
plain
>
{{ $t('public.clear')}}
</el-button>
...
...
@@ -587,20 +585,21 @@ export default {
/**
* Save the modification of the icon
* @param {Object}
row
* @param {Object}
scope
*/
iconChangeSave
(
row
)
{
iconChangeSave
(
scope
)
{
this
.
tagDialogShow
=
false
;
if
(
row
.
tag
===
this
.
iconValue
||
this
.
iconValue
===
0
)
{
if
(
scope
.
row
.
tag
===
this
.
iconValue
||
this
.
iconValue
===
0
)
{
return
;
}
this
.
tagScope
.
row
.
tag
=
this
.
iconValue
;
const
id
=
row
.
summary_dir
;
const
img
=
document
.
getElementById
(
id
);
img
.
src
=
require
(
'
@/assets/images/icon
'
+
this
.
iconValue
+
'
.svg
'
);
const
imgDom
=
document
.
querySelectorAll
(
'
.img
'
+
scope
.
$index
);
imgDom
.
forEach
((
item
)
=>
{
item
.
src
=
require
(
'
@/assets/images/icon
'
+
this
.
iconValue
+
'
.svg
'
);
});
this
.
$forceUpdate
();
const
params
=
{
train_id
:
row
.
summary_dir
,
train_id
:
scope
.
row
.
summary_dir
,
body
:
{
tag
:
this
.
tagScope
.
row
.
tag
,
},
...
...
@@ -610,9 +609,9 @@ export default {
/**
* clear icon
* @param {Object}
row
* @param {Object}
scope
*/
clearIcon
(
row
)
{
clearIcon
(
scope
)
{
const
classWrap
=
event
.
path
.
find
((
item
)
=>
{
return
item
.
className
===
'
icon-dialog
'
;
});
...
...
@@ -623,10 +622,12 @@ export default {
this
.
tagDialogShow
=
false
;
this
.
iconValue
=
0
;
this
.
tagScope
.
row
.
tag
=
0
;
const
img
=
document
.
getElementById
(
row
.
summary_dir
);
img
.
src
=
''
;
const
imgDom
=
document
.
querySelectorAll
(
'
.img
'
+
scope
.
$index
);
imgDom
.
forEach
((
item
)
=>
{
item
.
src
=
require
(
'
@/assets/images/icon-down.svg
'
);
});
const
params
=
{
train_id
:
row
.
summary_dir
,
train_id
:
scope
.
row
.
summary_dir
,
body
:
{
tag
:
0
,
},
...
...
@@ -1588,6 +1589,12 @@ export default {
this
.
selectArrayValue
=
[];
this
.
basearr
=
[];
this
.
pagination
.
currentPage
=
1
;
this
.
summaryDirList
=
this
.
$store
.
state
.
summaryDirList
;
if
(
this
.
summaryDirList
)
{
this
.
tableFilter
.
summary_dir
=
{
in
:
this
.
summaryDirList
};
}
else
{
this
.
tableFilter
.
summary_dir
=
undefined
;
}
params
.
body
=
Object
.
assign
({},
tempParam
,
this
.
tableFilter
);
this
.
queryLineagesData
(
params
);
},
...
...
@@ -1992,10 +1999,9 @@ export default {
margin
:
16px
10px
18px
;
}
.tag-icon-container
{
width
:
2
2
px
;
height
:
2
2
px
;
width
:
2
1
px
;
height
:
2
1
px
;
border
:
1px
solid
#e6e6e6
;
background-color
:
white
;
cursor
:
pointer
;
border-radius
:
2px
;
}
...
...
mindinsight/ui/src/views/train-manage/model-traceback.vue
浏览文件 @
1bbae386
...
...
@@ -254,14 +254,12 @@ limitations under the License.
<
template
slot-scope=
"scope"
>
<div
@
click=
"showAllIcon(scope.row,scope)"
class=
"tag-icon-container"
>
<i
v-if=
"!scope.row.tag"
class=
"el-icon-arrow-down"
></i>
<img
:id=
"scope.row.summary_dir"
v-if=
"scope.row.tag"
<img
v-if=
"scope.row.tag"
:class=
"'img' + scope.$index"
:src=
"require('@/assets/images/icon' + scope.row.tag + '.svg')"
>
<img
:id=
"scope.row.summary_dir"
v-else
:src=
"
''
"
>
<img
v-else
:class=
"'img' + scope.$index"
:src=
"
require('@/assets/images/icon-down.svg')
"
>
</div>
</
template
>
</el-table-column>
...
...
@@ -318,14 +316,14 @@ limitations under the License.
<el-button
type=
"primary"
size=
"mini"
class=
"custom-btn"
@
click=
"iconChangeSave(tagScope
.row
)"
@
click=
"iconChangeSave(tagScope)"
plain
>
{{$t('public.sure')}}
</el-button>
<el-button
type=
"primary"
size=
"mini"
class=
"custom-btn"
@
click=
"clearIcon(tagScope
.row
)"
@
click=
"clearIcon(tagScope)"
plain
>
{{$t('public.clear')}}
</el-button>
...
...
@@ -526,19 +524,21 @@ export default {
},
/**
* Save the modification of the icon.
* @param {Object}
row
* @param {Object}
scope
*/
iconChangeSave
(
row
)
{
iconChangeSave
(
scope
)
{
this
.
tagDialogShow
=
false
;
if
(
row
.
tag
===
this
.
iconValue
||
this
.
iconValue
===
0
)
{
if
(
scope
.
row
.
tag
===
this
.
iconValue
||
this
.
iconValue
===
0
)
{
return
;
}
this
.
tagScope
.
row
.
tag
=
this
.
iconValue
;
const
id
=
row
.
summary_dir
;
const
img
=
document
.
getElementById
(
id
);
img
.
src
=
require
(
'
@/assets/images/icon
'
+
this
.
iconValue
+
'
.svg
'
);
const
imgDom
=
document
.
querySelectorAll
(
'
.img
'
+
scope
.
$index
);
imgDom
.
forEach
((
item
)
=>
{
item
.
src
=
require
(
'
@/assets/images/icon
'
+
this
.
iconValue
+
'
.svg
'
);
});
this
.
$forceUpdate
();
const
params
=
{
train_id
:
row
.
summary_dir
,
train_id
:
scope
.
row
.
summary_dir
,
body
:
{
tag
:
this
.
tagScope
.
row
.
tag
,
},
...
...
@@ -548,9 +548,9 @@ export default {
/**
* clear icon
* @param {Object}
row
* @param {Object}
scope
*/
clearIcon
(
row
)
{
clearIcon
(
scope
)
{
const
classWrap
=
event
.
path
.
find
((
item
)
=>
{
return
item
.
className
===
'
icon-dialog
'
;
});
...
...
@@ -561,10 +561,12 @@ export default {
this
.
tagDialogShow
=
false
;
this
.
iconValue
=
0
;
this
.
tagScope
.
row
.
tag
=
0
;
const
img
=
document
.
getElementById
(
row
.
summary_dir
);
img
.
src
=
''
;
const
imgDom
=
document
.
querySelectorAll
(
'
.img
'
+
scope
.
$index
);
imgDom
.
forEach
((
item
)
=>
{
item
.
src
=
require
(
'
@/assets/images/icon-down.svg
'
);
});
const
params
=
{
train_id
:
row
.
summary_dir
,
train_id
:
scope
.
row
.
summary_dir
,
body
:
{
tag
:
0
,
},
...
...
@@ -2058,10 +2060,9 @@ export default {
width
:
140px
;
}
.tag-icon-container
{
width
:
2
2
px
;
height
:
2
2
px
;
width
:
2
1
px
;
height
:
2
1
px
;
border
:
1px
solid
#e6e6e6
;
background-color
:
white
;
cursor
:
pointer
;
border-radius
:
2px
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录