Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
罗鑫霖
/
vion-tools
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit a9ac992e
authored
May 23, 2024
by
Tianqing Liu
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat: 增加取消选中功能
1 parent
cfe6a49b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
src/views/SnapshotCluster/ClusterResult/ClusterResult.vue
src/views/SnapshotCluster/ClusterResult/ClusterResult.vue
View file @
a9ac992
...
@@ -747,7 +747,13 @@ export default {
...
@@ -747,7 +747,13 @@ export default {
console
.
log
(
'handleClick'
,
data
,
event
)
console
.
log
(
'handleClick'
,
data
,
event
)
// 多选。只有设置为多选状态的组,才可以选中
// 多选。只有设置为多选状态的组,才可以选中
if
(
isMultipleOperation
.
value
)
{
if
(
isMultipleOperation
.
value
)
{
selectedPersonList
.
value
.
push
(
data
)
// 如果已选中,则取消。若未选中,则增加
const
isExist
=
selectedPersonList
.
value
.
find
(
item
=>
item
.
id
===
data
.
id
)
if
(
isExist
)
{
selectedPersonList
.
value
=
selectedPersonList
.
value
.
filter
(
item
=>
item
.
id
!==
data
.
id
)
}
else
{
selectedPersonList
.
value
.
push
(
data
)
}
}
else
{
}
else
{
currentItemId
.
value
=
data
.
id
currentItemId
.
value
=
data
.
id
currobj
.
value
=
data
;
currobj
.
value
=
data
;
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment