Commit 332e784b by 孙杰

pdf显示

parent 442d3c2f
<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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment