From 7e40205d7f40dcfaad7f4c81bb13329983d3730b Mon Sep 17 00:00:00 2001 From: Admin <978517621@qq.com> Date: 星期一, 24 十月 2022 13:56:45 +0800 Subject: [PATCH] 修改 --- src/views/specialWorkSystem/workTicket/wdsqjl/index.vue | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/specialWorkSystem/workTicket/wdsqjl/index.vue b/src/views/specialWorkSystem/workTicket/wdsqjl/index.vue index 2ffbcfd..796dd3e 100644 --- a/src/views/specialWorkSystem/workTicket/wdsqjl/index.vue +++ b/src/views/specialWorkSystem/workTicket/wdsqjl/index.vue @@ -342,7 +342,7 @@ // 填写表单 const toApply = () => { router.push({ - path: 'apply' + path: 'zysq' }); }; @@ -442,7 +442,7 @@ // 查询进度方法 const getStatus = async (data: any) => { - let res = await workApplyApi().getStatus(data); + let res = await workApplyApi().getAllStatus(data); if (res.data.code === '200') { state.approveInfo = JSON.parse(JSON.stringify(res.data.data)); state.approveInfo.operators = Array.from(state.approveInfo.operators, ({ operatorUname }) => operatorUname); @@ -473,10 +473,10 @@ 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=>{ if (res) { const link = document.createElement('a') - let blob = new Blob([res.data],{type: 'application/pdf'}) + let blob = new Blob([res.data],{type: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'}) link.style.display = "none"; link.href = URL.createObjectURL(blob); // 创建URL - link.setAttribute("download", state.downLoadName + "作业证.pdf"); + link.setAttribute("download", state.downLoadName + "作业证.docx"); document.body.appendChild(link); link.click(); document.body.removeChild(link); -- Gitblit v1.9.2