Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MindSpore
mindinsight
提交
a0b6053d
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看板
提交
a0b6053d
编写于
5月 29, 2020
作者:
M
mindspore-ci-bot
提交者:
Gitee
5月 29, 2020
浏览文件
操作
浏览文件
下载
差异文件
!221 Fix the bug of selecting train jobs in comparison dashboard
Merge pull request !221 from ougongchang/r0.3
上级
64154380
ccbc4576
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
11 addition
and
7 deletion
+11
-7
mindinsight/ui/src/components/multiselectGroup.vue
mindinsight/ui/src/components/multiselectGroup.vue
+11
-7
未找到文件。
mindinsight/ui/src/components/multiselectGroup.vue
浏览文件 @
a0b6053d
...
@@ -162,6 +162,7 @@ export default {
...
@@ -162,6 +162,7 @@ export default {
listSelectAll
()
{
listSelectAll
()
{
this
.
operateSelectAll
=
!
this
.
operateSelectAll
;
this
.
operateSelectAll
=
!
this
.
operateSelectAll
;
this
.
multiSelectedItemNames
=
{};
this
.
multiSelectedItemNames
=
{};
this
.
selectedNumber
=
0
;
// Setting the status of list items
// Setting the status of list items
if
(
this
.
operateSelectAll
)
{
if
(
this
.
operateSelectAll
)
{
if
(
this
.
isLimit
)
{
if
(
this
.
isLimit
)
{
...
@@ -171,7 +172,7 @@ export default {
...
@@ -171,7 +172,7 @@ export default {
break
;
break
;
}
}
const
listItem
=
this
.
checkListArr
[
i
];
const
listItem
=
this
.
checkListArr
[
i
];
if
(
listItem
.
show
&&
!
listItem
.
checked
)
{
if
(
(
listItem
.
show
&&
!
listItem
.
checked
)
||
listItem
.
checked
)
{
listItem
.
checked
=
true
;
listItem
.
checked
=
true
;
this
.
multiSelectedItemNames
[
listItem
.
label
]
=
true
;
this
.
multiSelectedItemNames
[
listItem
.
label
]
=
true
;
this
.
selectedNumber
++
;
this
.
selectedNumber
++
;
...
@@ -216,14 +217,17 @@ export default {
...
@@ -216,14 +217,17 @@ export default {
}
}
this
.
valiableSearchInput
=
this
.
searchInput
;
this
.
valiableSearchInput
=
this
.
searchInput
;
this
.
multiSelectedItemNames
=
{};
this
.
multiSelectedItemNames
=
{};
this
.
selectedNumber
=
0
;
let
itemSelectAll
=
true
;
let
itemSelectAll
=
true
;
// Filter the tags that do not meet the conditions in the operation bar and hide them
// Filter the tags that do not meet the conditions in the operation bar and hide them
this
.
checkListArr
.
forEach
((
listItem
)
=>
{
this
.
checkListArr
.
forEach
((
listItem
)
=>
{
if
(
reg
.
test
(
listItem
.
label
))
{
listItem
.
show
=
true
;
if
(
listItem
.
checked
)
{
if
(
listItem
.
checked
)
{
this
.
multiSelectedItemNames
[
listItem
.
label
]
=
true
;
this
.
multiSelectedItemNames
[
listItem
.
label
]
=
true
;
}
else
{
this
.
selectedNumber
++
;
}
if
(
reg
.
test
(
listItem
.
label
))
{
listItem
.
show
=
true
;
if
(
!
listItem
.
checked
)
{
itemSelectAll
=
false
;
itemSelectAll
=
false
;
}
}
}
else
{
}
else
{
...
@@ -232,7 +236,7 @@ export default {
...
@@ -232,7 +236,7 @@ export default {
});
});
// Update the selected status of the Select All button
// Update the selected status of the Select All button
if
(
this
.
isLimit
&&
!
itemSelectAll
)
{
if
(
this
.
isLimit
&&
!
itemSelectAll
)
{
itemSelectAll
=
this
.
selectedNumber
>=
this
.
limitNum
;
itemSelectAll
=
this
.
selectedNumber
>=
this
.
limitNum
||
this
.
selectedNumber
>=
this
.
checkListArr
.
length
;
}
}
this
.
operateSelectAll
=
itemSelectAll
;
this
.
operateSelectAll
=
itemSelectAll
;
this
.
$emit
(
'
selectedChange
'
,
this
.
multiSelectedItemNames
);
this
.
$emit
(
'
selectedChange
'
,
this
.
multiSelectedItemNames
);
...
@@ -271,7 +275,7 @@ export default {
...
@@ -271,7 +275,7 @@ export default {
}
}
});
});
if
(
this
.
isLimit
&&
!
itemSelectAll
)
{
if
(
this
.
isLimit
&&
!
itemSelectAll
)
{
itemSelectAll
=
this
.
selectedNumber
>=
this
.
limitNum
;
itemSelectAll
=
this
.
selectedNumber
>=
this
.
limitNum
||
this
.
selectedNumber
>=
this
.
checkListArr
.
length
;
}
}
this
.
operateSelectAll
=
itemSelectAll
;
this
.
operateSelectAll
=
itemSelectAll
;
// Return a dictionary containing selected items.
// Return a dictionary containing selected items.
...
@@ -323,7 +327,7 @@ export default {
...
@@ -323,7 +327,7 @@ export default {
listItem
.
show
=
false
;
listItem
.
show
=
false
;
}
}
}
}
if
(
this
.
selectedNumber
>=
this
.
limitNum
)
{
if
(
this
.
selectedNumber
>=
this
.
limitNum
||
this
.
selectedNumber
>=
this
.
checkListArr
.
length
)
{
itemSelectAll
=
true
;
itemSelectAll
=
true
;
}
else
{
}
else
{
itemSelectAll
=
false
;
itemSelectAll
=
false
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录