Commit 332e784b by 孙杰

pdf显示

parent 442d3c2f
<template>
<div>
<div class="title">面函列表</div>
<div style="height:1000px;width:900px;overflow:auto">
<pre>
{{model.docXML}}
</pre>
<div style="height:800px;overflow:auto">
<embed :src="pdf" type="application/pdf" height="100%" width="100%"/>
</div>
</div>
</template>
<script>
import Api from "~/service/Api"
import Utils from "~/utils"
export default {
data(){
return {
model: {docXML:""},
pdf:"data:application/pdf;base64,"
}
},
mounted() {
this.model.docXML = window.sessionStorage.docXML
Api.post("pdf",{"xml":this.model.docXML}).then(res=>{
if (res.respCode == "AAAAAA") {
this.pdf += res.data
}
})
}
}
</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