| | |
| | | }, |
| | | data() { |
| | | return { |
| | | excel: '',//excel文档地址 |
| | | cutAfterWidth:this.$route.params.cutAfterWidth,//裁剪后要减去的宽 |
| | | // cutAfterWidth:0, |
| | | excel:'', |
| | | cutAfterWidth:0, |
| | | croppedImage: null, // 图片 |
| | | }; |
| | | }, |
| | | computed: { |
| | | }, |
| | | created() { |
| | | console.log(this.$route.params.baseOperationType,"看看") |
| | | if(this.$route.params.baseOperationType!=undefined){ |
| | | this.excel=this.$route.params.url |
| | | } |
| | | this.excel=JSON.parse(localStorage.getItem('pdfParams', '[]')).url |
| | | this.cutAfterWidth=JSON.parse(localStorage.getItem('pdfParams', '[]')).cutAfterWidth |
| | | }, |
| | | mounted() { |
| | | }, |
| | |
| | | methods: { |
| | | rendered(){ |
| | | console.log("渲染完成") |
| | | if(this.$route.params.baseOperationType!=undefined){ |
| | | this.excel=this.$route.params.url |
| | | if(JSON.parse(localStorage.getItem('pdfParams', '[]')).url){ |
| | | this.excel=JSON.parse(localStorage.getItem('pdfParams', '[]')).url |
| | | this.cropAndDownload() |
| | | } |
| | | }, |