dev_local_v5_hhsly
linlu 5 years ago
parent 600bf49c70
commit 77f303ea98

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

@ -0,0 +1 @@
(window.webpackJsonp=window.webpackJsonp||[]).push([[126],{YxHR:function(p,i,_){"use strict";_.r(i);var M=_("WmNS"),f=_.n(M),A=_("9og8"),H=_("DZo9"),C=_("8z0m"),J=_("+L6B"),m=_("2/Rp"),Z=_("14J3"),d=_("BMrR"),V=_("/zsF"),R=_("PArb"),Y=_("jCWc"),l=_("kPKH"),w=_("miYZ"),D=_("tsqr"),c=_("tJVT"),F=_("CiB2"),s=_("q1tI"),e=_.n(s),g=_("xEZ4"),U=_.n(g),B=_("5bA4"),E=_("1vsH"),y=_("m3rI"),b=_("ErOA"),I=function(L){var P;Object(F.a)(L);var T=Object(s.useState)([]),O=Object(c.a)(T,2),r=O[0],h=O[1],W=Object(s.useState)(),v=Object(c.a)(W,2),t=v[0],K=v[1],j=Object(s.useState)(!1),x=Object(c.a)(j,2),S=x[0],z=x[1],N={onRemove:function(){h([])},beforeUpload:function(a){if((a==null?void 0:a.size)>1024*1024*50)return D.b.info("\u6587\u4EF6\u8D85\u8FC750M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),!1;var o=[];return o.push(a),h([].concat(o)),!1},fileList:r,accept:".xls,.xlsx"};return e.a.createElement("div",{className:"edu-container bg-white mt40",style:{padding:40,paddingTop:0}},e.a.createElement(d.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(B.a,null),"\u8FD4\u56DE"),e.a.createElement(l.a,null,e.a.createElement(R.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(R.a,{style:{margin:"0px 0px 40px 0px"}}),e.a.createElement("p",{className:U.a.selecttitle},"\u9009\u62E9\u6587\u4EF6"),e.a.createElement(d.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,{span:22},e.a.createElement(C.a,N,e.a.createElement(m.a,{ghost:!0,type:"primary",style:{width:"116px",height:"40px"}},"\u9009\u62E9\u6587\u4EF6")))),e.a.createElement(d.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\u8FC72000\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(E.n)("",Object(E.H)({url:y.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(A.a)(f.a.mark(function u(){var a,o;return f.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(!((r==null?void 0:r.length)<=0)){n.next=3;break}return D.b.info("\u8BF7\u4E0A\u4F20\u6587\u4EF6"),n.abrupt("return");case 3:return z(!0),a=new FormData,a.append("file",r[0]),n.next=8,Object(b.a)("/api/common_exercises/students/import_students.json",{method:"post",body:a},!0);case 8:o=n.sent,K(o);case 10:case"end":return n.stop()}},u)}))},"\u786E\u8BA4\u4E0A\u4F20")),S&&e.a.createElement("div",null,e.a.createElement("p",{className:U.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"}}," \u672C\u6B21\u4E0A\u4F20 \u65B0\u589E",e.a.createElement("span",{style:{color:"#FA6400"}},t==null?void 0:t.success),"\u4F4D\u5B66\u751F\uFF0C\u4E0A\u4F20\u6210\u529F",e.a.createElement("span",{style:{color:"#FA6400"}},t==null?void 0:t.success),"\u6761\u6570\u636E\uFF0C\u5931\u8D25",e.a.createElement("span",{style:{color:"#FA6400"}},t==null||((P=t.fail)===null||P===void 0)?void 0:P.length),"\u6761\u6570\u636E"),e.a.createElement(m.a,{style:{height:"30px",width:"144px"},type:"primary",ghost:!0,onClick:function(){Object(E.n)("",Object(E.H)({url:y.a.API_SERVER+(t==null?void 0:t.error_file),query:{}}))}},"\u4E0B\u8F7D\u5931\u8D25\u6570\u636E"))))};i.default=I},xEZ4:function(p,i,_){p.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"}}}]);

@ -1 +0,0 @@
(window.webpackJsonp=window.webpackJsonp||[]).push([[126],{YxHR:function(s,u,_){"use strict";_.r(u);var R=_("WmNS"),E=_.n(R),f=_("9og8"),L=_("DZo9"),O=_("8z0m"),b=_("+L6B"),m=_("2/Rp"),T=_("14J3"),r=_("BMrR"),W=_("/zsF"),i=_("PArb"),K=_("jCWc"),a=_("kPKH"),j=_("miYZ"),y=_("tsqr"),M=_("tJVT"),h=_("CiB2"),d=_("q1tI"),e=_.n(d),A=_("xEZ4"),c=_.n(A),v=_("5bA4"),P=_("1vsH"),x=_("m3rI"),C=_("ErOA"),B=function(g){Object(h.a)(g);var F=Object(d.useState)([]),p=Object(M.a)(F,2),D=p[0],U=p[1],I={onRemove:function(){U([])},beforeUpload:function(t){if((t==null?void 0:t.size)>1024*1024*50)return y.b.info("\u6587\u4EF6\u8D85\u8FC750M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),!1;var o=[];return o.push(t),U([].concat(o)),!1},fileList:D,accept:".xls,.xlsx"};return e.a.createElement("div",{className:"edu-container bg-white mt40",style:{padding:40,paddingTop:0}},e.a.createElement(r.a,{className:"font14",align:"middle",gutter:[0,40],style:{marginBottom:0}},e.a.createElement(a.a,{className:"current",onClick:function(){return history.back()}},e.a.createElement(v.a,null),"\u8FD4\u56DE"),e.a.createElement(a.a,null,e.a.createElement(i.a,{style:{height:18,borderColor:"#999",marginLeft:25,marginRight:25},type:"vertical"})),e.a.createElement(a.a,null,e.a.createElement("strong",{className:"font18"},"\u5BFC\u5165\u5B66\u751F"))),e.a.createElement(i.a,{style:{margin:"0px 0px 40px 0px"}}),e.a.createElement("p",{className:c.a.selecttitle},"\u9009\u62E9\u6587\u4EF6"),e.a.createElement(r.a,{gutter:[16,16]},e.a.createElement(a.a,{span:2,style:{height:"40px",lineHeight:"40px",textAlign:"end"}},"\u6587\u4EF6\u4E0A\u4F20\uFF1A"),e.a.createElement(a.a,{span:22},e.a.createElement(O.a,I,e.a.createElement(m.a,{ghost:!0,type:"primary",style:{width:"116px",height:"40px"}},"\u9009\u62E9\u6587\u4EF6")))),e.a.createElement(r.a,{gutter:[16,16]},e.a.createElement(a.a,{span:2,style:{textAlign:"end"}},"\u6CE8\u610F\uFF1A"),e.a.createElement(a.a,{span:22},e.a.createElement("span",null,"1.\u4E0A\u4F20\u6587\u4EF6\u5927\u5C0F\u4E0D\u5F97\u8D85\u8FC710MB\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(P.n)("",Object(P.H)({url:x.a.API_SERVER+"/api/common_exercises/students/down_template",query:{}}))}},"\u4E0B\u8F7D\u5BFC\u5165\u6A21\u7248")))),e.a.createElement(m.a,{type:"primary",onClick:Object(f.a)(E.a.mark(function n(){var t,o;return E.a.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return t=new FormData,t.append("file",D[0]),l.next=4,Object(C.a)("/api/common_exercises/students/import_students.json",{method:"post",body:t},!0);case 4:o=l.sent;case 5:case"end":return l.stop()}},n)}))},"\u786E\u8BA4\u4E0A\u4F20"),e.a.createElement("p",{className:c.a.selecttitle},"\u4E0A\u4F20\u7ED3\u679C"),e.a.createElement(r.a,{gutter:[16,16]}))};u.default=B},xEZ4:function(s,u,_){s.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

@ -1 +0,0 @@
(window.webpackJsonp=window.webpackJsonp||[]).push([[127,15],{CN02:function(f,u,t){"use strict";t.r(u);var Q=t("g9YV"),g=t("wCAj"),Z=t("sRBo"),M=t("kaz8"),$=t("14J3"),s=t("BMrR"),G=t("5NDa"),o=t("5rEg"),X=t("+L6B"),c=t("2/Rp"),k=t("y8nQ"),_=t("Vl3Y"),l=t("tJVT"),x=t("CiB2"),r=t("q1tI"),e=t.n(r),C=t("zfxY"),n=t.n(C),b=t("55Ip"),v=function(B){Object(x.a)(B);var I={page:1,limit:10,total:100},S=_.a.useForm(),A=Object(l.a)(S,1),ee=A[0],L=Object(r.useState)([]),P=Object(l.a)(L,2),h=P[0],te=P[1],K=Object(r.useState)(!0),R=Object(l.a)(K,2),T=R[0],ae=R[1],W=Object(r.useState)([]),O=Object(l.a)(W,2),j=O[0],d=O[1],F=Object(r.useState)(I),U=Object(l.a)(F,2),E=U[0],_e=U[1],Y=Object(r.useState)({}),y=Object(l.a)(Y,2),ne=y[0],le=y[1],N=Object(r.useState)(!1),p=Object(l.a)(N,2),w=p[0],i=p[1],z=function(a){d(a),a.length===h.length?i(!0):i(!1)},V={selectedRowKeys:j,columnWidth:70,columnTitle:"\u9009\u62E9",onChange:z},H=function(a){i(a.target.checked),a.target.checked?d(h.map(function(D){return D.id})):d([])},J=[{title:"\u59D3\u540D",dataIndex:"name"},{title:"\u5B66\u53F7",dataIndex:"account"},{title:"\u73ED\u7EA7",dataIndex:"created_at"},{title:"\u4E13\u4E1A",dataIndex:"created_on"},{title:"\u7CFB",dataIndex:"department"},{title:"\u5B66\u9662",dataIndex:"college"},{title:"\u64CD\u4F5C",dataIndex:"operation",render:function(a,D){return e.a.createElement("div",{className:"current c-light-primary"},"\u8BE6\u60C5")}}];return e.a.createElement("div",{className:n.a.wrap},e.a.createElement("div",{className:n.a.head},e.a.createElement("span",{style:{flex:"1"}},"\u5B66\u751F\u7BA1\u7406"),e.a.createElement(c.a,{type:"primary",className:n.a.import}," ",e.a.createElement(b.Link,{style:{color:"#fff"},to:"/exam/importStudent"},"\u5BFC\u5165\u5B66\u751F"))),e.a.createElement(_.a,{className:n.a.formWrap},e.a.createElement(s.a,null,e.a.createElement(_.a.Item,{label:"\u59D3\u540D",name:"name"},e.a.createElement(o.a,null)),e.a.createElement(_.a.Item,{label:"\u5B66\u53F7",name:"account"},e.a.createElement(o.a,null)),e.a.createElement(_.a.Item,{label:"\u4E13\u4E1A",name:"college"},e.a.createElement(o.a,{style:{marginRight:0}}))),e.a.createElement(s.a,null,e.a.createElement(_.a.Item,{label:"\u73ED\u7EA7",name:"name"},e.a.createElement(o.a,null)),e.a.createElement(_.a.Item,{label:"\u5B66\u9662",name:"account"},e.a.createElement(o.a,null)),e.a.createElement(_.a.Item,{label:"\u9662\u7CFB",name:"college"},e.a.createElement(o.a,{style:{marginRight:0}}))),e.a.createElement(s.a,{style:{justifyContent:"flex-end"}},e.a.createElement(c.a,{className:n.a.selectbtn},"\u67E5\u8BE2"))),e.a.createElement("div",{className:n.a.batch},e.a.createElement(M.a,{checked:w,onChange:H},"\u672C\u9875\u5168\u9009"),e.a.createElement(c.a,{ghost:!0,type:"primary"},"\u5BFC\u51FA\u5B66\u751F\u6570\u636E")),e.a.createElement(g.a,{rowSelection:V,className:n.a.customTable,bordered:!1,rowKey:function(a){return a.id},columns:J,rowClassName:n.a.row,loading:T,pagination:{pageSize:E.limit,total:E.total,current:E.page,showQuickJumper:!0,hideOnSinglePage:!0,pageSizeOptions:["10","20","50","100","200"],position:["bottomCenter"],showTotal:function(a){return e.a.createElement("span",{className:"mr10"},"\u5171",e.a.createElement("span",{className:"c-orange"},a),"\u6761\u6570\u636E")}}}))};u.default=v},zfxY:function(f,u,t){f.exports={flex_box_center:"flex_box_center___3ZHZ2",flex_space_between:"flex_space_between___8ndyP",flex_box_vertical_center:"flex_box_vertical_center___10sOv",flex_box_center_end:"flex_box_center_end___dcYLA",flex_box_column:"flex_box_column___2h3Dg",wrap:"wrap___1Pz5e",head:"head___LgHRL",import:"import___3t-yG",formWrap:"formWrap___1KfYt",btns:"btns___yQDkg",selectbtn:"selectbtn___3ccUr",batch:"batch___Ye2R5"}}}]);

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

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