932.2deeec56.js 7.7 KB

12
  1. "use strict";(self["webpackChunkscproject"]=self["webpackChunkscproject"]||[]).push([[932],{53932:function(e,n,t){t.d(n,{QC:function(){return f},T_:function(){return m},Ws:function(){return p},oz:function(){return u}});t(23767),t(8585),t(68696),t(57658);var a=t(99611),o=t.n(a),c=t(41401),r=t.n(c),i=t(24613),l=t(66154),s=t(750),d=t.n(s);function p(e){let n="./file/2023年二级学院特色创客空间建设项目申报书模板 (2).docx";const t=new XMLHttpRequest;t.open("GET",n,!0),t.responseType="blob",t.onload=function(n){const a=t.response,c=new FileReader;c.readAsArrayBuffer(a),c.onload=function(n){const t=c.result,a=new Uint8Array(t),i=new(r())(a),l=(new(o())).loadZip(i);let s={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"].replace(/<\/?.+?\/?>/g,"").replace(/&nbsp;/gi," "),ProjectBasis:e["ProjectBasis"].replace(/<\/?.+?\/?>/g,"").replace(/&nbsp;/gi," "),development:e["development"].replace(/<\/?.+?\/?>/g,"").replace(/&nbsp;/gi," "),studio:e["studio"].replace(/<\/?.+?\/?>/g,"").replace(/&nbsp;/gi," "),studentTeam:e["studentTeam"].replace(/<\/?.+?\/?>/g,"").replace(/&nbsp;/gi," "),studentActivities:e["studentActivities"].replace(/<\/?.+?\/?>/g,"").replace(/&nbsp;/gi," "),Transforming:e["Transforming"].replace(/<\/?.+?\/?>/g,"").replace(/&nbsp;/gi," "),condition:e["condition"].replace(/<\/?.+?\/?>/g,"").replace(/&nbsp;/gi," "),fund:[e["fund"]]};l.setData(s),l.render();const d=l.getZip().generate({type:"blob",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"});let p=document.createElement("a");p.download="附件3:2023年二级学院特色创客空间建设项目申报书模板(2).docx",p.style.display="none";let u=new Blob([d]);p.href=URL.createObjectURL(u),document.body.appendChild(p),p.click(),document.body.removeChild(p)}},t.send()}function u(e){d().getBinaryContent("./file/2023年学生创客项目申报书模板.docx",((n,t)=>{if(n)return console.log(n);let a=new(r())(t),c=(new(o())).loadZip(a);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.replace(/<\/?.+?\/?>/g,"").replace(/&nbsp;/gi," "),innovate:e.introduce.innovate.replace(/<\/?.+?\/?>/g,"").replace(/&nbsp;/gi," "),path:e.introduce.path.replace(/<\/?.+?\/?>/g,"").replace(/&nbsp;/gi," "),scene:e.introduce.scene.replace(/<\/?.+?\/?>/g,"").replace(/&nbsp;/gi," "),worth:e.introduce.worth.replace(/<\/?.+?\/?>/g,"").replace(/&nbsp;/gi," "),team:e.introduce.team.replace(/<\/?.+?\/?>/g,"").replace(/&nbsp;/gi," "),cost:e.introduce.cost.replace(/<\/?.+?\/?>/g,"").replace(/&nbsp;/gi," "),expectResults:e.introduce.expectResults.replace(/<\/?.+?\/?>/g,"").replace(/&nbsp;/gi," "),expectResultsTeacher:e.introduce.expectResultsTeacher.replace(/<\/?.+?\/?>/g,"").replace(/&nbsp;/gi," "),expectConversion:e.introduce.expectConversion.replace(/<\/?.+?\/?>/g,"").replace(/&nbsp;/gi," "),plan:e.introduce.plan.replace(/<\/?.+?\/?>/g,"").replace(/&nbsp;/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}),c.render();let s=c.getZip().generate({type:"blob",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"});(0,l.saveAs)(s,"2023年学生创客项目申报书.docx")}))}function f(e){let n="./file/附件 2:创客专项资金项目申请表创客活动模板.docx";const t=new XMLHttpRequest;t.open("GET",n,!0),t.responseType="blob",t.onload=function(n){const a=t.response,c=new FileReader;c.readAsArrayBuffer(a),c.onload=function(n){const t=c.result,a=new Uint8Array(t),l=new(r())(a),s=(new(o())).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 d={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(d),s.render();const p=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 f=new Blob([p]);u.href=URL.createObjectURL(f),document.body.appendChild(u),u.click(),document.body.removeChild(u)}},t.send()}function m(e,n){let t="./file/附件 2:创客专项资金项目申请表(创客活动、个人创客)模板.docx";const a=new XMLHttpRequest;a.open("GET",t,!0),a.responseType="blob",a.onload=function(t){const c=a.response,i=new FileReader;i.readAsArrayBuffer(c),i.onload=function(t){const a=i.result,c=new Uint8Array(a),l=new(r())(c),s=(new(o())).loadZip(l);let d={...e,total:n};d["MP1"]=d["expenditureMothPlan"][0],d["MP2"]=d["expenditureMothPlan"][1],d["MP3"]=d["expenditureMothPlan"][2],d["MP4"]=d["expenditureMothPlan"][3],d["MP5"]=d["expenditureMothPlan"][4],d["MP6"]=d["expenditureMothPlan"][5],d["MP7"]=d["expenditureMothPlan"][6],d["MP8"]=d["expenditureMothPlan"][7],d["MP9"]=d["expenditureMothPlan"][8],d["MP10"]=d["expenditureMothPlan"][9],d["MP11"]=d["expenditureMothPlan"][10],d["MP12"]=d["expenditureMothPlan"][11],d["beTime"]=d["activityTime"][0].split(" ")[0],d["edTime"]=d["activityTime"][1].split(" ")[0],d["device"]=d["fund"]["device"],d["Material"]=d["fund"]["Material"],d["processing"]=d["fund"]["processing"],d["Collaboration"]=d["fund"]["Collaboration"],d["APPRAISAL"]=d["fund"]["APPRAISAL"],d["entery"]=d["fund"]["entery"],d["activities"]=d["fund"]["activities"],d["Transaction"]=d["fund"]["Transaction"],d["type"]=Boolean(d["type"]),s.setData(d),s.render();const p=s.getZip().generate({type:"blob",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"});let u=document.createElement("a");u.download=`附件 2:创客专项资金项目申请表(${d["type"]?"个人创客":"创客活动"}).docx`,u.style.display="none";let f=new Blob([p]);u.href=URL.createObjectURL(f),document.body.appendChild(u),u.click(),document.body.removeChild(u)}},a.send()}}}]);
  2. //# sourceMappingURL=932.2deeec56.js.map