|
@@ -1158,7 +1158,7 @@ async saveExcelInfo() {
|
|
|
if (res.code === 200) {
|
|
|
console.log(res.data,'data');
|
|
|
this.pdfDataUrl = res.data;
|
|
|
- this.saveExcelInfoPdf()
|
|
|
+ this.saveExcelInfoPdfUrL()
|
|
|
|
|
|
|
|
|
} else {
|
|
@@ -1175,15 +1175,15 @@ async saveExcelInfo() {
|
|
|
|
|
|
|
|
|
},
|
|
|
- async saveExcelInfoPdf() {
|
|
|
- const { data: res1 } = await getExcelPdf({
|
|
|
+ async saveExcelInfoPdfUrL() {
|
|
|
+ const { data: res } = await getExcelPdf({
|
|
|
key: this.from.id,
|
|
|
url: this.pdfDataUrl
|
|
|
});
|
|
|
- console.log(res1.data,'res1');
|
|
|
+ console.log(res.data,'res1');
|
|
|
|
|
|
this.$nextTick(() => {
|
|
|
- this.$refs.pdfDrawerExcelRef.show(res1.data,true)
|
|
|
+ this.$refs.pdfDrawerExcelRef.show(res.data,true)
|
|
|
|
|
|
})
|
|
|
},
|