Admin
2022-11-16 f59373dccb4afb37e63f4fe655061d067244860c
src/views/specialWorkSystem/workTicket/wdsq/index.vue
@@ -321,7 +321,7 @@
        // 填写表单
        const toApply = () => {
            router.push({
                path: 'apply'
                path: 'zysq'
            });
        };
@@ -468,7 +468,7 @@
        // 导出方法
        const downLoadRecord = async (data: any) => {
            // let res = await workApplyApi().postPrinting(data);
            axios.post(import.meta.env.VITE_API_URL + `/work/apply/printing`,data,{headers:{'Content-Type': 'application/json','Authorization': `${Cookies.get('token')}`,'uid':`${Cookies.get('uid')}`},responseType: 'blob'}).then(res=>{
            axios.post(import.meta.env.VITE_API_URL + `/work/apply/printingPdf`,data,{headers:{'Content-Type': 'application/json','Authorization': `${Cookies.get('token')}`,'uid':`${Cookies.get('uid')}`},responseType: 'blob'}).then(res=>{
                if (res) {
                    const link = document.createElement('a')
                    let blob = new Blob([res.data],{type: 'application/pdf'})