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 0c999ad4
authored
Nov 27, 2023
by
李乾广
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改bug,数据聚类--单张特征对比功能优化
1 parent
57a5e9d7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
54 additions
and
5 deletions
src/views/FeatureComparisonVerification/api.js
src/views/SnapshotCluster/ClusterResult/ClusterResult.vue
src/views/SnapshotCluster/SnapshotRecord/SnapshotRecord.vue
src/views/SnapshotCluster/imgDialog.vue
src/views/SnapshotCluster/singleImgComparisonDialog.vue
src/views/FeatureComparisonVerification/api.js
View file @
0c999ad
...
@@ -17,7 +17,8 @@ class FeatureResultApi {
...
@@ -17,7 +17,8 @@ class FeatureResultApi {
return
axiosInstance
.
request
(
return
axiosInstance
.
request
(
{
{
method
:
'GET'
,
method
:
'GET'
,
url
:
`/feature/allPersonContrast`
,
// url: `/feature/allPersonContrast`,
url
:
`/feature/allPersonContrastGroup`
,
params
:
filterEmptyValueInObject
(
params
:
filterEmptyValueInObject
(
data
data
)
)
...
...
src/views/SnapshotCluster/ClusterResult/ClusterResult.vue
View file @
0c999ad
...
@@ -630,6 +630,8 @@ export default {
...
@@ -630,6 +630,8 @@ export default {
let
parmas
=
{
let
parmas
=
{
person_unid
:
currobj
.
value
.
person_unid
,
person_unid
:
currobj
.
value
.
person_unid
,
pic_type
:
rawData
.
picType
,
pic_type
:
rawData
.
picType
,
endTime
:
rawData
.
endTime
,
startTime
:
rawData
.
startTime
,
countdate
:
formatDate
(
rawData
.
date
),
countdate
:
formatDate
(
rawData
.
date
),
pic_id
:
currobj
.
value
.
id
,
pic_id
:
currobj
.
value
.
id
,
ip
:
window
.
_baseImgUrl
,
ip
:
window
.
_baseImgUrl
,
...
...
src/views/SnapshotCluster/SnapshotRecord/SnapshotRecord.vue
View file @
0c999ad
...
@@ -105,6 +105,9 @@
...
@@ -105,6 +105,9 @@
<a-form-item
style=
"padding: 5px 0"
>
<a-form-item
style=
"padding: 5px 0"
>
<a-button
type=
"primary"
@
click=
"comparativeFun"
>
特征对比验证
</a-button>
<a-button
type=
"primary"
@
click=
"comparativeFun"
>
特征对比验证
</a-button>
</a-form-item>
</a-form-item>
<a-form-item
style=
"padding: 5px 0"
>
<a-button
type=
"primary"
@
click=
"singleComparativeFun"
>
单张特征对比
</a-button>
</a-form-item>
</a-form>
</a-form>
<div
v-loading=
"isLoading"
>
<div
v-loading=
"isLoading"
>
...
@@ -150,6 +153,7 @@
...
@@ -150,6 +153,7 @@
</div>
</div>
<!--
<imgDialog
ref=
'imgModelRef'
></imgDialog>
-->
<!--
<imgDialog
ref=
'imgModelRef'
></imgDialog>
-->
<DetailDialog
ref=
"DetailDialogRef"
/>
<DetailDialog
ref=
"DetailDialogRef"
/>
<singleImgComparisonDialog
ref=
"singleImgComparisonRef"
></singleImgComparisonDialog>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -161,10 +165,12 @@ import {filterEmptyValueInObject, formatDate, formatTime, getPagedList} from '@/
...
@@ -161,10 +165,12 @@ import {filterEmptyValueInObject, formatDate, formatTime, getPagedList} from '@/
// import imgDialog from '../imgDialog.vue'
// import imgDialog from '../imgDialog.vue'
import
{
ElMessage
}
from
'element-plus'
import
{
ElMessage
}
from
'element-plus'
import
DetailDialog
from
"../../ComparisonCapturedPictures/DetailDialog.vue"
;
import
DetailDialog
from
"../../ComparisonCapturedPictures/DetailDialog.vue"
;
import
singleImgComparisonDialog
from
"../singleImgComparisonDialog.vue"
;
export
default
{
export
default
{
components
:{
components
:{
// imgDialog ,
// imgDialog ,
DetailDialog
DetailDialog
,
singleImgComparisonDialog
},
},
setup
()
{
setup
()
{
// scalar
// scalar
...
@@ -512,6 +518,40 @@ export default {
...
@@ -512,6 +518,40 @@ export default {
}
}
DetailDialogRef
.
value
.
initDialog
(
currobj
.
value
,
parmas
);
DetailDialogRef
.
value
.
initDialog
(
currobj
.
value
,
parmas
);
}
}
//单张特征对比
const
singleImgComparisonRef
=
ref
()
const
singleComparativeFun
=
function
(){
if
(
!
currobj
.
value
.
id
){
ElMessage
(
{
message
:
`请选择图片`
,
type
:
'warning'
}
)
return
}
if
(
!
currobj
.
value
.
picture_url
){
ElMessage
(
{
message
:
`该图片没有特征,请选择有效的图片`
,
type
:
'warning'
}
)
return
}
const
rawData
=
toRaw
(
queryForm
)
let
parmas
=
{
person_unid
:
currobj
.
value
.
person_unid
,
pic_type
:
rawData
.
picType
,
endTime
:
rawData
.
endTime
,
startTime
:
rawData
.
startTime
,
countdate
:
formatDate
(
rawData
.
date
),
pic_id
:
currobj
.
value
.
id
,
ip
:
window
.
_baseImgUrl
,
plaza_id
:
currobj
.
value
.
mall_id
}
singleImgComparisonRef
.
value
.
initDialog
(
parmas
);
}
const
clickSearch
=
function
()
{
const
clickSearch
=
function
()
{
pageNum
.
value
=
1
pageNum
.
value
=
1
confirmSearch
()
confirmSearch
()
...
@@ -557,7 +597,9 @@ export default {
...
@@ -557,7 +597,9 @@ export default {
clickSearch
,
clickSearch
,
// ref
// ref
DetailDialogRef
,
DetailDialogRef
,
imgModelRef
imgModelRef
,
singleComparativeFun
,
singleImgComparisonRef
}
}
}
}
}
}
...
...
src/views/SnapshotCluster/imgDialog.vue
View file @
0c999ad
<
template
>
<
template
>
<a-modal
<a-modal
title=
"图片
"
:title=
"'图片' + ' ' + unidStr
"
v-if=
'isVisible'
v-if=
'isVisible'
v-model:visible=
"isVisible"
v-model:visible=
"isVisible"
width=
"1200px"
width=
"1200px"
...
@@ -25,8 +25,11 @@ export default {
...
@@ -25,8 +25,11 @@ export default {
const
imgUrl
=
ref
()
const
imgUrl
=
ref
()
const
canvas
=
ref
()
const
canvas
=
ref
()
const
ctx
=
ref
()
const
ctx
=
ref
()
const
initDialog
=
(
url
,
data
)
=>
{
const
unidStr
=
ref
(
''
)
const
initDialog
=
(
unid
,
url
,
data
)
=>
{
console
.
log
(
unid
,
url
,
data
,)
imgUrl
.
value
=
url
imgUrl
.
value
=
url
unidStr
.
value
=
unid
isVisible
.
value
=
true
;
isVisible
.
value
=
true
;
setTimeout
(()
=>
{
setTimeout
(()
=>
{
var
imgscream
=
document
.
getElementById
(
"img"
);
var
imgscream
=
document
.
getElementById
(
"img"
);
...
@@ -56,6 +59,7 @@ export default {
...
@@ -56,6 +59,7 @@ export default {
initDialog
,
initDialog
,
isLoading
,
isLoading
,
imgUrl
,
imgUrl
,
unidStr
,
detailData
detailData
};
};
},
},
...
...
src/views/SnapshotCluster/singleImgComparisonDialog.vue
View file @
0c999ad
This diff is collapsed.
Click to expand it.
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