| | |
| | | name: "InfoManager", |
| | | data() { |
| | | return { |
| | | recId: '', |
| | | openSearch: false, |
| | | totalUser: 0, |
| | | visibleUser:false, |
| | |
| | | var id = row.id |
| | | |
| | | id = Number(id) |
| | | |
| | | var recordStrId = row.recordId |
| | | var recordId = row.recordId |
| | | this.download('/system/materials/exportBack/'+id+'/'+recordId, { |
| | | |
| | | }, `备考表_${new Date().getTime()}.pdf`) |
| | | }, recordStrId +` 备考表.pdf`) |
| | | }, |
| | | |
| | | /*导出卷内目录*/ |
| | | JuanInfo(row) |
| | | { |
| | | |
| | | var id = row.id |
| | | console.log(row.pageCount) |
| | | if(row.pageCount==null) |
| | |
| | | var recordId = row.recordId |
| | | this.download('/system/materials/exportJuan/'+id, { |
| | | |
| | | }, `卷内目录_${new Date().getTime()}.xls`) |
| | | }, recordId+` 卷内目录.xls`) |
| | | }, |
| | | /*导出案卷封面*/ |
| | | pageInfo(row) |
| | |
| | | var recordId = row.recordId |
| | | this.download('/system/materials/exportPageInfo/'+id+'/'+recordId, { |
| | | |
| | | }, `案卷封面_${new Date().getTime()}.xls`) |
| | | }, recordId+` 案卷封面.xls`) |
| | | }, |
| | | handleInfo(row) |
| | | { |
| | |
| | | const id = row.id || this.ids; |
| | | // alert(id) |
| | | this.recordId = id; |
| | | this.recId = row.recordId |
| | | this.$modal.loading('正在获取Excel文件,请稍候...'); |
| | | |
| | | // 从后端获取Excel文件 |
| | |
| | | |
| | | /** 处理下载按钮点击 */ |
| | | handleDownloadClick() { |
| | | |
| | | if (this.currentExcelUrl) { |
| | | // 获取用户选择的选项 |
| | | const { includeQrCode, selectedAnnotations } = this.excelOptions; |
| | |
| | | link.href = this.currentExcelUrl; |
| | | |
| | | // 构建文件名,包含选项信息 |
| | | let filename = `record_${this.currentExcelId}`; |
| | | if (includeQrCode) filename += '_qr'; |
| | | let filename =this.recId+ ` 预整理`; |
| | | //if (includeQrCode) filename += '_qr'; |
| | | // if (selectedAnnotations.length > 0) { |
| | | // filename += `_anno${selectedAnnotations.join('')}`;x |
| | | // } |
| | | filename += `_${new Date().getTime()}.xls`; |
| | | filename += `.xls`; |
| | | |
| | | link.download = filename; |
| | | |
| | |
| | | const url = URL.createObjectURL(blob); |
| | | const link = document.createElement('a'); |
| | | link.href = url; |
| | | link.download = `record_${id}_${new Date().getTime()}.xls`; |
| | | link.download = `预整理.xls`; |
| | | document.body.appendChild(link); |
| | | link.click(); |
| | | document.body.removeChild(link); |