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 bdb89458
authored
Apr 10, 2024
by
Tianqing Liu
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat: 聚类结果,弹窗展示成功
1 parent
b0a79c5c
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
81 additions
and
1 deletions
src/views/SnapshotCluster/ClusterResult/ClusterResult.vue
src/views/SnapshotCluster/ClusterResult/PersonGroupEditor.bak.vue
src/views/SnapshotCluster/ClusterResult/PersonGroupEditor.vue
src/views/SnapshotCluster/SnapshotCluster.vue
src/views/SnapshotCluster/ClusterResult/ClusterResult.vue
View file @
bdb8945
...
@@ -129,14 +129,22 @@
...
@@ -129,14 +129,22 @@
<div
class=
"boxInfo"
>
<div
class=
"boxInfo"
>
<span
class=
"iconExpand"
v-show=
"!person.expand"
>
▶
</span>
<span
class=
"iconExpand"
v-show=
"!person.expand"
>
▶
</span>
<span
class=
"iconExpand"
v-show=
"person.expand"
>
▼
</span>
<span
class=
"iconExpand"
v-show=
"person.expand"
>
▼
</span>
<span
class=
"expandWord"
@
click=
'expandChange(person)'
>
{{
person
.
expand
?
'收起'
:
'展开'
}}
</span>
<span
class=
"expandWord"
@
click=
'expandChange(person)'
>
{{
person
.
expand
?
'收起'
:
'展开'
}}
</span>
<!--修正组类型数据-->
<span
class=
"expandWord"
@
click=
'updatePersonInfoByGroup(person)'
>
类型修正
</span>
<el-checkbox
class=
"checkBox"
v-model=
"person.checked"
@
change=
'checkChange(person)'
></el-checkbox>
<el-checkbox
class=
"checkBox"
v-model=
"person.checked"
@
change=
'checkChange(person)'
></el-checkbox>
人id:
{{
' '
+
person
.
person_unid
}}
人id:
{{
' '
+
person
.
person_unid
}}
图片数量:
{{
person
.
perrsonList
.
length
}}
图片数量:
{{
person
.
perrsonList
.
length
}}
</div>
</div>
<el-row
v-for=
"row in getPagedList(person.perrsonList, 8)"
>
<el-row
v-for=
"row in getPagedList(person.perrsonList, 8)"
>
<el-col
:span=
"3"
v-for=
"item in row"
>
<el-col
:span=
"3"
v-for=
"item in row"
>
<div
style=
"margin: 0 5px"
@
click=
"handleClick(item)"
:class=
"currentItemId==item.id?'actived':''"
>
<div
style=
"margin: 0 5px"
:class=
"currentItemId==item.id?'actived':''"
@
click=
"handleClick(item)"
>
<div
style=
""
>
<div
style=
""
>
<span
@
click=
"downloadTrajectoryFile(item.track_url)"
<span
@
click=
"downloadTrajectoryFile(item.track_url)"
class=
"downBtn"
>
class=
"downBtn"
>
...
@@ -181,6 +189,8 @@
...
@@ -181,6 +189,8 @@
<DetailDialog
ref=
"DetailDialogRef"
/>
<DetailDialog
ref=
"DetailDialogRef"
/>
<DetailDialogComparison
ref=
"DetailDialogComparisonRef"
/>
<DetailDialogComparison
ref=
"DetailDialogComparisonRef"
/>
<singleImgComparisonDialog
ref=
"singleImgComparisonRef"
></singleImgComparisonDialog>
<singleImgComparisonDialog
ref=
"singleImgComparisonRef"
></singleImgComparisonDialog>
<PersonGroupEditor
ref=
'personGroupEditorRef'
/>
</template>
</template>
<
script
>
<
script
>
...
@@ -194,8 +204,11 @@ import {ElMessage} from 'element-plus'
...
@@ -194,8 +204,11 @@ import {ElMessage} from 'element-plus'
import
DetailDialog
from
"../../ComparisonCapturedPictures/DetailDialog.vue"
;
import
DetailDialog
from
"../../ComparisonCapturedPictures/DetailDialog.vue"
;
import
DetailDialogComparison
from
"../../ComparisonCapturedPictures/DetailDialogComparisonNew.vue"
;
import
DetailDialogComparison
from
"../../ComparisonCapturedPictures/DetailDialogComparisonNew.vue"
;
import
singleImgComparisonDialog
from
"../singleImgComparisonDialog.vue"
;
import
singleImgComparisonDialog
from
"../singleImgComparisonDialog.vue"
;
import
PersonGroupEditor
from
"./PersonGroupEditor.vue"
;
export
default
{
export
default
{
components
:{
components
:{
PersonGroupEditor
,
// imgDialog
// imgDialog
DetailDialog
,
DetailDialog
,
DetailDialogComparison
,
DetailDialogComparison
,
...
@@ -544,6 +557,15 @@ export default {
...
@@ -544,6 +557,15 @@ export default {
)
)
}
}
// 人员类型修正
const
personGroupEditorRef
=
ref
();
// const isShowGroupEditor = ref(false)
const
updatePersonInfoByGroup
=
function
(
data
)
{
console
.
log
(
'updatePersonInfoByGroup'
,
data
)
// isShowGroupEditor.value = true
personGroupEditorRef
.
value
.
initDialog
(
data
);
}
const
downloadFile
=
function
(
url
)
{
const
downloadFile
=
function
(
url
)
{
window
.
open
(
url
)
window
.
open
(
url
)
}
}
...
@@ -719,6 +741,7 @@ export default {
...
@@ -719,6 +741,7 @@ export default {
comparativeFun
,
comparativeFun
,
checkChange
,
checkChange
,
expandChange
,
expandChange
,
updatePersonInfoByGroup
,
clerkComparativeFun
,
clerkComparativeFun
,
singleComparativeFun
,
singleComparativeFun
,
formatGender
,
formatGender
,
...
@@ -727,6 +750,7 @@ export default {
...
@@ -727,6 +750,7 @@ export default {
// ref
// ref
// imgModelRef,
// imgModelRef,
DetailDialogRef
,
DetailDialogRef
,
personGroupEditorRef
,
DetailDialogComparisonRef
,
DetailDialogComparisonRef
,
singleImgComparisonRef
singleImgComparisonRef
}
}
...
...
src/views/SnapshotCluster/ClusterResult/PersonGroupEditor.bak.vue
0 → 100644
View file @
bdb8945
<
template
>
<span>
123
</span>
</
template
>
<
script
lang=
"ts"
>
import
{
ref
,
watch
}
from
'vue'
;
export
default
{
}
</
script
>
src/views/SnapshotCluster/ClusterResult/PersonGroupEditor.vue
0 → 100644
View file @
bdb8945
<
template
>
<a-modal
title=
"图片"
v-if=
'isVisible'
v-model:visible=
"isVisible"
width=
"400px"
height=
'50%'
class=
"detail-modal"
>
<span>
123
</span>
<template
#
footer
>
<a-button
@
click=
"onCancel"
>
返回
</a-button>
</
template
>
</a-modal>
</template>
<
script
>
import
{
ref
}
from
"vue"
;
export
default
{
setup
()
{
const
isVisible
=
ref
(
false
);
const
initDialog
=
(
data
)
=>
{
console
.
log
(
'initDialog'
,
data
)
isVisible
.
value
=
true
;
};
const
onCancel
=
()
=>
{
isVisible
.
value
=
false
;
};
return
{
isVisible
,
onCancel
,
initDialog
,
};
},
};
</
script
>
<
style
lang=
"less"
scoped
>
</
style
>
src/views/SnapshotCluster/SnapshotCluster.vue
View file @
bdb8945
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