Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-app-operator-master
Commits
f20c5eb3
Commit
f20c5eb3
authored
Feb 13, 2023
by
huhaiqing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改图片
parent
4f9db608
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
4 deletions
+35
-4
shippingDetail.vue
src/views/ecw/box/shippingDetail.vue
+35
-4
No files found.
src/views/ecw/box/shippingDetail.vue
View file @
f20c5eb3
...
...
@@ -33,7 +33,15 @@
<div
v-if=
"(type === 'unload_container' || type === 'close_container') && srcStrs"
style=
"marginTop:15px"
>
<h1>
{{
$t
(
'
图片
'
)
}}
</h1>
<ImagePreview
:src=
"srcStrs"
:width=
"146"
:height=
"146"
/>
<!--
<ImagePreview
:src=
"srcStrs"
:width=
"146"
:height=
"146"
/>
-->
<div
style=
"display:flex"
>
<el-image
v-for=
"(srcStr, i) in srcStrs"
:key=
"i"
:src=
"srcStr"
fit=
"cover"
style=
"width:146px;height:146px;margin-right:10px"
:preview-src-list=
"[srcStr]"
>
<div
slot=
"error"
class=
"image-slot"
>
<i
class=
"el-icon-picture-outline"
></i>
</div>
</el-image>
</div>
</div>
<el-dialog
:title=
"dialogConfig.title"
:visible.sync=
"dialogConfig.visible"
fullscreen
:modal-append-to-body=
false
append-to-body
>
...
...
@@ -128,7 +136,7 @@ export default {
title
:
""
,
visible
:
false
,
},
srcStrs
:
""
,
srcStrs
:
[]
,
};
},
created
()
{
...
...
@@ -146,10 +154,12 @@ export default {
const
ldPictures
=
res
.
data
.
cabinetVO
.
ldPictures
?
JSON
.
parse
(
res
.
data
.
cabinetVO
.
ldPictures
)
:
[];
this
.
srcStrs
=
ldPictures
.
map
((
item
)
=>
item
.
url
)
.
join
(
"
,
"
)
;
this
.
srcStrs
=
ldPictures
.
map
((
item
)
=>
item
.
url
);
}
if
(
this
.
type
===
"
unload_container
"
&&
res
.
data
.
cabinetUnloadVO
)
{
this
.
srcStrs
=
res
.
data
.
cabinetUnloadVO
.
ulImgs
??
''
;
this
.
srcStrs
=
res
.
data
.
cabinetUnloadVO
.
ulImgs
?
res
.
data
.
cabinetUnloadVO
.
ulImgs
.
split
(
"
,
"
)
:
[];
}
});
},
...
...
@@ -227,4 +237,25 @@ export default {
</
script
>
<
style
lang=
"scss"
scoped
>
.el-image
{
border-radius
:
5px
;
background-color
:
#ebeef5
;
box-shadow
:
0
0
5px
1px
#ccc
;
::v-deep
.el-image__inner
{
transition
:
all
0
.3s
;
cursor
:
pointer
;
&
:hover
{
transform
:
scale
(
1
.2
);
}
}
::v-deep
.image-slot
{
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
width
:
100%
;
height
:
100%
;
color
:
#909399
;
font-size
:
30px
;
}
}
</
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