|
|
@@ -2,6 +2,7 @@
|
|
|
<div>
|
|
|
<div style="margin: 20px;height:100px;overflow:scroll"> <span style="font-weight:bold;color: black">打印数据返回 =></span> {{printDataRes}}</div>
|
|
|
<div style="margin: 20px;height:100px;overflow:scroll"> <span style="font-weight:bold;color: black">模板数据返回 =></span> {{printLayoutRes}}</div>
|
|
|
+ <div style="margin: 20px;height:100px;overflow:scroll"> <span style="font-weight:bold;color: black">err =></span> {{err}}</div>
|
|
|
<!-- <div style="margin: 20px;height:100px;overflow:scroll"> <span style="font-weight:bold;color: black">模板对象返回 =></span> {{hiprintTemplate}}</div>-->
|
|
|
<div style="margin: 20px;height:100px;overflow:scroll"> <span style="font-weight:bold;color: black">BLOB返回 =></span> {{blob}}</div>
|
|
|
<div style="margin: 20px;height:100px;overflow:scroll"> <span style="font-weight:bold;color: black">PDF返回 =></span> {{pdf}}</div>
|
|
|
@@ -26,6 +27,7 @@ export default {
|
|
|
printDataRes:undefined,
|
|
|
printLayoutRes:undefined,
|
|
|
uploadRes:undefined,
|
|
|
+ err:undefined,
|
|
|
hiprintTemplate:undefined,
|
|
|
blob:undefined,
|
|
|
pdf:undefined,
|
|
|
@@ -142,6 +144,8 @@ export default {
|
|
|
console.log('upload-res',res)
|
|
|
}
|
|
|
})
|
|
|
+ }).catch(err => {
|
|
|
+ this.err=err
|
|
|
})
|
|
|
}else {
|
|
|
this.$Message.warning(this.$t('W_006'))
|