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 b9051e60
authored
Nov 05, 2024
by
李乾广
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
增加切换显示事件图
1 parent
5a09b436
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
src/views/SnapshotCluster/ClusterResult/ClusterResult.vue
src/views/SnapshotCluster/ClusterResult/ClusterResult.vue
View file @
b9051e6
...
...
@@ -206,6 +206,8 @@
<el-checkbox
class=
"checkBox"
v-model=
"person.checked"
@
change=
'checkChange(person)'
></el-checkbox>
人id:
{{
' '
+
person
.
person_unid
}}
图片数量:
{{
person
.
perrsonList
.
length
}}
<span
style=
"margin-left: 20px;"
>
当前显示:
{{
person
.
imageDisplayType
?
'事件图'
:
'抓拍图'
}}
</span>
<span
style=
"color: #1890ff;margin-left: 20px;cursor: pointer;"
@
click=
'toggleImageDisplayType(person)'
>
{{
person
.
imageDisplayType
?
'切换显示抓拍图'
:
'切换显示事件图'
}}
</span>
</div>
<el-row
v-for=
"row in getPagedList(person.perrsonList, 8)"
>
<el-col
:span=
"3"
v-for=
"item in row"
>
...
...
@@ -224,10 +226,8 @@
特征
</span>
</div>
<el-image
:src=
"item.picture_url"
:fit=
"'fill'"
class=
"single-image"
>
</el-image>
<el-image
v-if=
"person.imageDisplayType"
:src=
"item.eventPic"
:fit=
"'fill'"
class=
"single-image"
></el-image>
<el-image
v-else
:src=
"item.picture_url"
:fit=
"'fill'"
class=
"single-image"
></el-image>
<div>
时间:
{{
item
.
counttime
}}
</div>
<div>
人员类型:
{{
personTypeStr
(
item
.
person_type
)
}}
(
{{
item
.
childAdult
==
1
?
'成人'
:(
item
.
childAdult
==
0
?
'儿童'
:
'未知'
)
}}
)
</div>
<div>
性别:
{{
formatGender
(
item
.
gender
)
}}
(
{{
item
.
age
}}
)
</div>
...
...
@@ -662,6 +662,9 @@ export default {
if
(
item
.
picture_url
)
{
item
.
picture_url
=
window
.
_baseImgUrl
+
item
.
picture_url
}
if
(
item
.
eventPic
)
{
item
.
eventPic
=
window
.
_baseImgUrl
+
item
.
eventPic
}
if
(
item
.
track_url
)
{
item
.
track_url
=
window
.
_baseImgUrl
+
item
.
track_url
}
...
...
@@ -1004,6 +1007,10 @@ export default {
data
.
plaza_id
=
rawData
.
plaza_id
personGroupDialogRef
.
value
.
initDialog
(
data
);
}
// 切换图片显示类型
const
toggleImageDisplayType
=
function
(
person
){
person
.
imageDisplayType
=
!
person
.
imageDisplayType
}
const
downloadFile
=
function
(
url
)
{
window
.
open
(
url
)
...
...
@@ -1230,6 +1237,7 @@ export default {
deletePersonRecord
,
movePersonRecord
,
searchPersonInfoByGroup
,
toggleImageDisplayType
,
isSelectedPerson
,
selectedPersonList
,
clerkComparativeFun
,
...
...
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