Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
6
608-pdm-web-5g
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
pdm
608-pdm-web-5g
Commits
1078fd23
Commit
1078fd23
authored
Jul 24, 2024
by
xioln
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
浏览附件接口修改
parent
c0933e0c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
index.vue
src/components/pdf/index.vue
+11
-2
No files found.
src/components/pdf/index.vue
View file @
1078fd23
...
...
@@ -84,6 +84,7 @@ export default {
// // lazy: true
// })
this
.
getFormInfo
()
this
.
getPdf
(
this
.
filesList
[
0
])
},
methods
:
{
getFormInfo
()
{
...
...
@@ -95,7 +96,7 @@ export default {
if
(
item
.
data
[
0
]?.
contentType
)
{
this
.
contentType
=
item
.
data
[
0
].
contentType
this
.
getFileId
()
this
.
getPdf
(
this
.
filesList
[
0
])
//
this.getPdf(this.filesList[0])
}
}
})
...
...
@@ -103,7 +104,15 @@ export default {
})
},
getPdf
(
file
)
{
get
(
'/dfs/fileManager/preview'
,
{
objName
:
file
.
sourceIdType
,
objId
:
file
.
sourceId
,
linkId
:
file
.
id
}).
then
(
res
=>
{
// get('/dfs/fileManager/preview', { objName: file.sourceIdType, objId: file.sourceId, linkId: file.id }).then(res => {
// if (res.items.fileBase64) {
// this.pdfh5 = new Pdfh5(this.$refs.pdfComponent, {
// data: atob(res.items.fileBase64)
// })
// }
// })
get
(
'/ExtAutoTask/previewMakerFile'
,
{
fileId
:
file
.
fileId
}).
then
(
res
=>
{
this
.
convertSuccess
=
true
if
(
res
.
items
.
fileBase64
)
{
this
.
pdfh5
=
new
Pdfh5
(
this
.
$refs
.
pdfComponent
,
{
data
:
atob
(
res
.
items
.
fileBase64
)
...
...
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