设备导出支持按筛选条件导出
- 设备工具明细(management.vue): 一览表导出带上当前筛选条件
- 使用记录(record.vue): 导出带上样品编号/管理编号筛选条件
| | |
| | | // 导出 |
| | | handleDownOne() { |
| | | this.outLoading = true |
| | | exportEquipmentDetails().then(res => { |
| | | exportEquipmentDetails({ ...this.queryParams }).then(res => { |
| | | this.outLoading = false |
| | | const blob = new Blob([res], { type: 'application/octet-stream' }); |
| | | this.$download.saveAs(blob, '设备仪器一览表.doc') |
| | |
| | | this.outLoading = true |
| | | exportUseRecord({ |
| | | deviceId: this.clickNodeVal.value, |
| | | sampleCode: this.search.sampleCode, |
| | | managementNumber: this.search.managementNumber, |
| | | exportDate: this.exportDate |
| | | }).then(res => { |
| | | this.outLoading = false |