|
|
@@ -95,9 +95,7 @@ export default {
|
|
|
Promise.all([data,layout])
|
|
|
.then((results) => {
|
|
|
console.log('data',data)
|
|
|
- this.printDataRes=data
|
|
|
console.log('layout',layout)
|
|
|
- this.printLayoutRes=layout
|
|
|
|
|
|
// 在这里执行接下来的操作
|
|
|
if(results?.[0]?.code === this.$config.SUCCESS_CODE){
|
|
|
@@ -105,6 +103,8 @@ export default {
|
|
|
let detail =results?.[0]?.data.itemList
|
|
|
let layout =results?.[1]?.data?.list.find(it => it.layoutId == this.$route.query.layout_id)?.layoutData
|
|
|
this.$set(header, 'table', detail)
|
|
|
+ this.printDataRes=header
|
|
|
+ this.printLayoutRes=layout
|
|
|
|
|
|
let printData = {...header}
|
|
|
|
|
|
@@ -130,7 +130,7 @@ export default {
|
|
|
this.excute(this.$service.fileService, `upload?folder=pdf&uuid=${this.$route.query.uuid}`,formData).then(res => {
|
|
|
if (res.code === this.$config.SUCCESS_CODE) {
|
|
|
console.log('upload-res',res)
|
|
|
- this.printLayoutRes=res
|
|
|
+ this.uploadRes=res
|
|
|
}
|
|
|
})
|
|
|
})
|