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 fc28a04c
authored
Mar 28, 2022
by
李君
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
特征比对增加下载文件以及增加人员id显示
1 parent
9351d021
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
174 additions
and
34 deletions
src/views/ComparisonCapturedPictures/ComparisonCapturedPictures.vue
src/views/ComparisonCapturedPictures/DetailDialog.vue
src/views/ComparisonCapturedPictures/DetailDialogComparison.vue
src/views/FeatureComparisonVerification/FeatureComparisonVerification.vue
src/views/ComparisonCapturedPictures/ComparisonCapturedPictures.vue
View file @
fc28a04
...
...
@@ -91,13 +91,14 @@
<a-button
type=
"primary"
@
click=
"shoperFeatureComparison"
>
店员特征对比
</a-button>
</div>
<div
class=
'comparsionBox'
v-loading=
'isLoadingComparison'
>
<p
v-if=
'boxListLeft.length>0'
>
共
{{
boxListLeft
.
length
}}
张
</p>
<p
v-if=
'boxListLeft.length>0'
>
<span>
{{
boxListLeft
[
0
].
person_unid
}}
</span>
<span
style=
"float: right;"
>
共
{{
boxListLeft
.
length
}}
张
</span>
</p>
<a-row
@
dragenter=
"dragEnter($event)"
@
dragleave=
"dragLeave($event)"
@
drop=
"dropLeft($event)"
@
dragover=
"allowDrop($event)"
>
<a-col
:span=
"6"
v-for=
"item in boxListLeft"
>
<div
style=
"margin: 0 5p
x"
:class=
"item.id==currentItemId?'actived':''"
@
click=
"clickItem(item)"
>
<div
class=
"itemBo
x"
:class=
"item.id==currentItemId?'actived':''"
@
click=
"clickItem(item)"
>
<el-image
:src=
"item.picture_url"
:fit=
"'fill'"
class=
"single-image"
>
</el-image>
<span
class=
"el-icon-document downloadFile"
@
click=
"downloadFile(item,$event)"
></span>
<div>
时间:
{{
item
.
counttime
}}
</div>
<div>
方向:
{{
formatDirection
(
item
.
direction
)
}}
</div>
<div>
地点:
{{
item
.
gate_name
}}
</div>
...
...
@@ -107,13 +108,14 @@
</a-row>
</div>
<div
class=
'comparsionBox'
v-loading=
'isLoadingComparisonRight'
style=
"margin-top: 15px;"
>
<p
v-if=
'boxListRight.length>0'
>
共
{{
boxListRight
.
length
}}
张
</p>
<p
v-if=
'boxListRight.length>0'
>
<span>
{{
boxListRight
[
0
].
person_unid
}}
</span>
<span
style=
"float: right;"
>
共
{{
boxListRight
.
length
}}
张
</span>
</p>
<a-row
@
dragenter=
"dragEnter($event)"
@
dragleave=
"dragLeave($event)"
@
drop=
"dropRight($event)"
@
dragover=
"allowDrop($event)"
>
<a-col
:span=
"6"
v-for=
"item in boxListRight"
>
<div
style=
"margin: 0 5p
x"
:class=
"item.id==currentItemId?'actived':''"
@
click=
"clickItem(item)"
>
<div
class=
"itemBo
x"
:class=
"item.id==currentItemId?'actived':''"
@
click=
"clickItem(item)"
>
<el-image
:src=
"item.picture_url"
:fit=
"'fill'"
class=
"single-image"
>
</el-image>
<span
class=
"el-icon-document downloadFile"
@
click=
"downloadFile(item,$event)"
></span>
<div>
时间:
{{
item
.
counttime
}}
</div>
<div>
方向:
{{
formatDirection
(
item
.
direction
)
}}
</div>
<div>
地点:
{{
item
.
gate_name
}}
</div>
...
...
@@ -542,6 +544,21 @@
}
DetailDialogRef
.
value
.
initDialog
(
clickItemObj
.
value
,
parmas
);
}
const
downloadFile
=
function
(
item
,
event
){
event
.
stopPropagation
()
if
(
item
.
features_url
){
window
.
open
(
item
.
features_url
)
}
else
{
ElMessage
(
{
message
:
`该图片没有特征`
,
type
:
'warning'
}
)
return
}
}
__main
()
return
{
...
...
@@ -581,6 +598,7 @@
featureComparison
,
shoperFeatureComparison
,
clickItem
,
downloadFile
,
// ref
DetailDialogRef
,
DetailDialogComparisonRef
...
...
@@ -611,14 +629,27 @@
flex
:
0
0
20%
;
max-width
:
20%
;
}
.itemBox
{
margin
:
0
5px
;
position
:
relative
;
.downloadFile{
position
:
absolute
;
color
:
#1890ff
;
font-size
:
32px
;
top
:
0
;
right
:
0
;
cursor
:
pointer
;
}
}
.comparsionBox
{
padding-top
:
5px
;
border
:
2px
dashed
#ccc
;
height
:
430px
;
overflow-y
:
auto
;
p{
text-align
:
right
;
//
text-align
:
right
;
margin-right
:
20px
;
margin-left
:
20px
;
}
.ant-empty
{
margin
:
0
auto
;
...
...
src/views/ComparisonCapturedPictures/DetailDialog.vue
View file @
fc28a04
...
...
@@ -9,9 +9,10 @@
<div
v-loading=
'isLoading'
>
<a-row
:gutter=
"[16,16]"
>
<a-col
:span=
'4'
>
<div
style=
"margin: 0 5px"
>
<div
style=
"margin: 0 5px"
class=
"itemBox"
>
<el-image
:src=
"detailData.picture_url"
:fit=
"'fill'"
class=
"single-image"
>
</el-image>
<span
class=
"el-icon-document downloadFile"
@
click=
"downloadFile(detailData,$event)"
></span>
<div>
时间:
{{
detailData
.
counttime
}}
</div>
<div>
方向:
{{
formatDirection
(
detailData
.
direction
)
}}
</div>
<div>
地点:
{{
detailData
.
gate_name
}}
</div>
...
...
@@ -20,10 +21,11 @@
<a-col
:span=
'20'
>
<a-row
v-for=
"(row,index) in dataList"
:key=
'index'
class=
'rowBox'
>
<p>
{{
row
.
name
}}
{{
row
.
shopname
}}
</p>
<a-col
:span=
"
6"
v-for=
"item in row.personList"
class=
'itemBox'
:key=
'item.id
'
>
<div
style=
"margin: 0 5px"
>
<a-col
:span=
"
4"
v-for=
"item in row.personList"
:key=
'item.id'
class=
'colItem
'
>
<div
style=
"margin: 0 5px"
class=
"itemBox"
>
<el-image
:src=
"item.picture_url"
:fit=
"'fill'"
class=
"single-image"
>
</el-image>
<span
class=
"el-icon-document downloadFile"
@
click=
"downloadFile(item,$event)"
></span>
<p
class=
"featureNum"
>
{{
item
.
featureNum
}}
</p>
<div>
时间:
{{
item
.
counttime
}}
</div>
</div>
...
...
@@ -84,33 +86,60 @@ export default {
const
onCancel
=
()
=>
{
isVisible
.
value
=
false
;
};
const
downloadFile
=
function
(
item
,
event
){
event
.
stopPropagation
()
if
(
item
.
features_url
){
window
.
open
(
item
.
features_url
)
}
else
{
ElMessage
(
{
message
:
`该图片没有特征`
,
type
:
'warning'
}
)
return
}
}
return
{
isVisible
,
detailData
,
onCancel
,
dataList
,
initDialog
,
isVisible
,
detailData
,
onCancel
,
dataList
,
initDialog
,
isLoading
,
formatDirection
formatDirection
,
downloadFile
};
},
};
</
script
>
<
style
lang=
"less"
scoped
>
.single-image
{
height
:
3
00px
;
width
:
1
00%
;
height
:
2
00px
;
width
:
1
50px
;
}
.rowBox
{
border
:
2px
dashed
#ccc
;
padding
:
0
5px
;
margin-bottom
:
15px
;
}
.colItem
{
flex
:
0
0
20%
;
max-width
:
20%
;
}
.itemBox
{
position
:
relative
;
}
.downloadFile
{
position
:
absolute
;
color
:
#1890ff
;
font-size
:
32px
;
top
:
0
;
left
:
120px
;
cursor
:
pointer
;
}
.featureNum
{
position
:
absolute
;
top
:
0
;
...
...
src/views/ComparisonCapturedPictures/DetailDialogComparison.vue
View file @
fc28a04
...
...
@@ -8,9 +8,10 @@
<div>
<a-row
:gutter=
"[16,16]"
>
<a-col
:span=
'4'
>
<div
style=
"margin: 0 5px"
>
<div
style=
"margin: 0 5px"
class=
"itemBox"
>
<el-image
:src=
"detailData.picture_url"
:fit=
"'fill'"
class=
"single-image"
>
</el-image>
<span
class=
"el-icon-document downloadFile"
@
click=
"downloadFile(detailData,$event)"
></span>
<div>
时间:
{{
detailData
.
counttime
}}
</div>
<div>
方向:
{{
formatDirection
(
detailData
.
direction
)
}}
</div>
<div>
地点:
{{
detailData
.
gate_name
}}
</div>
...
...
@@ -18,12 +19,17 @@
</a-col>
<a-col
:span=
'20'
>
<div
v-loading=
'isLoadingTop'
class=
'rowBox'
>
<p
v-if=
"dataListLeft"
>
上方
<span
style=
"float: right;margin-right: 25px;"
v-if=
"dataListLeft.length"
>
共
{{
dataListLeft
.
length
}}
张
</span></p>
<a-row
>
<a-col
:span=
"6"
v-for=
"(item,index) in dataListLeft"
:key=
'index'
>
<p
v-if=
"dataListLeft"
>
上方
<span
v-if=
"dataListLeft.length"
style=
"margin-left: 25px;"
>
{{
dataListLeft
[
0
].
person_unid
}}
</span>
<span
v-if=
"dataListLeft.length"
style=
"float: right;margin-right: 25px;"
>
共
{{
dataListLeft
.
length
}}
张
</span>
</p>
<a-row
class=
'rowAllBox'
>
<a-col
class=
'colItem'
:span=
"4"
v-for=
"(item,index) in dataListLeft"
:key=
'index'
>
<div
style=
"margin: 0 5px"
class=
"itemBox"
>
<el-image
:src=
"item.picture_url"
:fit=
"'fill'"
class=
"single-image"
>
</el-image>
<span
class=
"el-icon-document downloadFile"
@
click=
"downloadFile(item,$event)"
></span>
<p
class=
"featureNum"
>
{{
(
item
.
featureNum
).
toFixed
(
2
)
}}
</p>
<div>
时间:
{{
item
.
counttime
}}
</div>
<div>
方向:
{{
formatDirection
(
item
.
direction
)
}}
</div>
...
...
@@ -33,12 +39,17 @@
</a-row>
</div>
<div
v-loading=
'isLoadingBottom'
class=
'rowBox'
>
<p
v-if=
"dataListRight"
>
下方
<span
style=
"float: right;margin-right: 25px;"
v-if=
"dataListRight.length"
>
共
{{
dataListRight
.
length
}}
张
</span></p>
<a-row>
<a-col
:span=
"6"
v-for=
"(item,index) in dataListRight"
:key=
'index'
>
<p
v-if=
"dataListRight"
>
下方
<span
v-if=
"dataListRight.length"
style=
"margin-left: 25px;"
>
{{
dataListRight
[
0
].
person_unid
}}
</span>
<span
v-if=
"dataListRight.length"
style=
"float: right;margin-right: 25px;"
>
共
{{
dataListRight
.
length
}}
张
</span>
</p>
<a-row
class=
'rowAllBox'
>
<a-col
class=
'colItem'
:span=
"4"
v-for=
"(item,index) in dataListRight"
:key=
'index'
>
<div
style=
"margin: 0 5px"
class=
"itemBox"
>
<el-image
:src=
"item.picture_url"
:fit=
"'fill'"
class=
"single-image"
>
</el-image>
<span
class=
"el-icon-document downloadFile"
@
click=
"downloadFile(item,$event)"
></span>
<p
class=
"featureNum"
>
{{
(
item
.
featureNum
).
toFixed
(
2
)
}}
</p>
<div>
时间:
{{
item
.
counttime
}}
</div>
<div>
方向:
{{
formatDirection
(
item
.
direction
)
}}
</div>
...
...
@@ -158,7 +169,21 @@ export default {
const
onCancel
=
()
=>
{
isVisible
.
value
=
false
;
};
const
downloadFile
=
function
(
item
,
event
){
event
.
stopPropagation
()
if
(
item
.
features_url
){
window
.
open
(
item
.
features_url
)
}
else
{
ElMessage
(
{
message
:
`该图片没有特征`
,
type
:
'warning'
}
)
return
}
}
return
{
isVisible
,
...
...
@@ -169,23 +194,37 @@ export default {
initDialog
,
formatDirection
,
isLoadingTop
,
isLoadingBottom
isLoadingBottom
,
downloadFile
};
},
};
</
script
>
<
style
lang=
"less"
scoped
>
.single-image
{
height
:
3
00px
;
width
:
1
00%
;
height
:
2
00px
;
width
:
1
50px
;
}
.rowBox
{
border
:
2px
dashed
#ccc
;
padding
:
0
5px
;
margin-bottom
:
15px
;
}
.rowAllBox
{
height
:
350px
;
overflow-y
:
auto
;
}
.itemBox
{
position
:
relative
;
.downloadFile{
position
:
absolute
;
color
:
#1890ff
;
font-size
:
32px
;
top
:
0
;
left
:
120px
;
cursor
:
pointer
;
}
}
.featureNum
{
position
:
absolute
;
...
...
src/views/FeatureComparisonVerification/FeatureComparisonVerification.vue
View file @
fc28a04
...
...
@@ -65,9 +65,10 @@
<div
v-loading=
"isLoading"
>
<el-row
v-for=
"row in pagedTableDataList"
>
<el-col
class=
"col"
:span=
"6"
v-for=
"(item,index) in row"
:key=
"index"
>
<div
style=
"margin: 0 5px"
@
click=
'chooseItem(item)'
class=
"colItem"
:class=
"currentItemId==item.id?'actived':''"
>
<div
@
click=
'chooseItem(item)'
class=
"colItem"
:class=
"currentItemId==item.id?'actived':''"
>
<el-image
:src=
"item.picture_url"
:fit=
"'fill'"
class=
"single-image"
>
</el-image>
<span
class=
"el-icon-document downloadFile"
@
click=
"downloadFile(item,$event)"
></span>
<div>
时间:
{{
item
.
counttime
}}
</div>
<div>
方向:
{{
formatDirection
(
item
.
direction
)
}}
</div>
<div>
地点:
{{
item
.
gate_name
}}
</div>
...
...
@@ -81,11 +82,15 @@
</div>
</a-col>
<a-col
:span=
"10"
class=
'imgBox1'
>
<p
style=
"margin-left: 15px;"
v-if=
'featureList.length>0'
>
共
{{
featureList
.
length
}}
张
</p>
<p
v-if=
'featureList.length>0'
style=
"margin-left: 15px;"
>
<span>
{{
featureList
[
0
].
person_unid
}}
</span>
<span
style=
"float: right;"
>
共
{{
featureList
.
length
}}
张
</span>
</p>
<el-row
class=
"imgBox1_top"
:gutter=
"10"
v-loading=
"isLoadingFeature"
>
<el-col
:span=
"6"
class=
"itemBox"
v-for=
"item in featureList"
>
<el-image
:src=
"item.picture_url"
:fit=
"'fill'"
class=
"single-image"
>
</el-image>
<span
class=
"el-icon-document downloadFile"
@
click=
"downloadFile(item,$event)"
></span>
<p
class=
"featureNum"
>
{{
(
item
.
featureNum
).
toFixed
(
2
)
}}
</p>
<div>
时间:
{{
item
.
counttime
}}
</div>
<div>
方向:
{{
formatDirection
(
item
.
direction
)
}}
</div>
...
...
@@ -95,7 +100,10 @@
</el-row>
<div
class=
"imgBox2_top"
>
<div
class=
"btns"
>
<p
style=
"float: left;margin-left: 15px;"
v-if=
'comparisonList.length>0'
>
共
{{
comparisonList
.
length
}}
张
</p>
<p
v-if=
'comparisonList.length>0'
style=
"margin-left: 15px;float: left"
>
<span>
{{
comparisonList
[
0
].
person_unid
}}
</span>
<span
syle=
"margin-left:30px"
>
共
{{
comparisonList
.
length
}}
张
</span>
</p>
<a-button
type=
"primary"
@
click=
"reComparison"
>
重新比对
</a-button>
<a-button
type=
"primary"
@
click=
"reComparisonFeature"
>
重提特征比对
</a-button>
</div>
...
...
@@ -103,6 +111,7 @@
<el-col
:span=
"6"
class=
"itemBox"
v-for=
"item in comparisonList"
>
<el-image
:src=
"item.picture_url"
:fit=
"'fill'"
class=
"single-image"
>
</el-image>
<span
class=
"el-icon-document downloadFile"
@
click=
"downloadFile(item,$event)"
></span>
<p
class=
"featureNum"
>
{{
(
item
.
featureNum
).
toFixed
(
2
)
}}
</p>
<div>
时间:
{{
item
.
counttime
}}
</div>
<div>
方向:
{{
formatDirection
(
item
.
direction
)
}}
</div>
...
...
@@ -434,6 +443,21 @@
}
)
}
const
downloadFile
=
function
(
item
,
event
){
event
.
stopPropagation
()
if
(
item
.
features_url
){
window
.
open
(
item
.
features_url
)
}
else
{
ElMessage
(
{
message
:
`该图片没有特征`
,
type
:
'warning'
}
)
return
}
}
__main
()
return
{
...
...
@@ -466,7 +490,7 @@
chooseItem
,
reComparison
,
reComparisonFeature
,
downloadFile
}
}
}
...
...
@@ -483,6 +507,14 @@
.itemBox{
position
:
relative
;
}
.downloadFile
{
position
:
absolute
;
color
:
#1890ff
;
font-size
:
32px
;
top
:
0
;
right
:
0
;
cursor
:
pointer
;
}
.featureNum
{
position
:
absolute
;
top
:
0
;
...
...
@@ -514,10 +546,19 @@
}
}
.colItem
{
position
:
relative
;
cursor
:
pointer
;
div{
margin
:
0
5px
;
div{
padding-left
:
5px
;
}
}
.downloadFile
{
position
:
absolute
;
color
:
#1890ff
;
font-size
:
32px
;
top
:
0
;
right
:
0
;
}
}
.col
{
flex
:
0
0
20%
;
...
...
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