12 |
- "use strict";(self["webpackChunkscproject"]=self["webpackChunkscproject"]||[]).push([[3932],{53932:function(e,t,n){n.d(t,{QC:function(){return m},T_:function(){return g},Ws:function(){return d},oz:function(){return u}});n(23767),n(8585),n(68696),n(57658);var a=n(99611),c=n.n(a),o=n(41401),r=n.n(o),i=n(24613),l=n(66154),s=n(750),p=n.n(s);function d(e){let t="./file/2023年二级学院特色创客空间建设项目申报书模板 (2).docx";const n=new XMLHttpRequest;n.open("GET",t,!0),n.responseType="blob",n.onload=function(t){const a=n.response,o=new FileReader;o.readAsArrayBuffer(a),o.onload=function(t){const n=o.result,a=new Uint8Array(n),i=new(r())(a),l=(new(c())).loadZip(i);let s={applicationDate:e["applicationDate"],ing:"待建设"==e["stateName"]?"√":"□",ed:"已建设"==e["stateName"]?"√":"□",projectName:e["projectName"],college:e["collegeName"],begin_at:e["begin_at"].split(" ")[0],plannedEnd_at:e["plannedEnd_at"].split(" ")[0],pro_leader:e["pro_leader"],lead_leader:e["lead_leader"],people:e["teacher"].filter((e=>""!=e.name)).length+e["student"].filter((e=>""!=e.name)).length,teacherNum:e["teacher"].filter((e=>""!=e.name)).length,studentNum:e["student"].filter((e=>""!=e.name)).length,teacher:e["teacher"],student:e["student"],brief:e["brief"],Construction:e["Construction"].replace(/(<img src=")([^"]+)(" style="max-width:100%;")\/>/g,"(图片链接:$2)").replace(/<\/?.+?\/?>/g,"").replace(/ /gi," "),ProjectBasis:e["ProjectBasis"].replace(/(<img src=")([^"]+)(" style="max-width:100%;")\/>/g,"(图片链接:$2)").replace(/<\/?.+?\/?>/g,"").replace(/ /gi," "),development:e["development"].replace(/(<img src=")([^"]+)(" style="max-width:100%;")\/>/g,"(图片链接:$2)").replace(/<\/?.+?\/?>/g,"").replace(/ /gi," "),studio:e["studio"].replace(/(<img src=")([^"]+)(" style="max-width:100%;")\/>/g,"(图片链接:$2)").replace(/<\/?.+?\/?>/g,"").replace(/ /gi," "),studentTeam:e["studentTeam"].replace(/(<img src=")([^"]+)(" style="max-width:100%;")\/>/g,"(图片链接:$2)").replace(/<\/?.+?\/?>/g,"").replace(/ /gi," "),studentActivities:e["studentActivities"].replace(/(<img src=")([^"]+)(" style="max-width:100%;")\/>/g,"(图片链接:$2)").replace(/<\/?.+?\/?>/g,"").replace(/ /gi," "),Transforming:e["Transforming"].replace(/(<img src=")([^"]+)(" style="max-width:100%;")\/>/g,"(图片链接:$2)").replace(/<\/?.+?\/?>/g,"").replace(/ /gi," "),condition:e["condition"].replace(/(<img src=")([^"]+)(" style="max-width:100%;")\/>/g,"(图片链接:$2)").replace(/<\/?.+?\/?>/g,"").replace(/ /gi," "),fund:[e["fund"]]};l.setData(s),l.render();const p=l.getZip().generate({type:"blob",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"});let d=document.createElement("a");d.download="附件3:2023年二级学院特色创客空间建设项目申报书模板(2).docx",d.style.display="none";let u=new Blob([p]);d.href=URL.createObjectURL(u),document.body.appendChild(d),d.click(),document.body.removeChild(d)}},n.send()}function u(e){p().getBinaryContent("./file/2023年学生创客项目申报书模板.docx",((t,n)=>{if(t)return console.log(t);let a=new(r())(n),o=(new(c())).loadZip(a);o.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.replace(/<\/?.+?\/?>/g,"").replace(/ /gi," "),innovate:e.introduce.innovate.replace(/<\/?.+?\/?>/g,"").replace(/ /gi," "),path:e.introduce.path.replace(/<\/?.+?\/?>/g,"").replace(/ /gi," "),scene:e.introduce.scene.replace(/<\/?.+?\/?>/g,"").replace(/ /gi," "),worth:e.introduce.worth.replace(/<\/?.+?\/?>/g,"").replace(/ /gi," "),team:e.introduce.team.replace(/<\/?.+?\/?>/g,"").replace(/ /gi," "),cost:e.introduce.cost.replace(/<\/?.+?\/?>/g,"").replace(/ /gi," "),expectResults:e.introduce.expectResults.replace(/<\/?.+?\/?>/g,"").replace(/ /gi," "),expectResultsTeacher:e.introduce.expectResultsTeacher.replace(/<\/?.+?\/?>/g,"").replace(/ /gi," "),expectConversion:e.introduce.expectConversion.replace(/<\/?.+?\/?>/g,"").replace(/ /gi," "),plan:e.introduce.plan.replace(/<\/?.+?\/?>/g,"").replace(/ /gi," "),total:1*e.fund.device+1*e.fund.Material+1*e.fund.processing+1*e.fund.Collaboration+1*e.fund.APPRAISAL+1*e.fund.entery+1*e.fund.activities+1*e.fund.Transaction,facility:e.fund.device,materials:e.fund.Material,process:e.fund.processing,assist:e.fund.Collaboration,authenticate:e.fund.APPRAISAL,match:e.fund.entery,activity:e.fund.activities,affair:e.fund.Transaction}),o.render();let s=o.getZip().generate({type:"blob",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"});(0,l.saveAs)(s,"2023年学生创客项目申报书.docx")}))}function m(e){let t="./file/附件 2:创客专项资金项目申请表创客活动模板.docx";const n=new XMLHttpRequest;n.open("GET",t,!0),n.responseType="blob",n.onload=function(t){const a=n.response,o=new FileReader;o.readAsArrayBuffer(a),o.onload=function(t){const n=o.result,a=new Uint8Array(n),l=new(r())(a),s=(new(c())).loadZip(l);e["chapters"]=JSON.parse(e["chapters"]),e["begin_at"]=(0,i.nK)(e["begin_at"]),e["course_teacher"]=JSON.parse(e["course_teacher"]);let p={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,"")};s.setData(p),s.render();const d=s.getZip().generate({type:"blob",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"});let u=document.createElement("a");u.download="附件 2:创客专项资金项目申请表(创客活动).docx",u.style.display="none";let m=new Blob([d]);u.href=URL.createObjectURL(m),document.body.appendChild(u),u.click(),document.body.removeChild(u)}},n.send()}function g(e,t){let n="./file/附件 2:创客专项资金项目申请表(创客活动、个人创客)模板.docx";const a=new XMLHttpRequest;a.open("GET",n,!0),a.responseType="blob",a.onload=function(n){const o=a.response,i=new FileReader;i.readAsArrayBuffer(o),i.onload=function(n){const a=i.result,o=new Uint8Array(a),l=new(r())(o),s=(new(c())).loadZip(l);let p={...e,total:t};p["MP1"]=p["expenditureMothPlan"][0],p["MP2"]=p["expenditureMothPlan"][1],p["MP3"]=p["expenditureMothPlan"][2],p["MP4"]=p["expenditureMothPlan"][3],p["MP5"]=p["expenditureMothPlan"][4],p["MP6"]=p["expenditureMothPlan"][5],p["MP7"]=p["expenditureMothPlan"][6],p["MP8"]=p["expenditureMothPlan"][7],p["MP9"]=p["expenditureMothPlan"][8],p["MP10"]=p["expenditureMothPlan"][9],p["MP11"]=p["expenditureMothPlan"][10],p["MP12"]=p["expenditureMothPlan"][11],p["beTime"]=p["activityTime"][0].split(" ")[0],p["edTime"]=p["activityTime"][1].split(" ")[0],p["device"]=p["fund"]["device"],p["Material"]=p["fund"]["Material"],p["processing"]=p["fund"]["processing"],p["Collaboration"]=p["fund"]["Collaboration"],p["APPRAISAL"]=p["fund"]["APPRAISAL"],p["entery"]=p["fund"]["entery"],p["activities"]=p["fund"]["activities"],p["Transaction"]=p["fund"]["Transaction"],p["type"]=Boolean(p["type"]),s.setData(p),s.render();const d=s.getZip().generate({type:"blob",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"});let u=document.createElement("a");u.download=`附件 2:创客专项资金项目申请表(${p["type"]?"个人创客":"创客活动"}).docx`,u.style.display="none";let m=new Blob([d]);u.href=URL.createObjectURL(m),document.body.appendChild(u),u.click(),document.body.removeChild(u)}},a.send()}}}]);
- //# sourceMappingURL=3932.23645811.js.map
|