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 130e58c9
authored
Sep 02, 2024
by
李乾广
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改bug,增加收银事件类型
1 parent
b08ea82a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
54 additions
and
17 deletions
src/views/FeatureComparisonVerification/FeatureComparisonVerification.vue
src/views/SnapshotCluster/ClusterResult/ClusterResult.vue
src/views/SnapshotCluster/SnapshotRecord/SnapshotRecord.vue
src/views/FeatureComparisonVerification/FeatureComparisonVerification.vue
View file @
130e58c
...
...
@@ -536,7 +536,10 @@
pic_type
:
rawData
.
picType
,
countdate
:
formatDate
(
rawData
.
date
),
pic_id
:
boxObj
.
value
.
id
,
person_unid
:
boxObj
.
value
.
person_unid
,
ip
:
window
.
_baseImgUrl
,
startTime
:
formatDate
(
rawData
.
date
)
+
' 00:00:00'
,
endTime
:
formatDate
(
rawData
.
date
)
+
' 23:59:59'
,
customScore
:
threshold
.
value
?
threshold
.
value
:
75
}
comparisonList
.
value
=
[]
...
...
@@ -544,15 +547,21 @@
isLoadingComparison
.
value
=
false
if
(
isArray
(
r
.
data
))
{
if
(
r
.
data
.
length
>
0
){
r
.
data
.
forEach
((
item
)
=>
{
if
(
item
.
features_url
)
{
item
.
features_url
=
window
.
_baseImgUrl
+
item
.
features_url
}
if
(
item
.
picture_url
)
{
item
.
picture_url
=
window
.
_baseImgUrl
+
item
.
picture_url
}
})
comparisonList
.
value
=
r
.
data
let
personList
=
[]
r
.
data
.
forEach
((
item
)
=>
{
if
(
item
.
personList
&&
isArray
(
item
.
personList
))
{
item
.
personList
.
forEach
((
one
)
=>
{
if
(
one
.
features_url
)
{
one
.
features_url
=
window
.
_baseImgUrl
+
one
.
features_url
}
if
(
one
.
picture_url
)
{
one
.
picture_url
=
window
.
_baseImgUrl
+
one
.
picture_url
}
})
personList
=
personList
.
concat
(
item
.
personList
)
}
})
comparisonList
.
value
=
personList
}
}
}
...
...
@@ -666,9 +675,11 @@
type
:
'success'
}
)
comparisonList
.
value
.
forEach
(
item
=>
{
comparisonList
.
value
.
forEach
(
(
item
,
index
)
=>
{
if
(
item
.
unid
==
data
.
unid
){
item
.
person_unid
=
boxObj
.
value
.
person_unid
featureList
.
value
.
push
(
item
)
comparisonList
.
value
.
splice
(
index
,
1
)
// item.person_unid = boxObj.value.person_unid
}
})
}
...
...
src/views/SnapshotCluster/ClusterResult/ClusterResult.vue
View file @
130e58c
...
...
@@ -54,7 +54,7 @@
</a-select>
</a-form-item>
<a-form-item
label=
"
方向
:"
style=
"padding: 5px 0"
>
<a-form-item
label=
"
事件类型
:"
style=
"padding: 5px 0"
>
<a-select
v-model:value=
"queryForm.direction"
mode=
"multiple"
:maxTagCount=
"1"
...
...
@@ -63,6 +63,7 @@
<a-select-option
:value=
"-1"
>
出
</a-select-option>
<a-select-option
:value=
"0"
>
横穿
</a-select-option>
<a-select-option
:value=
"2"
>
过店
</a-select-option>
<a-select-option
:value=
"9"
>
收银
</a-select-option>
</a-select>
</a-form-item>
<a-form-item
label=
"抓拍类型:"
style=
"padding: 5px 0"
>
...
...
@@ -184,9 +185,9 @@
class=
"single-image"
>
</el-image>
<div>
时间:
{{
item
.
counttime
}}
</div>
<div>
人员类型:
{{
item
.
person_type
==
1
?
'店员'
:(
item
.
person_type
==
0
?
'顾客'
:
'未知'
)
}}
(
{{
item
.
childAdult
==
1
?
'成人'
:(
item
.
childAdult
==
0
?
'儿童'
:
'未知'
)
}}
)
</div>
<div>
人员类型:
{{
personTypeStr
(
item
.
person_type
)
}}
(
{{
item
.
childAdult
==
1
?
'成人'
:(
item
.
childAdult
==
0
?
'儿童'
:
'未知'
)
}}
)
</div>
<div>
性别:
{{
formatGender
(
item
.
gender
)
}}
(
{{
item
.
age
}}
)
</div>
<div
class=
"direction"
:class=
"'direction'+item.direction"
>
方向
:
{{
formatDirection
(
item
.
direction
)
}}
</div>
<div
class=
"direction"
:class=
"'direction'+item.direction"
>
事件类型
:
{{
formatDirection
(
item
.
direction
)
}}
</div>
<div>
地点:
{{
item
.
gate_name
}}
</div>
</div>
</el-col>
...
...
@@ -559,6 +560,9 @@ export default {
}
)
}
const
personTypeStr
=
function
(
val
){
return
(
personTypeList
.
value
.
filter
(
v
=>
v
.
value
==
val
)[
0
]
||
{
label
:
'--'
}).
label
}
const
formatGender
=
function
(
number
){
switch
(
number
)
{
...
...
@@ -592,6 +596,14 @@ export default {
{
return
'出'
}
case
9
:
{
return
'收银'
}
case
2
:
{
return
'过店'
}
case
0
:
{
return
'横穿'
...
...
@@ -1028,6 +1040,7 @@ export default {
clerkComparativeFun
,
personnelComparativeFun
,
singleComparativeFun
,
personTypeStr
,
formatGender
,
downloadTrajectoryFile
,
clickSearch
,
...
...
src/views/SnapshotCluster/SnapshotRecord/SnapshotRecord.vue
View file @
130e58c
...
...
@@ -52,7 +52,7 @@
>
</a-select>
</a-form-item>
<a-form-item
label=
"
方向
:"
style=
"padding: 5px 0"
>
<a-form-item
label=
"
事件类型
:"
style=
"padding: 5px 0"
>
<a-select
v-model:value=
"queryForm.direction"
mode=
"multiple"
:maxTagCount=
"1"
...
...
@@ -61,6 +61,7 @@
<a-select-option
:value=
"-1"
>
出
</a-select-option>
<a-select-option
:value=
"0"
>
横穿
</a-select-option>
<a-select-option
:value=
"2"
>
过店
</a-select-option>
<a-select-option
:value=
"9"
>
收银
</a-select-option>
</a-select>
</a-form-item>
<a-form-item
label=
"抓拍类型:"
style=
"padding: 5px 0"
>
...
...
@@ -143,7 +144,7 @@
>
</el-image>
<div>
时间:
{{
item
.
counttime
}}
</div>
<div>
人员类型:
{{
item
.
person_type
==
1
?
'店员'
:(
item
.
person_type
==
0
?
'顾客'
:
'未知'
)
}}
(
{{
item
.
childAdult
==
1
?
'成人'
:(
item
.
childAdult
==
0
?
'儿童'
:
'未知'
)
}}
)
</div>
<div>
人员类型:
{{
personTypeStr
(
item
.
person_type
)
}}
(
{{
item
.
childAdult
==
1
?
'成人'
:(
item
.
childAdult
==
0
?
'儿童'
:
'未知'
)
}}
)
</div>
<div>
<span>
性别:
{{
formatGender
(
item
.
gender
)
}}
(
{{
item
.
age
}}
)
</span>
<a-popover
v-if=
"item.personLabel"
trigger=
"click"
>
...
...
@@ -178,7 +179,7 @@
<span
style=
"margin-right: 10px;"
class=
"downBtn downBtn1"
>
标签
</span>
</a-popover>
</div>
<div
class=
"direction"
:class=
"'direction'+item.direction"
>
方向
:{{ formatDirection(item.direction) }}
</div>
<div
class=
"direction"
:class=
"'direction'+item.direction"
>
事件类型
:{{ formatDirection(item.direction) }}
</div>
<div>
地点:{{ item.gate_name }}
</div>
</div>
</el-col>
...
...
@@ -524,6 +525,9 @@ export default {
}
)
}
const
personTypeStr
=
function
(
val
){
return
(
personTypeList
.
value
.
filter
(
v
=>
v
.
value
==
val
)[
0
]
||
{
label
:
'--'
}).
label
}
const
formatGender
=
function
(
number
){
switch
(
number
)
{
...
...
@@ -557,6 +561,14 @@ export default {
{
return
'出'
}
case
9
:
{
return
'收银'
}
case
2
:
{
return
'过店'
}
case
0
:
{
return
'横穿'
...
...
@@ -973,6 +985,7 @@ export default {
handleClick
,
comparativeFun
,
batchesResultFun
,
personTypeStr
,
formatGender
,
clickSearch
,
// ref
...
...
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