dev_local_v5_hhsly
dingyongkang 4 years ago
parent 971468a657
commit d9a7759d5d

@ -93,6 +93,6 @@
gtag('config', 'UA-198293321-1');
</script> -->
<script src="/react/build/umi.36e8d908.js"></script>
<script src="/react/build/umi.41fb7e2e.js"></script>
</body>
</html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -1 +0,0 @@
(window.webpackJsonp=window.webpackJsonp||[]).push([[138],{YxHR:function(D,d,t){"use strict";t.r(d);var G=t("4f0Y"),L=t("uwzz"),I=t("o0o1"),y=t.n(I),b=t("HaE+"),J=t("zYNV"),T=t("fDsn"),X=t("2dbc"),m=t("20ji"),k=t("CeBg"),c=t("V5E8"),q=t("QaLI"),U=t("/ZgR"),ee=t("jHfM"),l=t("hkbp"),te=t("WKsE"),R=t("BU1A"),E=t("ODXe"),W=t("hGi/"),o=t("q1tI"),e=t.n(o),K=t("xEZ4"),O=t.n(K),j=t("5bA4"),i=t("1vsH"),v=t("m3rI"),S=t("ErOA"),z=function(N){var P,f,p;Object(W.a)(N);var H=Object(o.useState)([]),h=Object(E.a)(H,2),s=h[0],g=h[1],V=Object(o.useState)(),M=Object(E.a)(V,2),_=M[0],Y=M[1],$=Object(o.useState)(!1),x=Object(E.a)($,2),Q=x[0],A=x[1],Z=Object(o.useState)(!1),C=Object(E.a)(Z,2),B=C[0],F=C[1],w={onRemove:function(){g([])},beforeUpload:function(n){if((n==null?void 0:n.size)>1024*1024*50)return R.b.info("\u6587\u4EF6\u8D85\u8FC750M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),!1;var r=[];return r.push(n),g([].concat(r)),!1},fileList:s,accept:".xls,.xlsx"};return e.a.createElement("div",{className:"edu-container bg-white mt40",style:{padding:40,paddingTop:0}},e.a.createElement(c.a,{className:"font14",align:"middle",gutter:[0,40],style:{marginBottom:0}},e.a.createElement(l.a,{className:"current",onClick:function(){return history.back()}},e.a.createElement(j.a,null),"\u8FD4\u56DE"),e.a.createElement(l.a,null,e.a.createElement(U.a,{style:{height:18,borderColor:"#999",marginLeft:25,marginRight:25},type:"vertical"})),e.a.createElement(l.a,null,e.a.createElement("strong",{className:"font18"},"\u5BFC\u5165\u5B66\u751F"))),e.a.createElement(U.a,{style:{margin:"0px 0px 40px 0px"}}),e.a.createElement("p",{className:O.a.selecttitle},"\u9009\u62E9\u6587\u4EF6"),e.a.createElement(c.a,{gutter:[16,16]},e.a.createElement(l.a,{span:2,style:{height:"40px",lineHeight:"40px",textAlign:"end"}},"\u6587\u4EF6\u4E0A\u4F20\uFF1A"),e.a.createElement(l.a,null,e.a.createElement(T.a,w,e.a.createElement(m.a,{ghost:!0,type:"primary",style:{width:"116px",height:"40px"}},"\u9009\u62E9\u6587\u4EF6")))),e.a.createElement(c.a,{gutter:[16,16]},e.a.createElement(l.a,{span:2,style:{textAlign:"end"}},"\u6CE8\u610F\uFF1A"),e.a.createElement(l.a,{span:22},e.a.createElement("span",null,"1.\u4E0A\u4F20\u6587\u4EF6\u6570\u636E\u6570\u91CF\u4E0D\u5F97\u8D85\u8FC73000\u6761\u3002 ",e.a.createElement("br",null),"2.\u4EC5\u652F\u6301\u4E0A\u4F20.xlsx\u6216.xls\u7C7B\u578B\u7684\u6587\u4EF6\u3002 ",e.a.createElement("br",null),"3.\u9700\u4E0A\u4F20\u6307\u5B9A\u6A21\u677F\u7684\u6587\u4EF6\u3002",e.a.createElement("span",{style:{cursor:"pointer",color:"#1890ff"},onClick:function(){Object(i.p)("",Object(i.L)({url:v.a.API_SERVER+"/api/common_exercises/students/down_template",query:{}}))}},"\u4E0B\u8F7D\u5BFC\u5165\u6A21\u7248")))),e.a.createElement("div",{style:{display:"flex",justifyContent:"flex-end"}},e.a.createElement(m.a,{type:"primary",style:{width:"116px",height:"40px",borderRadius:"4px"},onClick:Object(b.a)(y.a.mark(function u(){var n,r;return y.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(!((s==null?void 0:s.length)<=0)){a.next=3;break}return R.b.info("\u8BF7\u4E0A\u4F20\u6587\u4EF6"),a.abrupt("return");case 3:return A(!1),F(!0),n=new FormData,n.append("file",s[0]),a.next=9,Object(S.a)("/api/common_exercises/students/import_students.json",{method:"post",body:n},!0);case 9:if(r=a.sent,F(!1),!(r.status===-1)){a.next=13;break}return a.abrupt("return");case 13:A(!0),Y(r);case 15:case"end":return a.stop()}},u)}))},"\u786E\u8BA4\u4E0A\u4F20")),Q&&!B&&e.a.createElement("div",null,e.a.createElement("p",{className:O.a.selecttitle},"\u4E0A\u4F20\u7ED3\u679C"),e.a.createElement("div",{style:{fontSize:"16px",textAlign:"center",display:"flex"}},e.a.createElement("span",{style:{flex:"1",lineHeight:"30px"}},"\u4E0A\u4F20\u6210\u529F",e.a.createElement("span",{style:{color:"#FA6400"}},_==null?void 0:_.success),"\u6761\u6570\u636E",!!(_==null||((P=_.fail)===null||P===void 0)?void 0:P.length)&&e.a.createElement("span",null,"\uFF0C\u5931\u8D25",e.a.createElement("span",{style:{color:"#FA6400"}},_==null||((f=_.fail)===null||f===void 0)?void 0:f.length),"\u6761\u6570\u636E")),!!(_==null||((p=_.fail)===null||p===void 0)?void 0:p.length)&&e.a.createElement(m.a,{style:{height:"30px",width:"144px"},type:"primary",ghost:!0,onClick:function(){Object(i.p)("",Object(i.L)({url:v.a.API_SERVER+(_==null?void 0:_.error_file),query:{}}))}},"\u4E0B\u8F7D\u5931\u8D25\u6570\u636E"))),e.a.createElement(L.a,{tip:"\u4E0A\u4F20\u4E2D",style:{width:"100%",marginTop:26},spinning:B}))};d.default=z},xEZ4:function(D,d,t){D.exports={flex_box_center:"flex_box_center___uMrRr",flex_space_between:"flex_space_between___3UIpw",flex_box_vertical_center:"flex_box_vertical_center___NUA2a",flex_box_center_end:"flex_box_center_end___1a-yj",flex_box_column:"flex_box_column___1WNtC",selecttitle:"selecttitle___1Yri1"}}}]);

@ -0,0 +1 @@
(window.webpackJsonp=window.webpackJsonp||[]).push([[138],{YxHR:function(D,d,t){"use strict";t.r(d);var w=t("4f0Y"),L=t("uwzz"),I=t("o0o1"),y=t.n(I),T=t("HaE+"),X=t("zYNV"),b=t("fDsn"),k=t("2dbc"),m=t("20ji"),q=t("CeBg"),c=t("V5E8"),ee=t("QaLI"),U=t("/ZgR"),te=t("jHfM"),l=t("hkbp"),_e=t("WKsE"),R=t("BU1A"),E=t("ODXe"),W=t("hGi/"),o=t("q1tI"),e=t.n(o),K=t("xEZ4"),O=t.n(K),j=t("9kvl"),S=t("5bA4"),i=t("1vsH"),v=t("m3rI"),z=t("ErOA"),N=function(H){var P,f,p;Object(W.a)(H);var V=Object(o.useState)([]),h=Object(E.a)(V,2),s=h[0],g=h[1],Y=Object(o.useState)(),M=Object(E.a)(Y,2),_=M[0],$=M[1],Q=Object(o.useState)(!1),x=Object(E.a)(Q,2),Z=x[0],A=x[1],G=Object(o.useState)(!1),C=Object(E.a)(G,2),B=C[0],F=C[1],J={onRemove:function(){g([])},beforeUpload:function(n){if((n==null?void 0:n.size)>1024*1024*50)return R.b.info("\u6587\u4EF6\u8D85\u8FC750M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),!1;var r=[];return r.push(n),g([].concat(r)),!1},fileList:s,accept:".xls,.xlsx"};return e.a.createElement("div",{className:"edu-container bg-white mt40",style:{padding:40,paddingTop:0}},e.a.createElement(c.a,{className:"font14",align:"middle",gutter:[0,40],style:{marginBottom:0}},e.a.createElement(l.a,{className:"current",onClick:function(){return j.c.push("/exam/studentManagement")}},e.a.createElement(S.a,null),"\u8FD4\u56DE"),e.a.createElement(l.a,null,e.a.createElement(U.a,{style:{height:18,borderColor:"#999",marginLeft:25,marginRight:25},type:"vertical"})),e.a.createElement(l.a,null,e.a.createElement("strong",{className:"font18"},"\u5BFC\u5165\u5B66\u751F"))),e.a.createElement(U.a,{style:{margin:"0px 0px 40px 0px"}}),e.a.createElement("p",{className:O.a.selecttitle},"\u9009\u62E9\u6587\u4EF6"),e.a.createElement(c.a,{gutter:[16,16]},e.a.createElement(l.a,{span:2,style:{height:"40px",lineHeight:"40px",textAlign:"end"}},"\u6587\u4EF6\u4E0A\u4F20\uFF1A"),e.a.createElement(l.a,null,e.a.createElement(b.a,J,e.a.createElement(m.a,{ghost:!0,type:"primary",style:{width:"116px",height:"40px"}},"\u9009\u62E9\u6587\u4EF6")))),e.a.createElement(c.a,{gutter:[16,16]},e.a.createElement(l.a,{span:2,style:{textAlign:"end"}},"\u6CE8\u610F\uFF1A"),e.a.createElement(l.a,{span:22},e.a.createElement("span",null,"1.\u4E0A\u4F20\u6587\u4EF6\u6570\u636E\u6570\u91CF\u4E0D\u5F97\u8D85\u8FC73000\u6761\u3002 ",e.a.createElement("br",null),"2.\u4EC5\u652F\u6301\u4E0A\u4F20.xlsx\u6216.xls\u7C7B\u578B\u7684\u6587\u4EF6\u3002 ",e.a.createElement("br",null),"3.\u9700\u4E0A\u4F20\u6307\u5B9A\u6A21\u677F\u7684\u6587\u4EF6\u3002",e.a.createElement("span",{style:{cursor:"pointer",color:"#1890ff"},onClick:function(){Object(i.p)("",Object(i.L)({url:v.a.API_SERVER+"/api/common_exercises/students/down_template",query:{}}))}},"\u4E0B\u8F7D\u5BFC\u5165\u6A21\u7248")))),e.a.createElement("div",{style:{display:"flex",justifyContent:"flex-end"}},e.a.createElement(m.a,{type:"primary",style:{width:"116px",height:"40px",borderRadius:"4px"},onClick:Object(T.a)(y.a.mark(function u(){var n,r;return y.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(!((s==null?void 0:s.length)<=0)){a.next=3;break}return R.b.info("\u8BF7\u4E0A\u4F20\u6587\u4EF6"),a.abrupt("return");case 3:return A(!1),F(!0),n=new FormData,n.append("file",s[0]),a.next=9,Object(z.a)("/api/common_exercises/students/import_students.json",{method:"post",body:n},!0);case 9:if(r=a.sent,F(!1),!(r.status===-1)){a.next=13;break}return a.abrupt("return");case 13:A(!0),$(r);case 15:case"end":return a.stop()}},u)}))},"\u786E\u8BA4\u4E0A\u4F20")),Z&&!B&&e.a.createElement("div",null,e.a.createElement("p",{className:O.a.selecttitle},"\u4E0A\u4F20\u7ED3\u679C"),e.a.createElement("div",{style:{fontSize:"16px",textAlign:"center",display:"flex"}},e.a.createElement("span",{style:{flex:"1",lineHeight:"30px"}},"\u4E0A\u4F20\u6210\u529F",e.a.createElement("span",{style:{color:"#FA6400"}},_==null?void 0:_.success),"\u6761\u6570\u636E",!!(_==null||((P=_.fail)===null||P===void 0)?void 0:P.length)&&e.a.createElement("span",null,"\uFF0C\u5931\u8D25",e.a.createElement("span",{style:{color:"#FA6400"}},_==null||((f=_.fail)===null||f===void 0)?void 0:f.length),"\u6761\u6570\u636E")),!!(_==null||((p=_.fail)===null||p===void 0)?void 0:p.length)&&e.a.createElement(m.a,{style:{height:"30px",width:"144px"},type:"primary",ghost:!0,onClick:function(){Object(i.p)("",Object(i.L)({url:v.a.API_SERVER+(_==null?void 0:_.error_file),query:{}}))}},"\u4E0B\u8F7D\u5931\u8D25\u6570\u636E"))),e.a.createElement(L.a,{tip:"\u4E0A\u4F20\u4E2D",style:{width:"100%",marginTop:26},spinning:B}))};d.default=N},xEZ4:function(D,d,t){D.exports={flex_box_center:"flex_box_center___uMrRr",flex_space_between:"flex_space_between___3UIpw",flex_box_vertical_center:"flex_box_vertical_center___NUA2a",flex_box_center_end:"flex_box_center_end___1a-yj",flex_box_column:"flex_box_column___1WNtC",selecttitle:"selecttitle___1Yri1"}}}]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save