Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
6ae8b9a7
Commit
6ae8b9a7
authored
Sep 05, 2021
by
季圣华
Browse files
附件优化
parent
adab6469
Changes
2
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/components/jeecg/JUpload.vue
View file @
6ae8b9a7
...
...
@@ -312,7 +312,9 @@
console
.
log
(
file
)
},
handlePreview
(
file
){
if
(
this
.
fileType
===
FILE_TYPE_IMG
){
let
postfix
=
file
.
name
.
substring
(
file
.
name
.
indexOf
(
'
.
'
))
if
(
postfix
===
'
.gif
'
||
postfix
===
'
.jpg
'
||
postfix
===
'
.jpeg
'
||
postfix
===
'
.png
'
||
postfix
===
'
.GIF
'
||
postfix
===
'
.JPG
'
||
postfix
===
'
.JPEG
'
||
postfix
===
'
.PNG
'
)
{
this
.
previewImage
=
file
.
url
||
file
.
thumbUrl
;
this
.
previewVisible
=
true
;
}
else
{
...
...
jshERP-web/src/views/bill/dialog/BillDetail.vue
View file @
6ae8b9a7
...
...
@@ -1104,7 +1104,8 @@
this
.
fileList
=
[]
for
(
let
i
=
0
;
i
<
fileArr
.
length
;
i
++
)
{
let
fileInfo
=
{}
fileInfo
.
name
=
fileArr
[
i
].
replace
(
"
bill/
"
,
""
)
let
shortName
=
fileArr
[
i
].
replace
(
"
bill/
"
,
""
)
fileInfo
.
name
=
shortName
.
substring
(
shortName
.
indexOf
(
'
/
'
)
+
1
)
fileInfo
.
url
=
window
.
_CONFIG
[
'
domianURL
'
]
+
'
/systemConfig/static/
'
+
fileArr
[
i
]
this
.
fileList
.
push
(
fileInfo
)
}
...
...
Write
Preview
Supports
Markdown
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