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 33a3483f
authored
Apr 11, 2024
by
Tianqing Liu
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat: support preview images
1 parent
fce08c97
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
src/views/SnapshotCluster/ClusterResult/PersonGroupDialog.vue
src/views/SnapshotCluster/ClusterResult/PersonGroupDialog.vue
View file @
33a3483
...
...
@@ -21,6 +21,7 @@
<a-form-item
style=
"padding: 5px 0"
>
<a-button
type=
"primary"
@
click=
"clickSearch"
:loading=
"isLoading"
>
查询
</a-button>
<a-button
@
click=
"handleAddGroup"
:loading=
"addGroupLoading"
style=
"margin-left: 10px"
>
加入分组
</a-button>
<a-alert
style=
"display: inline-block;margin-left: 20px"
message=
"提示:单击选择图片,双击查看大图"
type=
"info"
/>
</a-form-item>
</a-form>
</div>
...
...
@@ -33,6 +34,7 @@
style=
"margin: 0 5px"
:class=
"item.id === currentPerson.id ? 'actived' : ''"
@
click=
"handleClick(item)"
@
dblclick=
"handlePreview(item.picture_url)"
>
<el-image
:src=
"item.picture_url"
...
...
@@ -58,6 +60,7 @@
style=
"margin: 0 5px"
:class=
"isSelectedImg(item) ? 'actived' : ''"
@
click=
"handleSelectImg(item)"
@
dblclick=
"handlePreview(formatImgUrl(item.picture_url))"
>
<el-image
:src=
"formatImgUrl(item.picture_url)"
...
...
@@ -92,6 +95,7 @@
<
script
>
import
{
ref
}
from
"vue"
;
import
moment
from
"moment/moment"
;
import
{
preview
}
from
'vue3-image-preview'
;
// import { formatDate } from "@/PublicUtil/PublicUtil";
import
featureApi
from
"@/views/FeatureComparisonVerification/api"
;
import
{
ElMessage
}
from
"element-plus"
;
...
...
@@ -191,6 +195,12 @@ export default {
console
.
log
(
'handleClick'
,
data
)
currentPerson
.
value
=
data
}
const
handlePreview
=
(
url
)
=>
{
console
.
log
(
'handlePreview'
,
url
)
preview
({
images
:
url
,
});
}
const
onCancel
=
()
=>
{
isVisible
.
value
=
false
;
groupList
.
value
=
[]
...
...
@@ -249,6 +259,7 @@ export default {
isSelectedImg
,
handleAddGroup
,
addGroupLoading
,
handlePreview
,
};
},
};
...
...
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