import{b as d}from"./eleVendor-bc05bc4d-1785478469326v=1.0.0.js";import{i as n}from"./index-5a47c360-1785478469326v=1.0.0.js";const b=async(e,a,r={},l=!0,u=".xlsx")=>{l&&d({title:"\u6E29\u99A8\u63D0\u793A",message:"\u5982\u679C\u6570\u636E\u5E9E\u5927\u4F1A\u5BFC\u81F4\u4E0B\u8F7D\u7F13\u6162\u54E6\uFF0C\u8BF7\u60A8\u8010\u5FC3\u7B49\u5F85\uFF01",type:"info",duration:3e3});try{let o="";switch(u){case".xlsx":o="application/vnd.ms-excel";break;case".csv":o="application/vnd.ms-excel';charset=utf-8";break}const s=await e(r),i=new Blob([s],{type:o}),t=document.createElement("a"),c=window.URL.createObjectURL(i);t.href=c,t.download=`${a}${u}`,document.body.appendChild(t),t.click(),document.body.removeChild(t),window.URL.revokeObjectURL(c)}catch{}},w=e=>n.post("/javaPpoEventactivity/synSum/healthSumDownload",e,{headers:{noLoading:!0},responseType:"blob"}),v=e=>n.post("/javaPpoEventactivity/synSum/exerciseSumDownload",e,{headers:{noLoading:!0},responseType:"blob"}),y=e=>n.post("/javaPpoEventactivity/synSum/venueSumDownload",e,{headers:{noLoading:!0},responseType:"blob"});export{w as a,y as b,v as g,b as u};
