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 0f13d816
authored
Aug 08, 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
4 changed files
with
424 additions
and
33 deletions
src/views/FeatureComparisonVerification/FeatureComparisonVerification.vue
src/views/FeatureComparisonVerification/api.js
src/views/SnapshotCluster/ClusterResult/ClusterResult.vue
src/views/SnapshotCluster/SnapshotRecord/SnapshotRecord.vue
src/views/FeatureComparisonVerification/FeatureComparisonVerification.vue
View file @
0f13d81
...
@@ -536,7 +536,10 @@
...
@@ -536,7 +536,10 @@
pic_type
:
rawData
.
picType
,
pic_type
:
rawData
.
picType
,
countdate
:
formatDate
(
rawData
.
date
),
countdate
:
formatDate
(
rawData
.
date
),
pic_id
:
boxObj
.
value
.
id
,
pic_id
:
boxObj
.
value
.
id
,
person_unid
:
boxObj
.
value
.
person_unid
,
ip
:
window
.
_baseImgUrl
,
ip
:
window
.
_baseImgUrl
,
startTime
:
formatDate
(
rawData
.
date
)
+
' 00:00:00'
,
endTime
:
formatDate
(
rawData
.
date
)
+
' 23:59:59'
,
customScore
:
threshold
.
value
?
threshold
.
value
:
75
customScore
:
threshold
.
value
?
threshold
.
value
:
75
}
}
comparisonList
.
value
=
[]
comparisonList
.
value
=
[]
...
@@ -544,15 +547,21 @@
...
@@ -544,15 +547,21 @@
isLoadingComparison
.
value
=
false
isLoadingComparison
.
value
=
false
if
(
isArray
(
r
.
data
))
{
if
(
isArray
(
r
.
data
))
{
if
(
r
.
data
.
length
>
0
){
if
(
r
.
data
.
length
>
0
){
r
.
data
.
forEach
((
item
)
=>
{
let
personList
=
[]
if
(
item
.
features_url
)
{
r
.
data
.
forEach
((
item
)
=>
{
item
.
features_url
=
window
.
_baseImgUrl
+
item
.
features_url
if
(
item
.
personList
&&
isArray
(
item
.
personList
))
{
}
item
.
personList
.
forEach
((
one
)
=>
{
if
(
item
.
picture_url
)
{
if
(
one
.
features_url
)
{
item
.
picture_url
=
window
.
_baseImgUrl
+
item
.
picture_url
one
.
features_url
=
window
.
_baseImgUrl
+
one
.
features_url
}
}
})
if
(
one
.
picture_url
)
{
comparisonList
.
value
=
r
.
data
one
.
picture_url
=
window
.
_baseImgUrl
+
one
.
picture_url
}
})
personList
=
personList
.
concat
(
item
.
personList
)
}
})
comparisonList
.
value
=
personList
}
}
}
}
}
}
...
@@ -652,7 +661,6 @@
...
@@ -652,7 +661,6 @@
}
}
const
addImage
=
function
(
data
,
event
){
const
addImage
=
function
(
data
,
event
){
event
.
stopPropagation
()
event
.
stopPropagation
()
featureApi
.
updateImage
({
featureApi
.
updateImage
({
'personUnid'
:
boxObj
.
value
.
person_unid
,
'personUnid'
:
boxObj
.
value
.
person_unid
,
'id'
:
data
.
id
,
'id'
:
data
.
id
,
...
@@ -666,9 +674,11 @@
...
@@ -666,9 +674,11 @@
type
:
'success'
type
:
'success'
}
}
)
)
comparisonList
.
value
.
forEach
(
item
=>
{
comparisonList
.
value
.
forEach
(
(
item
,
index
)
=>
{
if
(
item
.
unid
==
data
.
unid
){
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/FeatureComparisonVerification/api.js
View file @
0f13d81
...
@@ -41,7 +41,7 @@ class FeatureResultApi {
...
@@ -41,7 +41,7 @@ class FeatureResultApi {
return
axiosInstance
.
request
(
return
axiosInstance
.
request
(
{
{
method
:
'PUT'
,
method
:
'PUT'
,
url
:
`/faceRecognitions`
,
url
:
`/faceRecognitions
/updatePersonUnid
`
,
data
:
filterEmptyValueInObject
(
data
:
filterEmptyValueInObject
(
data
data
)
)
...
...
src/views/SnapshotCluster/ClusterResult/ClusterResult.vue
View file @
0f13d81
...
@@ -90,6 +90,9 @@
...
@@ -90,6 +90,9 @@
<a-select-option
:value=
"-1"
>
未知
</a-select-option>
<a-select-option
:value=
"-1"
>
未知
</a-select-option>
</a-select>
</a-select>
</a-form-item>
</a-form-item>
<a-form-item
label=
"人ID:"
style=
"padding: 5px 0"
>
<a-input
v-model:value=
"queryForm.personUnid"
style=
"width: 240px"
/>
</a-form-item>
<a-form-item
label=
"选择日期:"
style=
"padding: 5px 0"
>
<a-form-item
label=
"选择日期:"
style=
"padding: 5px 0"
>
<a-date-picker
v-model:value=
"queryForm.date"
:format=
"'YYYY-MM-DD'"
:allowClear=
"false"
style=
"width: 240px"
/>
<a-date-picker
v-model:value=
"queryForm.date"
:format=
"'YYYY-MM-DD'"
:allowClear=
"false"
style=
"width: 240px"
/>
</a-form-item>
</a-form-item>
...
@@ -184,7 +187,7 @@
...
@@ -184,7 +187,7 @@
class=
"single-image"
>
class=
"single-image"
>
</el-image>
</el-image>
<div>
时间:
{{
item
.
counttime
}}
</div>
<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>
性别:
{{
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>
地点:
{{
item
.
gate_name
}}
</div>
...
@@ -289,6 +292,7 @@ export default {
...
@@ -289,6 +292,7 @@ export default {
startTime
:
'00:00:00'
,
startTime
:
'00:00:00'
,
endTime
:
'23:59:59'
,
endTime
:
'23:59:59'
,
minPic
:
0
,
minPic
:
0
,
personUnid
:
''
,
maxPic
:
100
,
maxPic
:
100
,
childAdult
:[],
childAdult
:[],
}
}
...
@@ -501,6 +505,7 @@ export default {
...
@@ -501,6 +505,7 @@ export default {
startTime
:
formatDate
(
rawData
.
date
)
+
' '
+
rawData
.
startTime
,
startTime
:
formatDate
(
rawData
.
date
)
+
' '
+
rawData
.
startTime
,
endTime
:
formatDate
(
rawData
.
date
)
+
' '
+
rawData
.
endTime
,
endTime
:
formatDate
(
rawData
.
date
)
+
' '
+
rawData
.
endTime
,
minPic
:
rawData
.
minPic
,
minPic
:
rawData
.
minPic
,
personUnid
:
rawData
.
personUnid
,
maxPic
:
rawData
.
maxPic
,
maxPic
:
rawData
.
maxPic
,
page
:
pageNum
.
value
-
1
,
page
:
pageNum
.
value
-
1
,
pageSize
:
pageSize
.
value
,
pageSize
:
pageSize
.
value
,
...
@@ -518,6 +523,7 @@ export default {
...
@@ -518,6 +523,7 @@ export default {
picType
:
rawData
.
picType
,
picType
:
rawData
.
picType
,
personType
:
rawData
.
personType
,
personType
:
rawData
.
personType
,
childAdult
:
rawData
.
childAdult
,
childAdult
:
rawData
.
childAdult
,
personUnid
:
rawData
.
personUnid
,
date
:
rawData
.
date
,
date
:
rawData
.
date
,
minPic
:
rawData
.
minPic
,
minPic
:
rawData
.
minPic
,
maxPic
:
rawData
.
maxPic
,
maxPic
:
rawData
.
maxPic
,
...
@@ -559,6 +565,9 @@ export default {
...
@@ -559,6 +565,9 @@ export default {
}
}
)
)
}
}
const
personTypeStr
=
function
(
val
){
return
(
personTypeList
.
value
.
filter
(
v
=>
v
.
value
==
val
)[
0
]
||
{
label
:
'--'
}).
label
}
const
formatGender
=
function
(
number
){
const
formatGender
=
function
(
number
){
switch
(
number
)
switch
(
number
)
{
{
...
@@ -980,7 +989,7 @@ export default {
...
@@ -980,7 +989,7 @@ export default {
const
contentHeight
=
ref
(
0
)
const
contentHeight
=
ref
(
0
)
const
__main
=
function
()
{
const
__main
=
function
()
{
getAccountList
()
getAccountList
()
contentHeight
.
value
=
window
.
innerHeight
-
28
0
contentHeight
.
value
=
window
.
innerHeight
-
32
0
}
}
__main
()
__main
()
...
@@ -1028,6 +1037,7 @@ export default {
...
@@ -1028,6 +1037,7 @@ export default {
clerkComparativeFun
,
clerkComparativeFun
,
personnelComparativeFun
,
personnelComparativeFun
,
singleComparativeFun
,
singleComparativeFun
,
personTypeStr
,
formatGender
,
formatGender
,
downloadTrajectoryFile
,
downloadTrajectoryFile
,
clickSearch
,
clickSearch
,
...
...
src/views/SnapshotCluster/SnapshotRecord/SnapshotRecord.vue
View file @
0f13d81
...
@@ -143,35 +143,35 @@
...
@@ -143,35 +143,35 @@
>
>
</el-image>
</el-image>
<div>
时间:
{{
item
.
counttime
}}
</div>
<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>
<div>
<span>
性别:
{{
formatGender
(
item
.
gender
)
}}
(
{{
item
.
age
}}
)
</span>
<span>
性别:
{{
formatGender
(
item
.
gender
)
}}
(
{{
item
.
age
}}
)
</span>
<a-popover
v-if=
"item.personLabel"
trigger=
"click"
>
<a-popover
v-if=
"item.personLabel"
trigger=
"click"
>
<template
#
content
>
<template
#
content
>
<div
class=
"person-tag-one"
v-if=
"item.personLabel.hairStyle!==null&&item.personLabel.hairStyle!==undefined"
><span>
发型:
</span><span>
{{
item
.
personLabel
.
hairStyle
}}
</span></div>
<div
class=
"person-tag-one"
v-if=
"item.personLabel.hairStyle!==null&&item.personLabel.hairStyle!==undefined"
><span>
发型:
</span><span>
{{
hairStyleStr
(
item
.
personLabel
.
hairStyle
)
}}
</span></div>
<div
class=
"person-tag-one"
v-if=
"item.personLabel.hairColor!==null&&item.personLabel.hairColor!==undefined"
><span>
发色:
</span><span>
{{
item
.
personLabel
.
hairColor
}}
</span></div>
<div
class=
"person-tag-one"
v-if=
"item.personLabel.hairColor!==null&&item.personLabel.hairColor!==undefined"
><span>
发色:
</span><span>
{{
jacketColorStr
(
item
.
personLabel
.
hairColor
)
}}
</span></div>
<div
class=
"person-tag-one"
v-if=
"item.personLabel.hat!==null&&item.personLabel.hat!==undefined"
><span>
帽子:
</span><span>
{{
item
.
personLabel
.
hat
}}
</span></div>
<div
class=
"person-tag-one"
v-if=
"item.personLabel.hat!==null&&item.personLabel.hat!==undefined"
><span>
帽子:
</span><span>
{{
hatStr
(
item
.
personLabel
.
hat
)
}}
</span></div>
<div
class=
"person-tag-one"
v-if=
"item.personLabel.hatColor!==null&&item.personLabel.hatColor!==undefined"
><span>
帽子颜色:
</span><span>
{{
item
.
personLabel
.
hatColor
}}
</span></div>
<div
class=
"person-tag-one"
v-if=
"item.personLabel.hatColor!==null&&item.personLabel.hatColor!==undefined"
><span>
帽子颜色:
</span><span>
{{
jacketColorStr
(
item
.
personLabel
.
hatColor
)
}}
</span></div>
<div
class=
"person-tag-one"
v-if=
"item.personLabel.glasses!==null&&item.personLabel.glasses!==undefined"
><span>
眼镜:
</span><span>
{{
item
.
personLabel
.
glasses
}}
</span></div>
<div
class=
"person-tag-one"
v-if=
"item.personLabel.glasses!==null&&item.personLabel.glasses!==undefined"
><span>
眼镜:
</span><span>
{{
glassesStr
(
item
.
personLabel
.
glasses
)
}}
</span></div>
<div
class=
"person-tag-one"
v-if=
"item.personLabel.mask!==null&&item.personLabel.mask!==undefined"
><span>
口罩:
</span><span>
{{
item
.
personLabel
.
mask
}}
</span></div>
<div
class=
"person-tag-one"
v-if=
"item.personLabel.mask!==null&&item.personLabel.mask!==undefined"
><span>
口罩:
</span><span>
{{
maskStr
(
item
.
personLabel
.
mask
)
}}
</span></div>
<div
class=
"person-tag-one"
v-if=
"item.personLabel.earring!==null&&item.personLabel.earring!==undefined"
><span>
耳饰:
</span><span>
{{
item
.
personLabel
.
earring
}}
</span></div>
<div
class=
"person-tag-one"
v-if=
"item.personLabel.earring!==null&&item.personLabel.earring!==undefined"
><span>
耳饰:
</span><span>
{{
earringStr
(
item
.
personLabel
.
earring
)
}}
</span></div>
<div
class=
"person-tag-one"
v-if=
"item.personLabel.jacketType!==null&&item.personLabel.jacketType!==undefined"
><span>
上装种类:
</span><span>
{{
jacketTypeStr
(
item
.
personLabel
.
jacketType
)
}}
</span></div>
<div
class=
"person-tag-one"
v-if=
"item.personLabel.jacketType!==null&&item.personLabel.jacketType!==undefined"
><span>
上装种类:
</span><span>
{{
jacketTypeStr
(
item
.
personLabel
.
jacketType
)
}}
</span></div>
<div
class=
"person-tag-one"
v-if=
"item.personLabel.jacketColor!==null&&item.personLabel.jacketColor!==undefined"
><span>
上装颜色:
</span><span>
{{
jacketColorStr
(
item
.
personLabel
.
jacketColor
)
}}
</span></div>
<div
class=
"person-tag-one"
v-if=
"item.personLabel.jacketColor!==null&&item.personLabel.jacketColor!==undefined"
><span>
上装颜色:
</span><span>
{{
jacketColorStr
(
item
.
personLabel
.
jacketColor
)
}}
</span></div>
<div
class=
"person-tag-one"
v-if=
"item.personLabel.bottomsType!==null&&item.personLabel.bottomsType!==undefined"
><span>
下装种类:
</span><span>
{{
bottomsTypeStr
(
item
.
personLabel
.
bottomsType
)
}}
</span></div>
<div
class=
"person-tag-one"
v-if=
"item.personLabel.bottomsType!==null&&item.personLabel.bottomsType!==undefined"
><span>
下装种类:
</span><span>
{{
bottomsTypeStr
(
item
.
personLabel
.
bottomsType
)
}}
</span></div>
<div
class=
"person-tag-one"
v-if=
"item.personLabel.bottomsColor!==null&&item.personLabel.bottomsColor!==undefined"
><span>
下装颜色:
</span><span>
{{
jacketColorStr
(
item
.
personLabel
.
bottomsColor
)
}}
</span></div>
<div
class=
"person-tag-one"
v-if=
"item.personLabel.bottomsColor!==null&&item.personLabel.bottomsColor!==undefined"
><span>
下装颜色:
</span><span>
{{
jacketColorStr
(
item
.
personLabel
.
bottomsColor
)
}}
</span></div>
<div
class=
"person-tag-one"
v-if=
"item.personLabel.suitType!==null&&item.personLabel.suitType!==undefined"
><span>
套装种类:
</span><span>
{{
suitTypeStr
(
item
.
personLabel
.
suitType
)
}}
</span></div>
<div
class=
"person-tag-one"
v-if=
"item.personLabel.suitType!==null&&item.personLabel.suitType!==undefined"
><span>
套装种类:
</span><span>
{{
suitTypeStr
(
item
.
personLabel
.
suitType
)
}}
</span></div>
<div
class=
"person-tag-one"
v-if=
"item.personLabel.suitColor!==null&&item.personLabel.suitColor!==undefined"
><span>
套装颜色:
</span><span>
{{
jacketColorStr
(
item
.
personLabel
.
suitColor
)
}}
</span></div>
<div
class=
"person-tag-one"
v-if=
"item.personLabel.suitColor!==null&&item.personLabel.suitColor!==undefined"
><span>
套装颜色:
</span><span>
{{
jacketColorStr
(
item
.
personLabel
.
suitColor
)
}}
</span></div>
<div
class=
"person-tag-one"
v-if=
"item.personLabel.clothingBrand!==null&&item.personLabel.clothingBrand!==undefined"
><span>
文字与LOGO:
</span><span>
{{
item
.
personLabel
.
clothingBrand
}}
</span></div>
<div
class=
"person-tag-one"
v-if=
"item.personLabel.clothingBrand!==null&&item.personLabel.clothingBrand!==undefined"
><span>
文字与LOGO:
</span><span>
{{
clothingBrandStr
(
item
.
personLabel
.
clothingBrand
)
}}
</span></div>
<div
class=
"person-tag-one"
v-if=
"item.personLabel.necklace!==null&&item.personLabel.necklace!==undefined"
><span>
佩戴项链:
</span><span>
{{
item
.
personLabel
.
necklace
}}
</span></div>
<div
class=
"person-tag-one"
v-if=
"item.personLabel.necklace!==null&&item.personLabel.necklace!==undefined"
><span>
佩戴项链:
</span><span>
{{
necklaceStr
(
item
.
personLabel
.
necklace
)
}}
</span></div>
<div
class=
"person-tag-one"
v-if=
"item.personLabel.watch!==null&&item.personLabel.watch!==undefined"
><span>
佩戴手表:
</span><span>
{{
item
.
personLabel
.
watch
}}
</span></div>
<div
class=
"person-tag-one"
v-if=
"item.personLabel.watch!==null&&item.personLabel.watch!==undefined"
><span>
佩戴手表:
</span><span>
{{
watchStr
(
item
.
personLabel
.
watch
)
}}
</span></div>
<div
class=
"person-tag-one"
v-if=
"item.personLabel.bracelet!==null&&item.personLabel.bracelet!==undefined"
><span>
佩戴手链:
</span><span>
{{
item
.
personLabel
.
bracelet
}}
</span></div>
<div
class=
"person-tag-one"
v-if=
"item.personLabel.bracelet!==null&&item.personLabel.bracelet!==undefined"
><span>
佩戴手链:
</span><span>
{{
braceletStr
(
item
.
personLabel
.
bracelet
)
}}
</span></div>
<div
class=
"person-tag-one"
v-if=
"item.personLabel.phone!==null&&item.personLabel.phone!==undefined"
><span>
手持手机:
</span><span>
{{
item
.
personLabel
.
phone
}}
</span></div>
<div
class=
"person-tag-one"
v-if=
"item.personLabel.phone!==null&&item.personLabel.phone!==undefined"
><span>
手持手机:
</span><span>
{{
phoneStr
(
item
.
personLabel
.
phone
)
}}
</span></div>
<div
class=
"person-tag-one"
v-if=
"item.personLabel.shoeType!==null&&item.personLabel.shoeType!==undefined"
><span>
鞋子类型:
</span><span>
{{
shoeTypeStr
(
item
.
personLabel
.
shoeType
)
}}
</span></div>
<div
class=
"person-tag-one"
v-if=
"item.personLabel.shoeColor!==null&&item.personLabel.shoeColor!==undefined"
><span>
鞋子颜色:
</span><span>
{{
jacketColorStr
(
item
.
personLabel
.
shoeColor
)
}}
</span></div>
<div
class=
"person-tag-one"
v-if=
"item.personLabel.rucksackType!==null&&item.personLabel.rucksackType!==undefined"
><span>
背包类型:
</span><span>
{{
rucksackTypeStr
(
item
.
personLabel
.
rucksackType
)
}}
</span></div>
<div
class=
"person-tag-one"
v-if=
"item.personLabel.rucksackType!==null&&item.personLabel.rucksackType!==undefined"
><span>
背包类型:
</span><span>
{{
rucksackTypeStr
(
item
.
personLabel
.
rucksackType
)
}}
</span></div>
<div
class=
"person-tag-one"
v-if=
"item.personLabel.rucksackColor!==null&&item.personLabel.rucksackColor!==undefined"
><span>
背包颜色:
</span><span>
{{
jacketColorStr
(
item
.
personLabel
.
rucksackColor
)
}}
</span></div>
<div
class=
"person-tag-one"
v-if=
"item.personLabel.rucksackColor!==null&&item.personLabel.rucksackColor!==undefined"
><span>
背包颜色:
</span><span>
{{
jacketColorStr
(
item
.
personLabel
.
rucksackColor
)
}}
</span></div>
<div
class=
"person-tag-one"
v-if=
"item.personLabel.handbagType!==null&&item.personLabel.handbagType!==undefined"
><span>
拎包类型:
</span><span>
{{
handbagTypeStr
(
item
.
personLabel
.
handbagType
)
}}
</span></div>
<div
class=
"person-tag-one"
v-if=
"item.personLabel.handbagType!==null&&item.personLabel.handbagType!==undefined"
><span>
拎包类型:
</span><span>
{{
handbagTypeStr
(
item
.
personLabel
.
handbagType
)
}}
</span></div>
<div
class=
"person-tag-one"
v-if=
"item.personLabel.handbagColor!==null&&item.personLabel.handbagColor!==undefined"
><span>
拎包颜色:
</span><span>
{{
jacketColorStr
(
item
.
personLabel
.
handbagColor
)
}}
</span></div>
<div
class=
"person-tag-one"
v-if=
"item.personLabel.handbagColor!==null&&item.personLabel.handbagColor!==undefined"
><span>
拎包颜色:
</span><span>
{{
jacketColorStr
(
item
.
personLabel
.
handbagColor
)
}}
</span></div>
<div
class=
"person-tag-one"
v-if=
"item.personLabel.shoeType!==null&&item.personLabel.shoeType!==undefined"
><span>
鞋子类型:
</span><span>
{{
item
.
personLabel
.
shoeType
}}
</span></div>
<div
class=
"person-tag-one"
v-if=
"item.personLabel.shoeColor!==null&&item.personLabel.shoeColor!==undefined"
><span>
鞋子颜色:
</span><span>
{{
item
.
personLabel
.
shoeColor
}}
</span></div>
<div
class=
"person-tag-one"
v-if=
"item.personLabel.shoppingBagType!==null&&item.personLabel.shoppingBagType!==undefined"
><span>
提袋类型:
</span><span>
{{
shoppingBagTypeStr
(
item
.
personLabel
.
shoppingBagType
)
}}
</span></div>
<div
class=
"person-tag-one"
v-if=
"item.personLabel.shoppingBagType!==null&&item.personLabel.shoppingBagType!==undefined"
><span>
提袋类型:
</span><span>
{{
shoppingBagTypeStr
(
item
.
personLabel
.
shoppingBagType
)
}}
</span></div>
<div
class=
"person-tag-one"
v-if=
"item.personLabel.shoppingBagColor!==null&&item.personLabel.shoppingBagColor!==undefined"
><span>
提袋颜色:
</span><span>
{{
jacketColorStr
(
item
.
personLabel
.
shoppingBagColor
)
}}
</span></div>
<div
class=
"person-tag-one"
v-if=
"item.personLabel.shoppingBagColor!==null&&item.personLabel.shoppingBagColor!==undefined"
><span>
提袋颜色:
</span><span>
{{
jacketColorStr
(
item
.
personLabel
.
shoppingBagColor
)
}}
</span></div>
</
template
>
</
template
>
...
@@ -524,6 +524,9 @@ export default {
...
@@ -524,6 +524,9 @@ export default {
}
}
)
)
}
}
const
personTypeStr
=
function
(
val
){
return
(
personTypeList
.
value
.
filter
(
v
=>
v
.
value
==
val
)[
0
]
||
{
label
:
'--'
}).
label
}
const
formatGender
=
function
(
number
){
const
formatGender
=
function
(
number
){
switch
(
number
)
switch
(
number
)
{
{
...
@@ -570,6 +573,293 @@ export default {
...
@@ -570,6 +573,293 @@ export default {
}
}
//标签
//标签
const
hairStyleStr
=
function
(
number
){
switch
(
number
)
{
case
0
:
{
return
'看不清'
}
case
1
:
{
return
'无头发'
}
case
2
:
{
return
'短发'
}
case
3
:
{
return
'长发'
}
default
:
{
break
}
}
}
const
hatStr
=
function
(
number
){
switch
(
number
)
{
case
0
:
{
return
'看不清'
}
case
1
:
{
return
'无帽子'
}
case
2
:
{
return
'有帽子'
}
default
:
{
break
}
}
}
const
glassesStr
=
function
(
number
){
switch
(
number
)
{
case
0
:
{
return
'看不清'
}
case
1
:
{
return
'无眼镜'
}
case
2
:
{
return
'有眼镜'
}
default
:
{
break
}
}
}
const
maskStr
=
function
(
number
){
switch
(
number
)
{
case
0
:
{
return
'看不清'
}
case
1
:
{
return
'不戴口罩'
}
case
2
:
{
return
'戴口罩'
}
default
:
{
break
}
}
}
const
earringStr
=
function
(
number
){
switch
(
number
)
{
case
0
:
{
return
'看不清'
}
case
1
:
{
return
'无耳饰'
}
case
2
:
{
return
'有耳饰'
}
default
:
{
break
}
}
}
const
necklaceStr
=
function
(
number
){
switch
(
number
)
{
case
0
:
{
return
'看不清'
}
case
1
:
{
return
'无项链'
}
case
2
:
{
return
'有项链'
}
default
:
{
break
}
}
}
const
clothingBrandStr
=
function
(
number
){
switch
(
number
)
{
case
0
:
{
return
'无Logo'
}
case
1
:
{
return
'耐克'
}
case
2
:
{
return
'阿迪达斯'
}
case
3
:
{
return
'GAP'
}
case
4
:
{
return
'Champion'
}
case
5
:
{
return
'安踏'
}
case
6
:
{
return
'GUCCI'
}
case
7
:
{
return
'Under Armour'
}
case
8
:
{
return
'THE North Face'
}
case
9
:
{
return
'New Balance'
}
case
10
:
{
return
'Puma'
}
case
11
:
{
return
'李宁'
}
case
12
:
{
return
'361'
}
case
13
:
{
return
'鸿星尔克'
}
case
14
:
{
return
'特步'
}
case
15
:
{
return
'Armani'
}
case
16
:
{
return
'斯凯奇'
}
case
17
:
{
return
'李维斯'
}
case
18
:
{
return
'Kappa'
}
case
19
:
{
return
'哥伦比亚'
}
case
20
:
{
return
'始祖鸟'
}
default
:
{
break
}
}
}
const
watchStr
=
function
(
number
){
switch
(
number
)
{
case
0
:
{
return
'看不清'
}
case
1
:
{
return
'无手表'
}
case
2
:
{
return
'有手表'
}
default
:
{
break
}
}
}
const
braceletStr
=
function
(
number
){
switch
(
number
)
{
case
0
:
{
return
'看不清'
}
case
1
:
{
return
'无手链'
}
case
2
:
{
return
'有手链'
}
default
:
{
break
}
}
}
const
phoneStr
=
function
(
number
){
switch
(
number
)
{
case
0
:
{
return
'看不清'
}
case
1
:
{
return
'无手持手机'
}
case
2
:
{
return
'手持手机'
}
default
:
{
break
}
}
}
const
jacketTypeStr
=
function
(
number
){
const
jacketTypeStr
=
function
(
number
){
switch
(
number
)
switch
(
number
)
{
{
...
@@ -631,9 +921,13 @@ export default {
...
@@ -631,9 +921,13 @@ export default {
const
jacketColorStr
=
function
(
number
){
const
jacketColorStr
=
function
(
number
){
switch
(
number
)
switch
(
number
)
{
{
case
-
1
:
{
return
'无'
}
case
0
:
case
0
:
{
{
return
'
其他
'
return
'
看不清
'
}
}
case
1
:
case
1
:
{
{
...
@@ -649,11 +943,11 @@ export default {
...
@@ -649,11 +943,11 @@ export default {
}
}
case
4
:
case
4
:
{
{
return
'
红
'
return
'
粉
'
}
}
case
5
:
case
5
:
{
{
return
'
黄
'
return
'
米
'
}
}
case
6
:
case
6
:
{
{
...
@@ -675,6 +969,18 @@ export default {
...
@@ -675,6 +969,18 @@ export default {
{
{
return
'拼色'
return
'拼色'
}
}
case
11
:
{
return
'红'
}
case
12
:
{
return
'黄橙'
}
case
13
:
{
return
'咖棕'
}
default
:
default
:
{
{
...
@@ -730,6 +1036,14 @@ export default {
...
@@ -730,6 +1036,14 @@ export default {
{
{
return
'其他套装'
return
'其他套装'
}
}
case
4
:
{
return
'快递'
}
case
5
:
{
return
'外卖'
}
default
:
default
:
{
{
break
break
...
@@ -786,6 +1100,51 @@ export default {
...
@@ -786,6 +1100,51 @@ export default {
}
}
}
}
}
}
const
shoeTypeStr
=
function
(
number
){
switch
(
number
)
{
case
0
:
{
return
'看不清'
}
case
1
:
{
return
'皮鞋'
}
case
2
:
{
return
'运动休闲鞋'
}
case
3
:
{
return
'拖凉鞋'
}
case
4
:
{
return
'短靴'
}
case
5
:
{
return
'长靴'
}
case
6
:
{
return
'板鞋'
}
case
7
:
{
return
'帆布鞋'
}
case
8
:
{
return
'小白鞋'
}
default
:
{
break
}
}
}
const
shoppingBagTypeStr
=
function
(
number
){
const
shoppingBagTypeStr
=
function
(
number
){
switch
(
number
)
switch
(
number
)
{
{
...
@@ -973,6 +1332,7 @@ export default {
...
@@ -973,6 +1332,7 @@ export default {
handleClick
,
handleClick
,
comparativeFun
,
comparativeFun
,
batchesResultFun
,
batchesResultFun
,
personTypeStr
,
formatGender
,
formatGender
,
clickSearch
,
clickSearch
,
// ref
// ref
...
@@ -981,12 +1341,23 @@ export default {
...
@@ -981,12 +1341,23 @@ export default {
imgModelRef
,
imgModelRef
,
singleComparativeFun
,
singleComparativeFun
,
singleImgComparisonRef
,
singleImgComparisonRef
,
hairStyleStr
,
hatStr
,
glassesStr
,
maskStr
,
earringStr
,
necklaceStr
,
clothingBrandStr
,
watchStr
,
braceletStr
,
phoneStr
,
jacketTypeStr
,
jacketTypeStr
,
jacketColorStr
,
jacketColorStr
,
bottomsTypeStr
,
bottomsTypeStr
,
suitTypeStr
,
suitTypeStr
,
rucksackTypeStr
,
rucksackTypeStr
,
handbagTypeStr
,
handbagTypeStr
,
shoeTypeStr
,
shoppingBagTypeStr
shoppingBagTypeStr
}
}
}
}
...
...
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