12 |
- "use strict";(self["webpackChunkscproject"]=self["webpackChunkscproject"]||[]).push([[932],{53932:function(e,t,n){n.d(t,{QC:function(){return f},Ws:function(){return u},oz:function(){return p}});n(23767),n(8585),n(68696),n(57658);var o=n(99611),a=n.n(o),c=n(41401),s=n.n(c),i=n(24613),r=n(66154),d=n(750),l=n.n(d);function u(e){let t="./file/2023年二级学院特色创客空间建设项目申报书模板 (2).docx";const n=new XMLHttpRequest;n.open("GET",t,!0),n.responseType="blob",n.onload=function(t){const o=n.response,c=new FileReader;c.readAsArrayBuffer(o),c.onload=function(t){const n=c.result,o=new Uint8Array(n),i=new(s())(o),r=(new(a())).loadZip(i);let d={applicationDate:e["applicationDate"],ing:"待建设"==e["stateName"]?"√":"□",ed:"已建设"==e["stateName"]?"√":"□",projectName:e["projectName"],college:e["collegeName"],begin_at:e["begin_at"],plannedEnd_at:e["plannedEnd_at"],pro_leader:e["pro_leader"],lead_leader:e["lead_leader"],people:e["teacher"].length+e["student"].length,teacherNum:e["teacher"].length,studentNum:e["student"].length,teacher:e["teacher"],student:e["student"],brief:e["brief"],Construction:e["Construction"],ProjectBasis:e["ProjectBasis"],development:e["development"],studio:e["studio"],studentTeam:e["studentTeam"],studentActivities:e["studentActivities"],Transforming:e["Transforming"],condition:e["condition"],fund:[e["fund"]]};r.setData(d),r.render();const l=r.getZip().generate({type:"blob",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"});let u=document.createElement("a");u.download="附件3:2023年二级学院特色创客空间建设项目申报书模板(2).docx",u.style.display="none";let p=new Blob([l]);u.href=URL.createObjectURL(p),document.body.appendChild(u),u.click(),document.body.removeChild(u)}},n.send()}function p(e){l().getBinaryContent("./file/2023年学生创客项目申报书模板.docx",((t,n)=>{if(t)return console.log(t);let o=new(s())(n),c=(new(a())).loadZip(o);c.setData({nowTime:(0,i.YZ)(1),projectName:e.projectName,ing:"ed917c55-f51d-11ed-a3f6-509a4c5b67cf"==e.radio?"√":"□",ed:"f3068e26-f51d-11ed-a3f6-509a4c5b67cf"==e.radio?"√":"□",mone:e.checkList.includes("1")?"√":"□",mtwo:e.checkList.includes("2")?"√":"□",mthree:e.checkList.includes("3")?"√":"□",mfour:e.checkList.includes("4")?"√":"□",sone:e.schoolRadio.includes("1")?"√":"□",stwo:e.schoolRadio.includes("2")?"√":"□",sthree:e.schoolRadio.includes("3")?"√":"□",sfour:e.schoolRadio.includes("4")?"√":"□",stu:e.applyParsonRadio.includes("1")?"√":"□",leg:e.applyParsonRadio.includes("2")?"√":"□",appPeason:e.applyParsonName,school:e.dp,tel:e.tel,begin_at:e.btime,plannedEnd_at:e.etime,allnum:e.studentS.length+e.teacherS.length,snum:e.studentS.length,tnum:e.teacherS.length,student:e.studentS,teacher:e.teacherS,brief:e.brief,back:e.introduce.back,innovate:e.introduce.innovate,path:e.introduce.path,scene:e.introduce.scene,worth:e.introduce.worth,team:e.introduce.team,cost:e.introduce.cost,expectResults:e.introduce.expectResults,expectResultsTeacher:e.introduce.expectResultsTeacher,expectConversion:e.introduce.expectConversion,plan:e.introduce.plan,total:1*e.fund.facility+1*e.fund.materials+1*e.fund.process+1*e.fund.assist+1*e.fund.authenticate+1*e.fund.match+1*e.fund.activity+1*e.fund.affair,facility:e.fund.facility,materials:e.fund.materials,process:e.fund.process,assist:e.fund.assist,authenticate:e.fund.authenticate,match:e.fund.match,activity:e.fund.activity,affair:e.fund.affair}),c.render();let d=c.getZip().generate({type:"blob",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"});(0,r.saveAs)(d,"2023年学生创客项目申报书.docx")}))}function f(e){let t="./file/附件 2:创客专项资金项目申请表创客活动模板.docx";const n=new XMLHttpRequest;n.open("GET",t,!0),n.responseType="blob",n.onload=function(t){const o=n.response,c=new FileReader;c.readAsArrayBuffer(o),c.onload=function(t){const n=c.result,o=new Uint8Array(n),r=new(s())(o),d=(new(a())).loadZip(r);e["chapters"]=JSON.parse(e["chapters"]),e["begin_at"]=(0,i.nK)(e["begin_at"]),e["course_teacher"]=JSON.parse(e["course_teacher"]);let l={activityName:e["title"],money:e["money"],pro_leader:e["pro_leader"],class:e["className"],phone:e["phone"],activityTime:e["begin_at"],studentNum:e["students"],teacher:e["course_teacher"],plan:e["chapters"][0].replace(/<[^>]+>/g,""),Expectations:e["chapters"][1].replace(/<[^>]+>/g,""),EventAudience:e["chapters"][2].replace(/<[^>]+>/g,""),fund:e["chapters"][3].replace(/<[^>]+>/g,"")};d.setData(l),d.render();const u=d.getZip().generate({type:"blob",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"});let p=document.createElement("a");p.download="附件 2:创客专项资金项目申请表(创客活动).docx",p.style.display="none";let f=new Blob([u]);p.href=URL.createObjectURL(f),document.body.appendChild(p),p.click(),document.body.removeChild(p)}},n.send()}}}]);
- //# sourceMappingURL=932.7128dfe6.js.map
|