Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vue-gjjs
Overview
Overview
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
zhouqian
vue-gjjs
Commits
332e784b
Commit
332e784b
authored
Jul 07, 2021
by
孙杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pdf显示
parent
442d3c2f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
Show.vue
src/views/Docpan/Show.vue
+9
-5
No files found.
src/views/Docpan/Show.vue
View file @
332e784b
<
template
>
<
template
>
<div>
<div>
<div
class=
"title"
>
面函列表
</div>
<div
class=
"title"
>
面函列表
</div>
<div
style=
"height:1000px;width:900px;overflow:auto"
>
<div
style=
"height:800px;overflow:auto"
>
<pre>
<embed
:src=
"pdf"
type=
"application/pdf"
height=
"100%"
width=
"100%"
/>
{{
model
.
docXML
}}
</pre>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
Api
from
"~/service/Api"
import
Api
from
"~/service/Api"
import
Utils
from
"~/utils"
export
default
{
export
default
{
data
(){
data
(){
return
{
return
{
model
:
{
docXML
:
""
},
model
:
{
docXML
:
""
},
pdf
:
"data:application/pdf;base64,"
}
}
},
},
mounted
()
{
mounted
()
{
this
.
model
.
docXML
=
window
.
sessionStorage
.
docXML
this
.
model
.
docXML
=
window
.
sessionStorage
.
docXML
Api
.
post
(
"pdf"
,{
"xml"
:
this
.
model
.
docXML
}).
then
(
res
=>
{
if
(
res
.
respCode
==
"AAAAAA"
)
{
this
.
pdf
+=
res
.
data
}
})
}
}
}
}
</
script
>
</
script
>
...
...
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