Commit 54f1e674 by hulei

面函显示加载

parent 69ae3f8f
...@@ -498,7 +498,7 @@ export default { ...@@ -498,7 +498,7 @@ export default {
let viewurl = "/#/docpan/show"; let viewurl = "/#/docpan/show";
let XMLdata; let XMLdata;
if (row.Type == 'LET') { if (row.Type == 'LET') {
window.sessionStorage.docXML = '' window.sessionStorage.docTXT = ''
window.sessionStorage.docXML = rtnmsg.data.docimm_xmldocblk; window.sessionStorage.docXML = rtnmsg.data.docimm_xmldocblk;
} }
else if (row.pandsc == "MT799") { else if (row.pandsc == "MT799") {
......
...@@ -498,7 +498,7 @@ export default { ...@@ -498,7 +498,7 @@ export default {
let viewurl = "/#/docpan/show"; let viewurl = "/#/docpan/show";
let XMLdata; let XMLdata;
if (row.Type == 'LET') { if (row.Type == 'LET') {
window.sessionStorage.docXML = '' window.sessionStorage.docTXT = ''
window.sessionStorage.docXML = rtnmsg.data.docimm_xmldocblk; window.sessionStorage.docXML = rtnmsg.data.docimm_xmldocblk;
} }
else if (row.pandsc == "MT799") { else if (row.pandsc == "MT799") {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div> <div>
<div style="height: 800px; overflow: auto"> <div style="height: 800px; overflow: auto">
<embed <embed
v-if="this.model.docXML" v-if="this.model.docXML && pdf"
:src="pdf" :src="pdf"
type="application/pdf" type="application/pdf"
height="100%" height="100%"
...@@ -31,7 +31,7 @@ export default { ...@@ -31,7 +31,7 @@ export default {
data() { data() {
return { return {
model: { docXML: "" }, model: { docXML: "" },
pdf: "data:application/pdf;base64,", pdf: "",
}; };
}, },
created() { created() {
...@@ -49,7 +49,7 @@ export default { ...@@ -49,7 +49,7 @@ export default {
if (this.model.docXML != "") if (this.model.docXML != "")
Api.post("pdf", { xml: this.model.docXML }).then((res) => { Api.post("pdf", { xml: this.model.docXML }).then((res) => {
if (res.respCode == SUCCESS) { if (res.respCode == SUCCESS) {
this.pdf += res.data; this.pdf ="data:application/pdf;base64,"+ res.data;
} }
}); });
}, },
......
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