Commit 00fed2b5 authored by jingnan's avatar jingnan 👀

合并产品代码【8741】

parent fa90252b
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
/**
* @Description:下载Pdf
* @author gjn
* @date 2023/11/28
*/
<template>
<div class="downLoadPdf">
<dee-tools :tools="tools" mode="normal" style="flex-direction: row-reverse;margin-bottom: 12px;" />
</div>
</template>
<script>
export default {
name: 'DownLoadPdf',
components: {},
props: {},
data() {
return {
}
},
computed: {
tools() {
const allTools = [
{
name: '下载',
icon: '/icons/components/new/addAffectedData.png',
show: true,
handler: {
click: () => {
this.savePDF()
}
}
}
]
return allTools.filter(el => el.show)
}
},
watch: {},
created() {},
mounted() {},
methods: {
savePDF() {
this.$api.apiDownloadFile(`JobResponseInTest/download/pdf?id=${this.jobResponseInTestData.id}&billType=AirEquipment`).then((res) => {
this.$utils.downLoadFile(res, '机载系统设备验收单.pdf')
})
}
}
}
</script>
<style lang="scss">
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment