Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_admin
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_admin
Commits
3571d643
Commit
3571d643
authored
Jun 13, 2024
by
yaya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:添加预览
parent
107f6044
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
2 deletions
+27
-2
src/views/sale/itemList.vue
src/views/sale/itemList.vue
+27
-2
No files found.
src/views/sale/itemList.vue
View file @
3571d643
...
...
@@ -35,7 +35,15 @@
<el-table-column
align=
"center"
min-width=
"100px"
prop=
"id"
label=
"商品ID"
/>
<el-table-column
align=
"center"
label=
"封面图"
prop=
"itemImg"
>
<template
slot-scope=
"scope"
>
<img
v-if=
"scope.row.images"
:src=
"scope.row.images.split(';')[0]"
width=
"60px"
height=
"60px"
>
<!--
<img
v-if=
"scope.row.images"
:src=
"scope.row.images.split(';')[0]"
width=
"60px"
height=
"60px"
@
click=
"handleShowPreview(scope.row.images)"
>
-->
<div
class=
"image_preivew"
>
<el-image
:preview-src-list=
"scope.row.images.split(';')"
:src=
"scope.row.images.split(';')[0]"
class=
"table-td-thumb"
/>
</div>
</
template
>
</el-table-column>
...
...
@@ -95,6 +103,9 @@
:
page
.
sync
=
"
listQuery.page
"
:
limit
.
sync
=
"
listQuery.limit
"
@
pagination
=
"
getList
"
/>
<
ImagePreview
v
-
if
=
"
isShowPreview
"
:
imglist
=
"
imagesPreviewList
"
/>
<
/div
>
<
/template
>
...
...
@@ -146,7 +157,9 @@ export default {
finishSettlementDialogShow
:
false
,
// 取消
cancelConsignDialogShow
:
false
,
currentSaleId
:
''
isShowPreview
:
false
,
currentSaleId
:
''
,
imagesPreviewList
:
[]
}
}
,
created
()
{
...
...
@@ -172,6 +185,12 @@ export default {
}
)
}
)
}
,
handleShowPreview
(
images
)
{
if
(
images
)
{
this
.
imagesPreviewList
=
images
.
split
(
'
;
'
)
this
.
isShowPreview
=
true
}
}
,
handleCreate
()
{
this
.
$router
.
push
({
path
:
'
/sale/saleAdd
'
}
)
}
,
...
...
@@ -288,6 +307,12 @@ export default {
.
page_consignList
{
padding
:
20
px
;
.
image_preivew
{
width
:
60
px
;
height
:
60
px
;
align
-
content
:
center
;
justify
-
content
:
center
;
}
.
filter
-
container
{
display
:
flex
;
flex
-
direction
:
row
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment