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
cc0e9642
Commit
cc0e9642
authored
Jun 13, 2024
by
gaia
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/feature/20240301_1544_sale' into release_pre_20240613161600
parents
95170205
910ed931
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
3 deletions
+40
-3
src/views/sale/itemList.vue
src/views/sale/itemList.vue
+27
-2
src/views/sale/saleList.vue
src/views/sale/saleList.vue
+13
-1
No files found.
src/views/sale/itemList.vue
View file @
cc0e9642
...
@@ -35,7 +35,15 @@
...
@@ -35,7 +35,15 @@
<el-table-column
align=
"center"
min-width=
"100px"
prop=
"id"
label=
"商品ID"
/>
<el-table-column
align=
"center"
min-width=
"100px"
prop=
"id"
label=
"商品ID"
/>
<el-table-column
align=
"center"
label=
"封面图"
prop=
"itemImg"
>
<el-table-column
align=
"center"
label=
"封面图"
prop=
"itemImg"
>
<template
slot-scope=
"scope"
>
<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_preview"
>
<el-image
:preview-src-list=
"scope.row.images.split(';')"
:src=
"scope.row.images.split(';')[0]"
class=
"table-td-thumb"
/>
</div>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
...
@@ -95,6 +103,9 @@
...
@@ -95,6 +103,9 @@
:
page
.
sync
=
"
listQuery.page
"
:
page
.
sync
=
"
listQuery.page
"
:
limit
.
sync
=
"
listQuery.limit
"
:
limit
.
sync
=
"
listQuery.limit
"
@
pagination
=
"
getList
"
/>
@
pagination
=
"
getList
"
/>
<
ImagePreview
v
-
if
=
"
isShowPreview
"
:
imglist
=
"
imagesPreviewList
"
/>
<
/div
>
<
/div
>
<
/template
>
<
/template
>
...
@@ -146,7 +157,9 @@ export default {
...
@@ -146,7 +157,9 @@ export default {
finishSettlementDialogShow
:
false
,
finishSettlementDialogShow
:
false
,
// 取消
// 取消
cancelConsignDialogShow
:
false
,
cancelConsignDialogShow
:
false
,
currentSaleId
:
''
isShowPreview
:
false
,
currentSaleId
:
''
,
imagesPreviewList
:
[]
}
}
}
,
}
,
created
()
{
created
()
{
...
@@ -172,6 +185,12 @@ export default {
...
@@ -172,6 +185,12 @@ export default {
}
)
}
)
}
)
}
)
}
,
}
,
handleShowPreview
(
images
)
{
if
(
images
)
{
this
.
imagesPreviewList
=
images
.
split
(
'
;
'
)
this
.
isShowPreview
=
true
}
}
,
handleCreate
()
{
handleCreate
()
{
this
.
$router
.
push
({
path
:
'
/sale/saleAdd
'
}
)
this
.
$router
.
push
({
path
:
'
/sale/saleAdd
'
}
)
}
,
}
,
...
@@ -288,6 +307,12 @@ export default {
...
@@ -288,6 +307,12 @@ export default {
.
page_consignList
{
.
page_consignList
{
padding
:
20
px
;
padding
:
20
px
;
.
image_preview
{
width
:
60
px
;
height
:
60
px
;
align
-
content
:
center
;
justify
-
content
:
center
;
}
.
filter
-
container
{
.
filter
-
container
{
display
:
flex
;
display
:
flex
;
flex
-
direction
:
row
;
flex
-
direction
:
row
;
...
...
src/views/sale/saleList.vue
View file @
cc0e9642
...
@@ -28,7 +28,13 @@
...
@@ -28,7 +28,13 @@
<el-table-column
align=
"center"
min-width=
"100px"
prop=
"id"
label=
"商品ID"
/>
<el-table-column
align=
"center"
min-width=
"100px"
prop=
"id"
label=
"商品ID"
/>
<el-table-column
align=
"center"
label=
"封面图"
prop=
"itemImg"
>
<el-table-column
align=
"center"
label=
"封面图"
prop=
"itemImg"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<img
v-if=
"scope.row.images"
:src=
"scope.row.images.split(';')[0]"
width=
"60px"
height=
"60px"
>
<div
class=
"image_preview"
>
<el-image
:preview-src-list=
"scope.row.images.split(';')"
:src=
"scope.row.images.split(';')[0]"
class=
"table-td-thumb"
/>
</div>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
...
@@ -245,6 +251,12 @@ export default {
...
@@ -245,6 +251,12 @@ export default {
flex
-
direction
:
row
;
flex
-
direction
:
row
;
justify
-
content
:
space
-
between
;
justify
-
content
:
space
-
between
;
}
}
.
image_preview
{
width
:
60
px
;
height
:
60
px
;
align
-
content
:
center
;
justify
-
content
:
center
;
}
}
}
<
/style
>
<
/style
>
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