Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
frontend-h5
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
songrui
frontend-h5
Commits
822f5ddd
Commit
822f5ddd
authored
Sep 09, 2024
by
gengchunlei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
慢综 医生端 图片上传bug修复
parent
60c14dac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
GeneralFUForm.vue
src/doctor/followUp/generalFU/form/GeneralFUForm.vue
+4
-4
No files found.
src/doctor/followUp/generalFU/form/GeneralFUForm.vue
View file @
822f5ddd
...
...
@@ -337,7 +337,7 @@ export default {
let
input
=
document
.
getElementById
(
'imgId'
)
let
file
=
input
.
files
let
newFile
=
Array
.
from
(
file
)
let
maxIndexF
=
Math
.
max
(...
this
.
imgList
.
map
(
item
=>
item
.
indexF
))
let
maxIndexF
=
this
.
imgList
.
length
?
Math
.
max
(...
this
.
imgList2
.
map
(
item
=>
item
.
indexF
))
:
0
newFile
.
forEach
((
item
,
index
)
=>
{
item
[
'indexF'
]
=
maxIndexF
+
index
+
1
item
[
'trueDownloadUrl'
]
=
window
.
URL
.
createObjectURL
(
item
)
...
...
@@ -345,7 +345,7 @@ export default {
if
(
item
.
type
==
'application/pdf'
)
{
item
[
'imgFlag'
]
=
'pdf'
}
if
(
item
.
type
==
'image/jpeg'
||
item
.
type
==
'image/png'
)
{
if
(
item
.
type
==
'image/jpeg'
||
item
.
type
==
'image/png'
||
'image/gif'
||
'image/webp'
)
{
item
[
'imgFlag'
]
=
'img'
}
})
...
...
@@ -356,7 +356,7 @@ export default {
let
input
=
document
.
getElementById
(
'imgId2'
)
let
file
=
input
.
files
let
newFile
=
Array
.
from
(
file
)
let
maxIndexF
=
Math
.
max
(...
this
.
imgList2
.
map
(
item
=>
item
.
indexF
))
let
maxIndexF
=
this
.
imgList2
.
length
?
Math
.
max
(...
this
.
imgList2
.
map
(
item
=>
item
.
indexF
))
:
0
newFile
.
forEach
((
item
,
index
)
=>
{
item
[
'indexF'
]
=
maxIndexF
+
index
+
1
item
[
'trueDownloadUrl'
]
=
window
.
URL
.
createObjectURL
(
item
)
...
...
@@ -364,7 +364,7 @@ export default {
if
(
item
.
type
==
'application/pdf'
)
{
item
[
'imgFlag'
]
=
'pdf'
}
if
(
item
.
type
==
'image/jpeg'
||
item
.
type
==
'image/png'
)
{
if
(
item
.
type
==
'image/jpeg'
||
item
.
type
==
'image/png'
||
'image/gif'
||
'image/webp'
)
{
item
[
'imgFlag'
]
=
'img'
}
})
...
...
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