Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
X
xxx_phase2_web
Project overview
Project overview
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
夏敏伟
xxx_phase2_web
Commits
fe9f1776
Commit
fe9f1776
authored
Jul 17, 2024
by
高飞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
将BMP单独拉出展示
parent
324c7b51
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
3 deletions
+15
-3
src/view/flfg/znfx.vue
src/view/flfg/znfx.vue
+5
-1
src/view/flfg/znfxZfcl.vue
src/view/flfg/znfxZfcl.vue
+5
-1
src/view/fzjc/znfx.vue
src/view/fzjc/znfx.vue
+5
-1
No files found.
src/view/flfg/znfx.vue
View file @
fe9f1776
...
@@ -548,7 +548,7 @@ export default {
...
@@ -548,7 +548,7 @@ export default {
// item.imgUrl = 'api/rest/file/viewPicture/DocumentPicture?objectName=' + item.file.uuid + '&' + new Date().getTime();
// item.imgUrl = 'api/rest/file/viewPicture/DocumentPicture?objectName=' + item.file.uuid + '&' + new Date().getTime();
// }
// }
if
(
img_type
)
{
if
(
img_type
)
{
if
(
item
.
file
.
type
.
toUpperCase
()
==
'
BMP
'
||
item
.
file
.
type
.
toUpperCase
()
==
"
JPEG
"
||
item
.
file
.
type
.
toUpperCase
()
==
"
JPG
"
||
item
.
file
.
type
.
toUpperCase
()
==
"
PNG
"
)
{
if
(
item
.
file
.
type
.
toUpperCase
()
==
"
JPEG
"
||
item
.
file
.
type
.
toUpperCase
()
==
"
JPG
"
||
item
.
file
.
type
.
toUpperCase
()
==
"
PNG
"
)
{
item
.
imgUrl
=
'
api/rest/file/viewPicture/Document?objectName=
'
+
item
.
file
.
uuid
+
'
&
'
+
new
Date
().
getTime
();
item
.
imgUrl
=
'
api/rest/file/viewPicture/Document?objectName=
'
+
item
.
file
.
uuid
+
'
&
'
+
new
Date
().
getTime
();
}
else
if
(
item
.
file
.
type
.
toUpperCase
()
==
'
PSD
'
){
}
else
if
(
item
.
file
.
type
.
toUpperCase
()
==
'
PSD
'
){
PSD
.
fromURL
(
item
.
imgUrl
).
then
(
function
(
psd
)
{
PSD
.
fromURL
(
item
.
imgUrl
).
then
(
function
(
psd
)
{
...
@@ -563,6 +563,10 @@ export default {
...
@@ -563,6 +563,10 @@ export default {
item
.
imgUrl
=
tiff
.
toDataURL
();
item
.
imgUrl
=
tiff
.
toDataURL
();
};
};
xhr
.
send
();
xhr
.
send
();
}
else
if
(
item
.
file
.
type
.
toUpperCase
()
==
'
BMP
'
){
_this
.
convertBMPtoPNG
(
item
.
imgUrl
,
function
(
pngImage
)
{
item
.
imgUrl
=
pngImage
;
});
}
}
}
}
})
})
...
...
src/view/flfg/znfxZfcl.vue
View file @
fe9f1776
...
@@ -548,7 +548,7 @@ export default {
...
@@ -548,7 +548,7 @@ export default {
// item.imgUrl = 'api/rest/file/viewPicture/DocumentPicture?objectName=' + item.file.uuid + '&' + new Date().getTime();
// item.imgUrl = 'api/rest/file/viewPicture/DocumentPicture?objectName=' + item.file.uuid + '&' + new Date().getTime();
// }
// }
if
(
img_type
)
{
if
(
img_type
)
{
if
(
item
.
file
.
type
.
toUpperCase
()
==
'
BMP
'
||
item
.
file
.
type
.
toUpperCase
()
==
"
JPEG
"
||
item
.
file
.
type
.
toUpperCase
()
==
"
JPG
"
||
item
.
file
.
type
.
toUpperCase
()
==
"
PNG
"
)
{
if
(
item
.
file
.
type
.
toUpperCase
()
==
"
JPEG
"
||
item
.
file
.
type
.
toUpperCase
()
==
"
JPG
"
||
item
.
file
.
type
.
toUpperCase
()
==
"
PNG
"
)
{
item
.
imgUrl
=
'
api/rest/file/viewPicture/Document?objectName=
'
+
item
.
file
.
uuid
+
'
&
'
+
new
Date
().
getTime
();
item
.
imgUrl
=
'
api/rest/file/viewPicture/Document?objectName=
'
+
item
.
file
.
uuid
+
'
&
'
+
new
Date
().
getTime
();
}
else
if
(
item
.
file
.
type
.
toUpperCase
()
==
'
PSD
'
){
}
else
if
(
item
.
file
.
type
.
toUpperCase
()
==
'
PSD
'
){
PSD
.
fromURL
(
item
.
imgUrl
).
then
(
function
(
psd
)
{
PSD
.
fromURL
(
item
.
imgUrl
).
then
(
function
(
psd
)
{
...
@@ -563,6 +563,10 @@ export default {
...
@@ -563,6 +563,10 @@ export default {
item
.
imgUrl
=
tiff
.
toDataURL
();
item
.
imgUrl
=
tiff
.
toDataURL
();
};
};
xhr
.
send
();
xhr
.
send
();
}
else
if
(
item
.
file
.
type
.
toUpperCase
()
==
'
BMP
'
){
_this
.
convertBMPtoPNG
(
item
.
imgUrl
,
function
(
pngImage
)
{
item
.
imgUrl
=
pngImage
;
});
}
}
}
}
})
})
...
...
src/view/fzjc/znfx.vue
View file @
fe9f1776
...
@@ -600,7 +600,7 @@ export default {
...
@@ -600,7 +600,7 @@ export default {
// item.imgUrl = 'api/rest/file/viewPicture/DocumentPicture?objectName=' + item.file.uuid + '&' + new Date().getTime();
// item.imgUrl = 'api/rest/file/viewPicture/DocumentPicture?objectName=' + item.file.uuid + '&' + new Date().getTime();
// }
// }
if
(
img_type
)
{
if
(
img_type
)
{
if
(
item
.
file
.
type
.
toUpperCase
()
==
'
BMP
'
||
item
.
file
.
type
.
toUpperCase
()
==
"
JPEG
"
||
item
.
file
.
type
.
toUpperCase
()
==
"
JPG
"
||
item
.
file
.
type
.
toUpperCase
()
==
"
PNG
"
)
{
if
(
item
.
file
.
type
.
toUpperCase
()
==
"
JPEG
"
||
item
.
file
.
type
.
toUpperCase
()
==
"
JPG
"
||
item
.
file
.
type
.
toUpperCase
()
==
"
PNG
"
)
{
item
.
imgUrl
=
'
api/rest/file/viewPicture/Document?objectName=
'
+
item
.
file
.
uuid
+
'
&
'
+
new
Date
().
getTime
();
item
.
imgUrl
=
'
api/rest/file/viewPicture/Document?objectName=
'
+
item
.
file
.
uuid
+
'
&
'
+
new
Date
().
getTime
();
}
else
if
(
item
.
file
.
type
.
toUpperCase
()
==
'
PSD
'
){
}
else
if
(
item
.
file
.
type
.
toUpperCase
()
==
'
PSD
'
){
PSD
.
fromURL
(
item
.
imgUrl
).
then
(
function
(
psd
)
{
PSD
.
fromURL
(
item
.
imgUrl
).
then
(
function
(
psd
)
{
...
@@ -615,6 +615,10 @@ export default {
...
@@ -615,6 +615,10 @@ export default {
item
.
imgUrl
=
tiff
.
toDataURL
();
item
.
imgUrl
=
tiff
.
toDataURL
();
};
};
xhr
.
send
();
xhr
.
send
();
}
else
if
(
item
.
file
.
type
.
toUpperCase
()
==
'
BMP
'
){
_this
.
convertBMPtoPNG
(
item
.
imgUrl
,
function
(
pngImage
)
{
item
.
imgUrl
=
pngImage
;
});
}
}
}
}
})
})
...
...
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