You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/p__Exam__Lists__Summaryrepo...

2 lines
3.9 KiB

(window.webpackJsonp=window.webpackJsonp||[]).push([[70],{"/7ue":function(m,l,e){"use strict";var b=e("k1fw"),O=e("q1tI"),u=e.n(O),E=e("wJFb"),d=e.n(E),D=function(o){var c=o.children,R=c===void 0?null:c,p=o.title,v=o.style,n=v===void 0?{}:v,h=o.className,x=h===void 0?"":h,U=o.titlestyle,P=o.space,_=P===void 0?0:P;return u.a.createElement("aside",{className:d.a.headWarp,style:Object(b.a)({padding:"0 ".concat(_,"px")},n)},u.a.createElement("div",{className:"".concat(d.a.head," ").concat(x)},u.a.createElement("div",{className:d.a.text},p," ",U),R))};l.a=D},"4W8V":function(m,l,e){m.exports={flex_box_center:"flex_box_center___2onN8",flex_space_between:"flex_space_between___16Zec",flex_box_vertical_center:"flex_box_vertical_center___zEdPV",flex_box_center_end:"flex_box_center_end___2pcEx",flex_box_column:"flex_box_column___22fKe",wrap:"wrap___1uqNJ",head:"head___1MvSH",import:"import___2kyob",formWrap:"formWrap___XU372",selectbtn:"selectbtn___2iWPr",batch:"batch___ByjmE",formWraps:"formWraps___2cYmy",btns:"btns___8WRiT"}},ZjIO:function(m,l,e){"use strict";e.r(l);var b=e("T2oS"),O=e("W9HT"),u=e("WmNS"),E=e.n(u),d=e("9og8"),D=e("14J3"),M=e("BMrR"),o=e("DZo9"),c=e("8z0m"),R=e("+L6B"),p=e("2/Rp"),v=e("jCWc"),n=e("kPKH"),h=e("miYZ"),x=e("tsqr"),U=e("y8nQ"),P=e("Vl3Y"),_=e("tJVT"),K=e("CiB2"),r=e("q1tI"),t=e.n(r),F=e("4W8V"),A=e.n(F),S=e("ErOA"),y=e("1vsH"),H=e("/7ue"),N=e("m3rI"),V=function(J){Object(K.a)(J);var $={page:1,per_page:20,total:100},w=P.a.useForm(),Q=Object(_.a)(w,1),te=Q[0],Y=Object(r.useState)([]),g=Object(_.a)(Y,2),_e=g[0],ae=g[1],Z=Object(r.useState)({}),C=Object(_.a)(Z,2),oe=C[0],se=C[1],z=Object(r.useState)($),W=Object(_.a)(z,2),le=W[0],ne=W[1],G=Object(r.useState)([]),B=Object(_.a)(G,2),T=B[0],j=B[1],X=Object(r.useState)(!1),L=Object(_.a)(X,2),k=L[0],I=L[1],q={onRemove:function(){j([])},beforeUpload:function(a){if((a==null?void 0:a.size)>1024*1024*50)return x.b.info("\u6587\u4EF6\u8D85\u8FC750M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),!1;var s=[];return s.push(a),j([].concat(s)),!1},fileList:T,accept:".xls,.xlsx"};return t.a.createElement("div",null,t.a.createElement(O.a,{spinning:k},t.a.createElement("div",{className:A.a.wrap,style:{minHeight:500}},t.a.createElement(H.a,{title:"\u603B\u7ED3\u62A5\u544A"}),t.a.createElement("div",{style:{marginTop:20}},t.a.createElement("p",{className:A.a.selecttitle},"\u9009\u62E9\u6587\u4EF6"),t.a.createElement(M.a,{gutter:[16,16]},t.a.createElement(n.a,{span:3,style:{height:"40px",lineHeight:"40px",textAlign:"end"}},"\u6587\u4EF6\u4E0A\u4F20\uFF1A"),t.a.createElement(n.a,null,t.a.createElement(c.a,q,t.a.createElement(p.a,{ghost:!0,type:"primary",style:{width:"116px",height:"40px"}},"\u9009\u62E9\u6587\u4EF6")))),t.a.createElement(M.a,{gutter:[16,16]},t.a.createElement(n.a,{span:3,style:{textAlign:"end"}},"\u6CE8\u610F\uFF1A"),t.a.createElement(n.a,{span:20},t.a.createElement("span",null,"1.\u4EC5\u652F\u6301\u4E0A\u4F20.xlsx\u6216.xls\u7C7B\u578B\u7684\u6587\u4EF6\u3002 ",t.a.createElement("br",null),"2.\u9700\u4E0A\u4F20\u6307\u5B9A\u6A21\u677F\u7684\u6587\u4EF6\u3002",t.a.createElement("span",{style:{cursor:"pointer",color:"#1890ff"},onClick:function(){Object(y.j)("",Object(y.H)({url:N.a.API_SERVER+"/api/attachments/get_template.json",query:{}}))}},"\u4E0B\u8F7D\u5BFC\u5165\u6A21\u7248"))))),t.a.createElement("div",{style:{textAlign:"center"}},t.a.createElement(p.a,{type:"primary",style:{marginTop:20},onClick:Object(d.a)(E.a.mark(function f(){var a,s;return E.a.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return I(!0),a=new FormData,a.append("file",T[0]),i.next=5,Object(S.a)("/api/attachments/get_docx.json",{method:"post",body:a},!0);case 5:s=i.sent,I(!1),Object(y.j)("",Object(y.H)({url:s==null?void 0:s.url,query:{}}));case 8:case"end":return i.stop()}},f)}))},"\u751F\u6210\u62A5\u544A")))))};l.default=V},wJFb:function(m,l,e){m.exports={headWarp:"headWarp___3x0fo",head:"head___3A05Q",text:"text___3Y7Be"}}}]);