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 065de870
authored
Dec 24, 2025
by
陈岩
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat: 增加搜索项定向问题
1 parent
11d5e477
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
15 deletions
src/views/SnapshotCluster/ClusterResult/ClusterResult.vue
src/views/SnapshotCluster/ClusterResult/PersonGroupDialog.vue
src/views/SnapshotCluster/ClusterResult/components/SnapShotRecordSearchDialog.vue
src/views/SnapshotCluster/ClusterResult/ClusterResult.vue
View file @
065de87
...
...
@@ -234,7 +234,7 @@
<div
v-loading=
"isLoading"
>
<div
class=
"resultContent"
:style=
"
{'height':contentHeight+'px'}">
<template
v-for=
"
person
in dataList"
>
<template
v-for=
"
(person,personIndex)
in dataList"
>
<div
class=
"classBox"
:class=
"person.expand?'expand':''"
>
<div
:class=
"person.checked?'checked':''"
>
<div
class=
"boxInfo"
>
...
...
@@ -268,7 +268,7 @@
class=
"downBtn"
>
轨迹
</span>
<span
class=
"downBtn"
v-if=
"item.direction === 1 || item.direction === -1"
@
click=
"handleShotSearch(person.perrsonList,item,rowIndex*8+index)"
>
搜索抓拍
</span>
<span
class=
"downBtn"
v-if=
"item.direction === 1 || item.direction === -1"
@
click=
"handleShotSearch(person.perrsonList,item,rowIndex*8+index
,personIndex
)"
>
搜索抓拍
</span>
<span
@
click=
"downloadFile(item.features_url)"
class=
"downBtn downBtn1"
>
...
...
@@ -334,7 +334,7 @@
<AddPersonnelPool
ref=
'personnelPoolRef'
:data-params=
"currentSearchCondition"
@
refresh=
"handleRefresh"
/>
<PersonGroupDialog
ref=
'personGroupDialogRef'
:query-form=
"queryForm"
@
refresh=
"handleRefresh"
/>
<AddEditSnapshotClusterDialog
ref=
"addEditSnapshotClusterRef"
/>
<SnapShotRecordSearchDialog
ref=
"snapShotRecordSearchDialogRef"
@
refresh=
"handleRefresh
"
/>
<SnapShotRecordSearchDialog
ref=
"snapShotRecordSearchDialogRef"
@
added=
"handleAdded
"
/>
</template>
...
...
@@ -377,9 +377,6 @@ export default {
DetailDialogComparison
,
singleImgComparisonDialog
,
SnapShotRecordSearchDialog
,
},
setup
()
{
...
...
@@ -488,7 +485,7 @@ export default {
)
const
snapShotRecordSearchDialogRef
=
ref
()
const
handleShotSearch
=
(
dataList
,
item
,
dataIndex
)
=>
{
const
handleShotSearch
=
(
dataList
,
item
,
dataIndex
,
personIndex
)
=>
{
// 方向是进 找从dataIndex到dataList.length - 1中第一个方向是出的
const
gateId
=
item
.
gate_id
...
...
@@ -529,7 +526,10 @@ export default {
...
dataList
[
dataIndex
]
}
}
snapShotRecordSearchDialogRef
.
value
?.
initDialog
(
params
,
{
personTypeList
:
personTypeList
.
value
})
snapShotRecordSearchDialogRef
.
value
?.
initDialog
(
params
,
{
personTypeList
:
personTypeList
.
value
},{
index
:
dataIndex
,
personIndex
})
}
const
searchCondition
=
ref
({})
...
...
@@ -772,6 +772,11 @@ export default {
pageNum
.
value
=
1
confirmSearch
()
}
const
handleAdded
=
(
item
,
indexMap
)
=>
{
const
{
index
,
personIndex
:
pIndex
}
=
indexMap
;
// 在dataList[pIndex]的perrsonList的index位置插入一条数据
(
dataList
.
value
[
pIndex
].
perrsonList
??
=
[]).
splice
(
index
,
0
,
item
);
}
const
handleRefresh
=
function
()
{
currentItemId
.
value
=
''
isMultipleOperation
.
value
=
false
...
...
@@ -1555,6 +1560,7 @@ export default {
clickSearch
,
updatePersonInfoByCluster
,
handleRefresh
,
handleAdded
,
handleEditorRefresh
,
currentSearchCondition
,
// ref
...
...
src/views/SnapshotCluster/ClusterResult/PersonGroupDialog.vue
View file @
065de87
...
...
@@ -253,7 +253,7 @@ export default {
}
personList
.
value
=
personList
.
value
.
concat
(
targetDataList
)
selectedImgList
.
value
=
[]
emit
(
'refresh'
)
clickSearch
()
}
else
{
ElMessage
({
...
...
src/views/SnapshotCluster/ClusterResult/components/SnapShotRecordSearchDialog.vue
View file @
065de87
...
...
@@ -76,7 +76,7 @@ const pagedTableDataList = computed(() => {
const
pageNum
=
ref
(
1
);
const
pageSize
=
ref
(
8
);
const
total
=
ref
(
0
);
const
emit
=
defineEmits
([
'refresh'
])
const
emit
=
defineEmits
([
'refresh'
,
'added'
])
const
childAdultOptions
=
ref
([
{
value
:
0
,
label
:
"儿童"
},
...
...
@@ -119,6 +119,10 @@ const handleAddToCluster = (item) =>{
// countdate只要年月日
countdate
:
item
.
counttime
.
split
(
' '
)[
0
],
}
// 出
if
(
item
.
direction
===
-
1
){
indexMap
.
value
.
index
+=
1
}
clusterResultApi
.
updateRecognition
(
params
).
then
(
(
r
)
=>
{
if
(
r
.
msg_code
==
200
){
...
...
@@ -127,7 +131,7 @@ const handleAddToCluster = (item) =>{
type
:
'success'
})
// 刷新列表
emit
(
'
refresh'
)
emit
(
'
added'
,
item
,
indexMap
.
value
)
visible
.
value
=
false
}
else
{
ElMessage
({
...
...
@@ -180,13 +184,17 @@ const onPageSizeChange = function (current, size) {
pageSize
.
value
=
size
;
confirmSearch
();
};
const
indexMap
=
ref
({
index
:
''
,
personIndex
:
''
})
// 初始化弹窗
const
initDialog
=
(
form
,
selectOptionsMap
)
=>
{
const
initDialog
=
(
form
,
selectOptionsMap
,
indexM
)
=>
{
dataList
.
value
=
[]
submitForm
.
value
=
cloneDeep
(
form
);
personTypeList
.
value
=
selectOptionsMap
.
personTypeList
||
[]
;
personTypeList
.
value
=
cloneDeep
(
selectOptionsMap
.
personTypeList
||
[])
;
visible
.
value
=
true
;
indexMap
.
value
=
indexM
confirmSearch
();
};
const
isLoading
=
ref
(
false
);
...
...
@@ -238,7 +246,6 @@ const confirmSearch = function () {
(
item
)
=>
!
submitForm
.
value
.
others
.
ids
.
includes
(
item
.
id
)
)
||
[];
total
.
value
=
r
.
data
.
pageNum
;
document
.
getElementsByClassName
(
"resultContent"
)[
0
].
scrollTop
=
0
;
});
};
...
...
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