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 fc468a13
authored
Apr 11, 2024
by
Tianqing Liu
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat: 优化多选删除功能
1 parent
fa0f2c19
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
4 deletions
src/views/SnapshotCluster/ClusterResult/ClusterResult.vue
src/views/SnapshotCluster/ClusterResult/ClusterResultApi.js
src/views/SnapshotCluster/ClusterResult/ClusterResult.vue
View file @
fc468a1
...
...
@@ -151,7 +151,7 @@
<el-col
:span=
"3"
v-for=
"item in row"
>
<div
style=
"margin: 0 5px"
:class=
"
(currentItemId==item.id || isSelectedPerson(item.id))?'actived':''
"
:class=
"
[(currentItemId==item.id)?'actived':'', isSelectedPerson(item.id)?'actived-red':'']
"
@
click=
"handleClick(item, $event)"
>
<div
style=
""
>
...
...
@@ -586,7 +586,7 @@ export default {
unid
:
unidList
.
join
(
','
),
personUnid
:
''
,
}
clusterResultApi
.
update
Pers
on
(
params
).
then
(
clusterResultApi
.
update
Recogniti
on
(
params
).
then
(
(
r
)
=>
{
if
(
r
.
msg_code
==
200
){
ElMessage
({
...
...
@@ -596,6 +596,11 @@ export default {
selectedPersonList
.
value
=
[]
// 刷新列表
clickSearch
()
}
else
{
ElMessage
({
message
:
`剔除失败`
,
type
:
'error'
})
}
}
)
...
...
@@ -630,10 +635,13 @@ export default {
}
const
handleClick
=
function
(
data
,
event
){
console
.
log
(
'handleClick'
,
event
)
currentItemId
.
value
=
data
.
id
currobj
.
value
=
data
;
if
(
event
.
metaKey
)
{
selectedPersonList
.
value
.
push
(
data
)
}
else
{
currentItemId
.
value
=
data
.
id
currobj
.
value
=
data
;
// 清空多选
selectedPersonList
.
value
=
[]
}
}
const
checkChange
=
function
(
data
){
...
...
@@ -823,6 +831,9 @@ export default {
.actived
{
border
:
3px
solid
#1890ff
;
}
.actived-red
{
border
:
3px
solid
red
;
}
.checkBox
{
margin-left
:
10px
;
}
...
...
src/views/SnapshotCluster/ClusterResult/ClusterResultApi.js
View file @
fc468a1
...
...
@@ -100,6 +100,16 @@ class ClusterResultApi {
}
)
}
// 剔除
updateRecognition
(
data
)
{
return
axiosInstance
.
request
(
{
method
:
'POST'
,
url
:
`/faceRecognitions/updateRecognition`
,
data
:
data
}
)
}
}
const
clusterResultApi
=
new
ClusterResultApi
()
...
...
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