| | |
| | | inputType: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' |
| | | }, |
| | | entity:{ |
| | | month:getYearAndMonthAndDays() |
| | | month:getYearAndMonthAndDays(), |
| | | name:'', |
| | | departLims:'' |
| | | }, |
| | | entityCopy:{}, |
| | | entityCopy0:{}, |
| | |
| | | let entity = {...this.entity} |
| | | entity.month = entity.month.split('-')[0]+'-'+entity.month.split('-')[1] |
| | | this.outLoading = true |
| | | this.$axios.get(this.$api.auxiliaryOriginalHours.exportOriginalHours,{ |
| | | params:entity, |
| | | this.$axios.post(this.$api.auxiliaryOriginalHours.exportOriginalHours,{ |
| | | ...entity |
| | | // params:entity, |
| | | },{responseType: "blob"}).then(res => { |
| | | this.outLoading = false |
| | | this.$message.success('导出成功') |
| | | const blob = new Blob([res],{ type: 'application/octet-stream' }); |
| | | console.log(blob) |
| | | const url = URL.createObjectURL(blob); |
| | | const link = document.createElement('a'); |
| | | link.href = url; |