| | |
| | | let currentInsItem = null; |
| | | // 接收到主线程处理逻辑的消息 |
| | | self.onmessage = function (event) { |
| | | console.log(2222, event); |
| | | // 保存主线程传过来的值 |
| | | const data = JSON.parse(event.data); |
| | | if (currentTable != data.currentTable) { |
| | |
| | | methods: { |
| | | templateWrite() { |
| | | var option = {}; |
| | | console.log(2222, this.data); |
| | | if (this.data != null && this.data != "") { |
| | | option = JSON.parse(this.data); |
| | | console.log(11111, option); |
| | | } else { |
| | | let rowlen = {}; |
| | | let columnlen = {}; |
| | |
| | | if (state) { |
| | | this.imgUrl = this.fileUrl.replaceAll('word', 'img') |
| | | } |
| | | console.log(11111, this.imgUrl) |
| | | return state; |
| | | }, |
| | | isPdf() { |
| | |
| | | // 下载报告 |
| | | download(row) { |
| | | let url = row.urlS ? row.urlS : row.url; |
| | | if (url) { |
| | | this.$download.saveAs(url, row.entrustCode); |
| | | if(url){ |
| | | url = url.split('.')[0]+'.pdf' |
| | | const link = document.createElement('a'); |
| | | link.href = this.javaApi + url; |
| | | link.target = '_blank'; |
| | | document.body.appendChild(link); |
| | | link.click(); |
| | | } |
| | | }, |
| | | // 撤销 |