|
|
|
@ -20,7 +20,7 @@ |
|
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="260"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<el-button type="text" @click="jlDetail(scope.row)"> 查看简历 </el-button> |
|
|
|
|
<el-button type="text"> 下载简历 </el-button> |
|
|
|
|
<el-button type="text" @click="downLj(scope.row)"> 下载简历 </el-button> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
</el-table> |
|
|
|
@ -39,7 +39,8 @@ |
|
|
|
|
</template> |
|
|
|
|
<script> |
|
|
|
|
import { mapGetters } from 'vuex' |
|
|
|
|
import { jobHuntDetail } from '@/api/job' |
|
|
|
|
import { jobHuntDetail, downloadPdf } from '@/api/job' |
|
|
|
|
import { saveAs } from 'file-saver' |
|
|
|
|
export default { |
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
@ -80,6 +81,12 @@ export default { |
|
|
|
|
backlist() { |
|
|
|
|
this.$router.push('/console/jobM') |
|
|
|
|
}, |
|
|
|
|
downLj(row) { |
|
|
|
|
downloadPdf(row.user_id).then((res) => { |
|
|
|
|
const blob = new Blob([res]) |
|
|
|
|
saveAs(blob, row.nick_name + '简历.pdf') |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
} |
|
|
|
|
</script> |
|
|
|
|