Commit 54f1e674 by hulei

面函显示加载

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