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 0931e64f
authored
Apr 10, 2024
by
Tianqing Liu
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat: 聚类弹窗,人员分类完成,op
1 parent
d12d07cd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
21 deletions
src/views/SnapshotCluster/ClusterResult/PersonGroupDialog.vue
src/views/SnapshotCluster/ClusterResult/PersonGroupDialog.vue
View file @
0931e64
...
...
@@ -50,29 +50,32 @@
</el-row>
</div>
<div
class=
"right-part"
>
<div
class=
"classBox"
v-for=
"row in groupList"
:key=
"row.person_unid"
>
<el-row>
<el-col
:span=
"3"
v-for=
"item in row.personList"
:key=
"item.id"
>
<div
style=
"margin: 0 5px"
:class=
"isSelectedImg(item) ? 'actived' : ''"
@
click=
"handleSelectImg(item)"
>
<template
v-if=
"groupList.length > 0"
>
<div
class=
"classBox"
v-for=
"row in groupList"
:key=
"row.person_unid"
>
<el-row>
<el-col
:span=
"3"
v-for=
"item in row.personList"
:key=
"item.id"
>
<div
style=
"margin: 0 5px"
:class=
"isSelectedImg(item) ? 'actived' : ''"
@
click=
"handleSelectImg(item)"
>
<el-image
:src=
"formatImgUrl(item.picture_url)"
:fit=
"'fill'"
class=
"single-image"
>
</el-image>
<el-image
:src=
"formatImgUrl(item.picture_url)"
:fit=
"'fill'"
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>
性别:
{{
formatGender
(
item
.
gender
)
}}
(
{{
item
.
age
}}
)
</div>
-->
<!--
<div
class=
"direction"
:class=
"'direction'+item.direction"
>
方向:
{{
formatDirection
(
item
.
direction
)
}}
</div>
-->
<div>
地点:
{{
item
.
gate_name
}}
</div>
</div>
</el-col>
</el-row>
</div>
<div>
时间:
{{
item
.
counttime
}}
</div>
<!--
<div>
人员类型:
{{
item
.
person_type
==
1
?
'店员'
:(
item
.
person_type
==
0
?
'顾客'
:
'未知'
)
}}
(
{{
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>
地点:
{{
item
.
gate_name
}}
</div>
</div>
</el-col>
</el-row>
</div>
</
template
>
<a-empty
style=
"margin-top: 200px;"
v-else
/>
</div>
</div>
</div>
...
...
@@ -95,6 +98,7 @@ export default {
setup
(
props
,
{
emit
})
{
const
isVisible
=
ref
(
false
);
const
personList
=
ref
([])
// 右侧分组
const
groupList
=
ref
([])
const
currentPerson
=
ref
({})
// 表单
...
...
@@ -185,6 +189,7 @@ export default {
}
const
onCancel
=
()
=>
{
isVisible
.
value
=
false
;
groupList
.
value
=
[]
};
const
isLoading
=
ref
(
false
)
...
...
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