考试系统

dev_local_v5_hhsly
dingyongkang 4 years ago
parent e049c706c5
commit a34ff6165b

@ -57,7 +57,7 @@
}
IEVersion();
</script>
<link rel="stylesheet" href="/react/build/umi.11a7d1f1.css" />
<link rel="stylesheet" href="/react/build/umi.6e6db20e.css" />
<script>
window.routerBase = "/";
</script>
@ -93,6 +93,6 @@
gtag('config', 'UA-198293321-1');
</script> -->
<script src="/react/build/umi.55a1252b.js"></script>
<script src="/react/build/umi.2e90ea79.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

File diff suppressed because one or more lines are too long

@ -0,0 +1 @@
(window.webpackJsonp=window.webpackJsonp||[]).push([[16,15],{"1bfj":function(U,E,e){},Y8AM:function(U,E,e){"use strict";var F=e("+L6B"),M=e("2/Rp"),j=e("5NDa"),d=e("5rEg"),v=e("WmNS"),P=e.n(v),R=e("9og8"),S=e("y8nQ"),t=e("Vl3Y"),c=e("tJVT"),g=e("q1tI"),_=e.n(g),f=e("55Ip"),B=e("jb+D"),C=e("4i/N"),I=e("Ty5D"),p=e("9kvl"),b=e("1bfj"),z=e.n(b),o={height:48,borderRadius:4},L=function(s){var l=s.dispatch,u=t.a.useForm(),T=Object(c.a)(u,1),A=T[0],V=Object(I.l)(),W=Object(g.useState)(""),D=Object(c.a)(W,2),y=D[0],m=D[1],K=function(){var i=Object(R.a)(P.a.mark(function O(h){var n;return P.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,Object(B.a)(h);case 2:if(n=a.sent,!n.status){a.next=6;break}return m(n==null?void 0:n.message),a.abrupt("return");case 6:return a.next=8,l({type:"user/getUserInfo",payload:{}});case 8:p.c.replace("/exam");case 9:case"end":return a.stop()}},O)}));return function(h){return i.apply(this,arguments)}}();return _.a.createElement(t.a,{layout:"vertical",form:A,initialValues:{autologin:!0},onFinish:K,onValuesChange:function(){return m("")}},!!y&&_.a.createElement("div",{className:"res-error-values"},_.a.createElement("span",null,y),_.a.createElement(C.a,{onClick:function(){return m("")}})),_.a.createElement(t.a.Item,{name:"login",label:"\u8D26\u53F7",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7528\u6237\u540D\u3001\u624B\u673A\u53F7\u6216\u90AE\u7BB1"}]},_.a.createElement(d.a,{style:o,size:"large",placeholder:"\u8BF7\u8F93\u5165\u6709\u6548\u7684\u624B\u673A\u53F7/\u90AE\u7BB1\u53F7/\u8D26\u53F7"})),_.a.createElement(t.a.Item,{name:"password",label:"\u5BC6\u7801",rules:[{required:!0,message:"\u8BF7\u8F93\u51658-16\u4F4D\u5BC6\u7801\uFF0C\u533A\u5206\u5927\u5C0F\u5199\u3001\u4E0D\u80FD\u4F7F\u7528\u7A7A\u683C"}]},_.a.createElement(d.a.Password,{style:o,size:"large",placeholder:"\u5BC6\u7801"})),_.a.createElement(t.a.Item,null,_.a.createElement(M.a,{size:"large",type:"primary",htmlType:"submit",block:!0,className:"font16",style:o},"\u767B\u5F55")),_.a.createElement(f.Link,{to:"/login"},"<<\u8FD4\u56DE\u9009\u62E9\u8EAB\u4EFD"))};E.a=Object(p.a)(function(r){var s=r.user,l=r.loading,u=r.globalSetting;return{user:s,globalSetting:u,loading:l.models.index}})(L)}}]);

@ -1 +0,0 @@
(window.webpackJsonp=window.webpackJsonp||[]).push([[16,15],{"1bfj":function(M,E,e){},Y8AM:function(M,E,e){"use strict";var j=e("+L6B"),v=e("2/Rp"),F=e("5NDa"),d=e("5rEg"),g=e("c1Ei"),P=e.n(g),R=e("5Tp6"),S=e("y8nQ"),a=e("Vl3Y"),p=e("k16G"),c=e("q1tI"),_=e.n(c),f=e("uYtH"),C=e("jb+D"),B=e("4i/N"),b=e("WHYC"),D=e("9kvl"),I=e("1bfj"),x=e.n(I),o={height:48,borderRadius:4},L=function(s){var l=s.dispatch,u=a.a.useForm(),T=Object(p.a)(u,1),A=T[0],V=Object(b.l)(),W=Object(c.useState)(""),O=Object(p.a)(W,2),y=O[0],m=O[1],K=function(){var i=Object(R.a)(P.a.mark(function h(U){var n;return P.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(C.a)(U);case 2:if(n=t.sent,!n.status){t.next=6;break}return m(n==null?void 0:n.message),t.abrupt("return");case 6:return t.next=8,l({type:"user/getUserInfo",payload:{}});case 8:D.c.replace("/exam");case 9:case"end":return t.stop()}},h)}));return function(U){return i.apply(this,arguments)}}();return _.a.createElement(a.a,{layout:"vertical",form:A,initialValues:{autologin:!0},onFinish:K,onValuesChange:function(){return m("")}},!!y&&_.a.createElement("div",{className:"res-error-values"},_.a.createElement("span",null,y),_.a.createElement(B.a,{onClick:function(){return m("")}})),_.a.createElement(a.a.Item,{name:"login",label:"\u8D26\u53F7",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7528\u6237\u540D\u3001\u624B\u673A\u53F7\u6216\u90AE\u7BB1"}]},_.a.createElement(d.a,{style:o,size:"large",placeholder:"\u8BF7\u8F93\u5165\u6709\u6548\u7684\u624B\u673A\u53F7/\u90AE\u7BB1\u53F7/\u8D26\u53F7"})),_.a.createElement(a.a.Item,{name:"password",label:"\u5BC6\u7801",rules:[{required:!0,message:"\u8BF7\u8F93\u51658-16\u4F4D\u5BC6\u7801\uFF0C\u533A\u5206\u5927\u5C0F\u5199\u3001\u4E0D\u80FD\u4F7F\u7528\u7A7A\u683C"}]},_.a.createElement(d.a.Password,{style:o,size:"large",placeholder:"\u5BC6\u7801"})),_.a.createElement(a.a.Item,null,_.a.createElement(v.a,{size:"large",type:"primary",htmlType:"submit",block:!0,className:"font16",style:o},"\u767B\u5F55")),_.a.createElement(f.Link,{to:"/login"},"<<\u8FD4\u56DE\u9009\u62E9\u8EAB\u4EFD"))};E.a=Object(D.a)(function(r){var s=r.user,l=r.loading,u=r.globalSetting;return{user:s,globalSetting:u,loading:l.models.index}})(L)}}]);

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,9 +1,9 @@
/*!
* Cropper.js v1.5.12
* Cropper.js v1.5.7
* https://fengyuanchen.github.io/cropperjs
*
* Copyright 2015-present Chen Fengyuan
* Released under the MIT license
*
* Date: 2021-06-12T08:00:11.623Z
* Date: 2020-05-23T05:22:57.283Z
*/.cropper-container{direction:ltr;font-size:0;line-height:0;position:relative;-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.cropper-container img{display:block;height:100%;image-orientation:0deg;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;width:100%}.cropper-canvas,.cropper-crop-box,.cropper-drag-box,.cropper-modal,.cropper-wrap-box{bottom:0;left:0;position:absolute;right:0;top:0}.cropper-canvas,.cropper-wrap-box{overflow:hidden}.cropper-drag-box{background-color:#fff;opacity:0}.cropper-modal{background-color:#000;opacity:.5}.cropper-view-box{display:block;height:100%;outline:1px solid #39f;outline-color:rgba(51,153,255,.75);overflow:hidden;width:100%}.cropper-dashed{border:0 dashed #eee;display:block;opacity:.5;position:absolute}.cropper-dashed.dashed-h{border-bottom-width:1px;border-top-width:1px;height:33.33333%;left:0;top:33.33333%;width:100%}.cropper-dashed.dashed-v{border-left-width:1px;border-right-width:1px;height:100%;left:33.33333%;top:0;width:33.33333%}.cropper-center{display:block;height:0;left:50%;opacity:.75;position:absolute;top:50%;width:0}.cropper-center:after,.cropper-center:before{background-color:#eee;content:" ";display:block;position:absolute}.cropper-center:before{height:1px;left:-3px;top:0;width:7px}.cropper-center:after{height:7px;left:0;top:-3px;width:1px}.cropper-face,.cropper-line,.cropper-point{display:block;height:100%;opacity:.1;position:absolute;width:100%}.cropper-face{background-color:#fff;left:0;top:0}.cropper-line{background-color:#39f}.cropper-line.line-e{cursor:ew-resize;right:-3px;top:0;width:5px}.cropper-line.line-n{cursor:ns-resize;height:5px;left:0;top:-3px}.cropper-line.line-w{cursor:ew-resize;left:-3px;top:0;width:5px}.cropper-line.line-s{bottom:-3px;cursor:ns-resize;height:5px;left:0}.cropper-point{background-color:#39f;height:5px;opacity:.75;width:5px}.cropper-point.point-e{cursor:ew-resize;margin-top:-3px;right:-3px;top:50%}.cropper-point.point-n{cursor:ns-resize;left:50%;margin-left:-3px;top:-3px}.cropper-point.point-w{cursor:ew-resize;left:-3px;margin-top:-3px;top:50%}.cropper-point.point-s{bottom:-3px;cursor:s-resize;left:50%;margin-left:-3px}.cropper-point.point-ne{cursor:nesw-resize;right:-3px;top:-3px}.cropper-point.point-nw{cursor:nwse-resize;left:-3px;top:-3px}.cropper-point.point-sw{bottom:-3px;cursor:nesw-resize;left:-3px}.cropper-point.point-se{bottom:-3px;cursor:nwse-resize;height:20px;opacity:1;right:-3px;width:20px}@media (min-width:768px){.cropper-point.point-se{height:15px;width:15px}}@media (min-width:992px){.cropper-point.point-se{height:10px;width:10px}}@media (min-width:1200px){.cropper-point.point-se{height:5px;opacity:.75;width:5px}}.cropper-point.point-se:before{background-color:#39f;bottom:-50%;content:" ";display:block;height:200%;opacity:0;position:absolute;right:-50%;width:200%}.cropper-invisible{opacity:0}.cropper-bg{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC")}.cropper-hide{display:block;height:0;position:absolute;width:0}.cropper-hidden{display:none!important}.cropper-move{cursor:move}.cropper-crop{cursor:crosshair}.cropper-disabled .cropper-drag-box,.cropper-disabled .cropper-face,.cropper-disabled .cropper-line,.cropper-disabled .cropper-point{cursor:not-allowed}

@ -1 +1 @@
(window.webpackJsonp=window.webpackJsonp||[]).push([[36],{"4w5S":function(d,u,e){"use strict";e.r(u);var R=e("y8nQ"),_=e("Vl3Y"),U=e("+L6B"),r=e("2/Rp"),c=e("SIvP"),s=e("q1tI"),a=e.n(s),E=e("9kvl"),v=e("vjIP"),n=e.n(v),P=e("Z3SC"),p=e("1vsH"),D=function(l){var i=l.account,m=l.globalSetting,h=l.loading,f=l.dispatch,y=Object(c.a)(l,["account","globalSetting","loading","dispatch"]),t=i.basicInfo;return a.a.createElement("section",{className:n.a.wrap},a.a.createElement("div",{className:n.a.content},a.a.createElement("div",{className:n.a.titleWrap},a.a.createElement("div",{className:n.a.title},"\u57FA\u672C\u4FE1\u606F"),a.a.createElement(r.a,{type:"primary",ghost:!0,onClick:function(){return E.c.push("/account/profile/edit")}},"\u4FEE\u6539")),a.a.createElement(_.a,{className:n.a.formWrap,labelCol:{span:3},wrapperCol:{span:21},layout:"horizontal"},a.a.createElement(_.a.Item,{label:"\u6635\u79F0"},t==null?void 0:t.nickname),a.a.createElement(_.a.Item,{label:"\u59D3\u540D"},(t==null?void 0:t.show_realname)==!0?t==null?void 0:t.name:Object(p.y)(t==null?void 0:t.name)),a.a.createElement(_.a.Item,{label:"\u6027\u522B"},(t==null?void 0:t.gender)==0?"\u7537":"\u5973"),a.a.createElement(_.a.Item,{label:"\u6240\u5728\u5730"},t==null?void 0:t.location,"\u3000",t==null?void 0:t.location_city),a.a.createElement(_.a.Item,{label:"\u804C\u4E1A"},P.identityMap[t==null?void 0:t.identity],"\u3000",(t==null?void 0:t.technical_title)||(t==null?void 0:t.student_id)),a.a.createElement(_.a.Item,{label:"\u5B66\u6821/\u5355\u4F4D"},t==null?void 0:t.school_name),a.a.createElement(_.a.Item,{label:"\u9662\u7CFB/\u90E8\u95E8"},t==null?void 0:t.department_name),a.a.createElement(_.a.Item,{label:"\u6700\u9AD8\u5B66\u5386"},t==null?void 0:t.edu_background),a.a.createElement(_.a.Item,{label:"\u5165\u5B66\u5E74\u4EFD"},t==null?void 0:t.edu_entry_year),a.a.createElement(_.a.Item,{label:"\u7B80\u4ECB"},t==null?void 0:t.brief_introduction))),a.a.createElement("div",{className:"".concat(n.a.hint," font14")},"* \u6211\u4EEC\u786E\u4FDD\u4F60\u6240\u63D0\u4F9B\u7684\u4FE1\u606F\u5747\u5904\u4E8E\u4E25\u683C\u4FDD\u5BC6\u72B6\u6001\uFF0C\u4E0D\u4F1A\u6CC4\u9732"))};u.default=Object(E.a)(function(o){var l=o.account,i=o.loading,m=o.globalSetting;return{account:l,globalSetting:m,loading:i.models.index}})(D)},vjIP:function(d,u,e){d.exports={wrap:"wrap___1ZoME",content:"content___2ISmw",hint:"hint___1VSGa",title:"title___3mBb8",titleWrap:"titleWrap___1YH9W",formWrap:"formWrap___3ynAf"}}}]);
(window.webpackJsonp=window.webpackJsonp||[]).push([[36],{"4w5S":function(d,u,e){"use strict";e.r(u);var R=e("y8nQ"),_=e("Vl3Y"),U=e("+L6B"),r=e("2/Rp"),c=e("PpiC"),s=e("q1tI"),a=e.n(s),E=e("9kvl"),v=e("vjIP"),n=e.n(v),P=e("Z3SC"),p=e("1vsH"),D=function(l){var i=l.account,m=l.globalSetting,h=l.loading,f=l.dispatch,y=Object(c.a)(l,["account","globalSetting","loading","dispatch"]),t=i.basicInfo;return a.a.createElement("section",{className:n.a.wrap},a.a.createElement("div",{className:n.a.content},a.a.createElement("div",{className:n.a.titleWrap},a.a.createElement("div",{className:n.a.title},"\u57FA\u672C\u4FE1\u606F"),a.a.createElement(r.a,{type:"primary",ghost:!0,onClick:function(){return E.c.push("/account/profile/edit")}},"\u4FEE\u6539")),a.a.createElement(_.a,{className:n.a.formWrap,labelCol:{span:3},wrapperCol:{span:21},layout:"horizontal"},a.a.createElement(_.a.Item,{label:"\u6635\u79F0"},t==null?void 0:t.nickname),a.a.createElement(_.a.Item,{label:"\u59D3\u540D"},(t==null?void 0:t.show_realname)==!0?t==null?void 0:t.name:Object(p.y)(t==null?void 0:t.name)),a.a.createElement(_.a.Item,{label:"\u6027\u522B"},(t==null?void 0:t.gender)==0?"\u7537":"\u5973"),a.a.createElement(_.a.Item,{label:"\u6240\u5728\u5730"},t==null?void 0:t.location,"\u3000",t==null?void 0:t.location_city),a.a.createElement(_.a.Item,{label:"\u804C\u4E1A"},P.identityMap[t==null?void 0:t.identity],"\u3000",(t==null?void 0:t.technical_title)||(t==null?void 0:t.student_id)),a.a.createElement(_.a.Item,{label:"\u5B66\u6821/\u5355\u4F4D"},t==null?void 0:t.school_name),a.a.createElement(_.a.Item,{label:"\u9662\u7CFB/\u90E8\u95E8"},t==null?void 0:t.department_name),a.a.createElement(_.a.Item,{label:"\u6700\u9AD8\u5B66\u5386"},t==null?void 0:t.edu_background),a.a.createElement(_.a.Item,{label:"\u5165\u5B66\u5E74\u4EFD"},t==null?void 0:t.edu_entry_year),a.a.createElement(_.a.Item,{label:"\u7B80\u4ECB"},t==null?void 0:t.brief_introduction))),a.a.createElement("div",{className:"".concat(n.a.hint," font14")},"* \u6211\u4EEC\u786E\u4FDD\u4F60\u6240\u63D0\u4F9B\u7684\u4FE1\u606F\u5747\u5904\u4E8E\u4E25\u683C\u4FDD\u5BC6\u72B6\u6001\uFF0C\u4E0D\u4F1A\u6CC4\u9732"))};u.default=Object(E.a)(function(o){var l=o.account,i=o.loading,m=o.globalSetting;return{account:l,globalSetting:m,loading:i.models.index}})(D)},vjIP:function(d,u,e){d.exports={wrap:"wrap___1ZoME",content:"content___2ISmw",hint:"hint___1VSGa",title:"title___3mBb8",titleWrap:"titleWrap___1YH9W",formWrap:"formWrap___3ynAf"}}}]);

@ -1 +1 @@
(window.webpackJsonp=window.webpackJsonp||[]).push([[37],{"9ryg":function(P,i,e){P.exports={wrap:"wrap___3-UaI",content:"content___3E-as",hint:"hint___3otcH",titleWrap:"titleWrap___3zROb",title:"title___2jI7q",bind:"bind___1czD7",flexRow:"flexRow___1MeAa",wechatLogo:"wechatLogo___3pmnJ",qqLogo:"qqLogo___12-6e",action:"action___1a_9A",modal:"modal___3aSrG"}},"a90+":function(P,i,e){"use strict";e.r(i);var J=e("miYZ"),A=e("tsqr"),B=e("c1Ei"),l=e.n(B),$=e("/zsF"),F=e("PArb"),Y=e("+L6B"),E=e("2/Rp"),h=e("5Tp6"),m=e("k16G"),j=e("SIvP"),Z=e("5NDa"),T=e("5rEg"),o=e("q1tI"),t=e.n(o),L=e("9kvl"),I=e("9ryg"),r=e.n(I),O=e("ErOA"),W=T.a.TextArea,K=function(n){var g=n.user,U=n.account,y=n.globalSetting,Q=n.loading,V=n.dispatch,X=Object(j.a)(n,["user","account","globalSetting","loading","dispatch"]),S=Object(o.useState)(),f=Object(m.a)(S,2),v=f[0],x=f[1],H=Object(o.useState)(),C=Object(m.a)(H,2),d=C[0],R=C[1],w=Object(o.useState)(!1),M=Object(m.a)(w,2),N=M[0],c=M[1];Object(o.useEffect)(function(){b()},[]);function b(){return p.apply(this,arguments)}function p(){return p=Object(h.a)(l.a.mark(function u(){var _;return l.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,Object(O.a)("/api/users/honor.json",{method:"get"});case 2:_=a.sent,_&&(x(_==null?void 0:_.honor),R(_==null?void 0:_.honor));case 4:case"end":return a.stop()}},u)})),p.apply(this,arguments)}function z(){return D.apply(this,arguments)}function D(){return D=Object(h.a)(l.a.mark(function u(){var _;return l.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(d){a.next=3;break}return A.b.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"),a.abrupt("return");case 3:return a.next=5,Object(O.a)("/api/users/brief_introduction.json",{method:"post",body:{honor:d}});case 5:_=a.sent,_&&(b(),c(!1));case 7:case"end":return a.stop()}},u)})),D.apply(this,arguments)}return t.a.createElement("section",{className:r.a.wrap},t.a.createElement("div",{className:r.a.content},t.a.createElement("div",{className:"".concat(r.a.titleWrap," mt10")},t.a.createElement("div",{className:r.a.title,style:{width:"100%",display:"flex"}},t.a.createElement("span",{style:{flex:"1"}},t.a.createElement("span",null,"\u6210\u679C\u8363\u8A89"),t.a.createElement("span",{style:{fontSize:"14px",color:"#888888"}},"\uFF08\u6559\u5E08\u53EF\u4EE5\u5728\u8FD9\u91CC\u7F16\u64B0\u81EA\u5DF1\u7684\u6559\u7814\u6210\u679C\u3001\u8363\u8A89\u79F0\u53F7\uFF0C\u8FD9\u4E9B\u4FE1\u606F\u5C06\u5728\u8BFE\u7A0B\u4E2D\u5C55\u793A\uFF09")),t.a.createElement(E.a,{onClick:function(){return c(!0)}},"\u7F16\u8F91"))),t.a.createElement(F.a,null),N?t.a.createElement("div",null,t.a.createElement(W,{value:d,onChange:function(_){return R(_.target.value)},placeholder:"\u8BF7\u7F16\u64B0\u4E0D\u8D85\u8FC7300\u5B57\u7684\u6210\u679C\u3001\u8363\u8A89\u4ECB\u7ECD",maxLength:300}),t.a.createElement(E.a,{type:"primary",style:{marginRight:"10px",marginTop:"10px"},onClick:function(){return z()}},"\u786E\u8BA4"),t.a.createElement(E.a,{style:{marginTop:"10px"},onClick:function(){return c(!1)}},"\u53D6\u6D88")):v||"\u60A8\u5C1A\u672A\u7F16\u64B0\u81EA\u5DF1\u7684\u6559\u7814\u6210\u679C\u548C\u8363\u8A89\u79F0\u53F7\u54E6~"),t.a.createElement("div",{className:"".concat(r.a.hint," font14")},"* \u6211\u4EEC\u786E\u4FDD\u4F60\u6240\u63D0\u4F9B\u7684\u4FE1\u606F\u5747\u5904\u4E8E\u4E25\u683C\u4FDD\u5BC6\u72B6\u6001\uFF0C\u4E0D\u4F1A\u6CC4\u9732"))};i.default=Object(L.a)(function(s){var n=s.user,g=s.account,U=s.loading,y=s.globalSetting;return{user:n,account:g,globalSetting:y,loading:U.models.index}})(K)}}]);
(window.webpackJsonp=window.webpackJsonp||[]).push([[37],{"9ryg":function(D,i,e){D.exports={wrap:"wrap___3-UaI",content:"content___3E-as",hint:"hint___3otcH",titleWrap:"titleWrap___3zROb",title:"title___2jI7q",bind:"bind___1czD7",flexRow:"flexRow___1MeAa",wechatLogo:"wechatLogo___3pmnJ",qqLogo:"qqLogo___12-6e",action:"action___1a_9A",modal:"modal___3aSrG"}},"a90+":function(D,i,e){"use strict";e.r(i);var k=e("miYZ"),A=e("tsqr"),B=e("WmNS"),l=e.n(B),G=e("/zsF"),F=e("PArb"),$=e("+L6B"),m=e("2/Rp"),P=e("9og8"),E=e("tJVT"),T=e("PpiC"),V=e("5NDa"),L=e("5rEg"),o=e("q1tI"),t=e.n(o),W=e("9kvl"),I=e("9ryg"),r=e.n(I),h=e("ErOA"),j=L.a.TextArea,K=function(n){var O=n.user,U=n.account,y=n.globalSetting,Y=n.loading,Z=n.dispatch,Q=Object(T.a)(n,["user","account","globalSetting","loading","dispatch"]),S=Object(o.useState)(),f=Object(E.a)(S,2),C=f[0],x=f[1],z=Object(o.useState)(),v=Object(E.a)(z,2),d=v[0],R=v[1],H=Object(o.useState)(!1),M=Object(E.a)(H,2),N=M[0],c=M[1];Object(o.useEffect)(function(){b()},[]);function b(){return p.apply(this,arguments)}function p(){return p=Object(P.a)(l.a.mark(function u(){var _;return l.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,Object(h.a)("/api/users/honor.json",{method:"get"});case 2:_=a.sent,_&&(x(_==null?void 0:_.honor),R(_==null?void 0:_.honor));case 4:case"end":return a.stop()}},u)})),p.apply(this,arguments)}function w(){return g.apply(this,arguments)}function g(){return g=Object(P.a)(l.a.mark(function u(){var _;return l.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(d){a.next=3;break}return A.b.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"),a.abrupt("return");case 3:return a.next=5,Object(h.a)("/api/users/brief_introduction.json",{method:"post",body:{honor:d}});case 5:_=a.sent,_&&(b(),c(!1));case 7:case"end":return a.stop()}},u)})),g.apply(this,arguments)}return t.a.createElement("section",{className:r.a.wrap},t.a.createElement("div",{className:r.a.content},t.a.createElement("div",{className:"".concat(r.a.titleWrap," mt10")},t.a.createElement("div",{className:r.a.title,style:{width:"100%",display:"flex"}},t.a.createElement("span",{style:{flex:"1"}},t.a.createElement("span",null,"\u6210\u679C\u8363\u8A89"),t.a.createElement("span",{style:{fontSize:"14px",color:"#888888"}},"\uFF08\u6559\u5E08\u53EF\u4EE5\u5728\u8FD9\u91CC\u7F16\u64B0\u81EA\u5DF1\u7684\u6559\u7814\u6210\u679C\u3001\u8363\u8A89\u79F0\u53F7\uFF0C\u8FD9\u4E9B\u4FE1\u606F\u5C06\u5728\u8BFE\u7A0B\u4E2D\u5C55\u793A\uFF09")),t.a.createElement(m.a,{onClick:function(){return c(!0)}},"\u7F16\u8F91"))),t.a.createElement(F.a,null),N?t.a.createElement("div",null,t.a.createElement(j,{value:d,onChange:function(_){return R(_.target.value)},placeholder:"\u8BF7\u7F16\u64B0\u4E0D\u8D85\u8FC7300\u5B57\u7684\u6210\u679C\u3001\u8363\u8A89\u4ECB\u7ECD",maxLength:300}),t.a.createElement(m.a,{type:"primary",style:{marginRight:"10px",marginTop:"10px"},onClick:function(){return w()}},"\u786E\u8BA4"),t.a.createElement(m.a,{style:{marginTop:"10px"},onClick:function(){return c(!1)}},"\u53D6\u6D88")):C||"\u60A8\u5C1A\u672A\u7F16\u64B0\u81EA\u5DF1\u7684\u6559\u7814\u6210\u679C\u548C\u8363\u8A89\u79F0\u53F7\u54E6~"),t.a.createElement("div",{className:"".concat(r.a.hint," font14")},"* \u6211\u4EEC\u786E\u4FDD\u4F60\u6240\u63D0\u4F9B\u7684\u4FE1\u606F\u5747\u5904\u4E8E\u4E25\u683C\u4FDD\u5BC6\u72B6\u6001\uFF0C\u4E0D\u4F1A\u6CC4\u9732"))};i.default=Object(W.a)(function(s){var n=s.user,O=s.account,U=s.loading,y=s.globalSetting;return{user:n,account:O,globalSetting:y,loading:U.models.index}})(K)}}]);

@ -1 +0,0 @@
(window.webpackJsonp=window.webpackJsonp||[]).push([[39],{y3wM:function(s,n,o){"use strict";o.r(n);var e=o("IIKO"),_=o("q1tI"),a=o.n(_),r=o("m3rI");n.default=function(l){var t=Object(e.a)({},l);return Object(_.useEffect)(function(){window.location.href=r.a.API_SERVER+t.location.pathname+t.location.search},[t.location.pathname]),a.a.createElement("div",null)}}}]);

@ -0,0 +1 @@
(window.webpackJsonp=window.webpackJsonp||[]).push([[39],{y3wM:function(l,t,o){"use strict";o.r(t);var e=o("0Owb"),_=o("q1tI"),a=o.n(_),r=o("m3rI");t.default=function(s){var n=Object(e.a)({},s);return Object(_.useEffect)(function(){window.location.href=r.a.API_SERVER+n.location.pathname+n.location.search},[n.location.pathname]),a.a.createElement("div",null)}}}]);

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

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

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

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

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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -0,0 +1 @@
(window.webpackJsonp=window.webpackJsonp||[]).push([[88,15],{jlxL:function(D,u,_){D.exports={flex_box_center:"flex_box_center___9uBLs",flex_space_between:"flex_space_between___3fCBt",flex_box_vertical_center:"flex_box_vertical_center___1d5cl",flex_box_center_end:"flex_box_center_end___3gawU",flex_box_column:"flex_box_column___1ZgMe",bg:"bg___1ncI1",title:"title___kB2kU",titleLeft:"titleLeft___3NtYl",titleRight:"titleRight___TNVAa"}},pFvy:function(D,u,_){"use strict";_.r(u);var S=_("+L6B"),v=_("2/Rp"),y=_("WmNS"),U=_.n(y),O=_("k1fw"),B=_("9og8"),z=_("5NDa"),R=_("5rEg"),J=_("14J3"),L=_("BMrR"),$=_("jCWc"),g=_("kPKH"),V=_("sPJy"),r=_("bE4q"),H=_("y8nQ"),o=_("Vl3Y"),I=_("tJVT"),b=_("q1tI"),e=_.n(b),A=_("Ty5D"),E=_("55Ip"),M=_("9kvl"),C=_("tgas"),T=_("jlxL"),f=_.n(T),x=_("1vsH"),W=function(a){var l,h=a.classroomList,p=a.globalSetting,Y=a.loading,K=a.user,G=a.dispatch,m=Object(A.m)(),s=K.userInfo,F=o.a.useForm(),j=Object(I.a)(F,1),d=j[0];return e.a.createElement("section",{className:"edu-container"},e.a.createElement("section",{className:"animated fadeIn"},e.a.createElement("aside",{className:"mt10"},s&&e.a.createElement(r.a,{separator:">"},e.a.createElement(r.a.Item,null,e.a.createElement(E.Link,{to:"".concat(s.first_category_url)},s==null||((l=s.course)===null||l===void 0)?void 0:l.course_name)),e.a.createElement(r.a.Item,null,e.a.createElement(E.Link,{to:"/classrooms/".concat(m.coursesId,"/poll")},"\u95EE\u5377\u5217\u8868")),e.a.createElement(r.a.Item,null,"\u65B0\u5EFA\u95EE\u5377"))),e.a.createElement("aside",{className:[f.a.title,"mt20"].join(" ")},e.a.createElement(L.a,{style:{width:"100%"}},e.a.createElement(g.a,{flex:"1"},e.a.createElement("strong",{className:"font20 ml5"},"\u65B0\u5EFA\u95EE\u5377")),e.a.createElement(g.a,null,e.a.createElement(E.Link,{className:"font16 c-light-black",to:"/classrooms/".concat(m.coursesId,"/poll")},"\u8FD4\u56DE"))))),e.a.createElement("section",{className:[f.a.bg,"pt30","pl30","pr30","pb30","mt20"].join(" ")},e.a.createElement(o.a,{layout:"vertical",form:d},e.a.createElement(o.a.Item,{name:"polls_name",label:"\u95EE\u5377\u6807\u9898\uFF1A",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u95EE\u5377\u6807\u9898"}]},e.a.createElement(R.a,{maxLength:60,placeholder:"\u95EE\u5377\u6807\u9898\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26"})),e.a.createElement(o.a.Item,{label:"\u95EE\u5377\u987B\u77E5\uFF1A",name:"polls_description"},e.a.createElement(R.a.TextArea,{rows:6,maxLength:100,placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u672C\u6B21\u95EE\u5377\u7B54\u9898\u7684\u76F8\u5173\u8BF4\u660E\uFF0C\u6700\u5927\u9650\u5236100\u4E2A\u5B57\u7B26"})),e.a.createElement(o.a.Item,{className:"tr"},e.a.createElement(v.a,{type:"primary",onClick:Object(B.a)(U.a.mark(function N(){var i,c,P;return U.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,d.validateFields();case 2:return i=d.getFieldValue(),i.is_md=!0,t.next=6,Object(C.d)(Object(O.a)(Object(O.a)({},i),m));case 6:c=t.sent,c.status===0&&(Object(x.R)(["\u6559\u5B66\u8BFE\u5802","\u95EE\u5377","\u65B0\u5EFA\u95EE\u5377"]),M.c.push("/classrooms/".concat(m.coursesId,"/poll/").concat((P=c.data)===null||P===void 0?void 0:P.id,"/edit")));case 8:case"end":return t.stop()}},N)}))},"\u4FDD\u5B58")))))};u.default=Object(M.a)(function(n){var a=n.classroomList,l=n.loading,h=n.user,p=n.globalSetting;return{classroomList:a,globalSetting:p,user:h,loading:l.effects}})(W)}}]);

@ -1 +0,0 @@
(window.webpackJsonp=window.webpackJsonp||[]).push([[88,15],{jlxL:function(p,m,_){p.exports={flex_box_center:"flex_box_center___9uBLs",flex_space_between:"flex_space_between___3fCBt",flex_box_vertical_center:"flex_box_vertical_center___1d5cl",flex_box_center_end:"flex_box_center_end___3gawU",flex_box_column:"flex_box_column___1ZgMe",bg:"bg___1ncI1",title:"title___kB2kU",titleLeft:"titleLeft___3NtYl",titleRight:"titleRight___TNVAa"}},pFvy:function(p,m,_){"use strict";_.r(m);var S=_("+L6B"),y=_("2/Rp"),B=_("c1Ei"),D=_.n(B),U=_("XEnU"),L=_("5Tp6"),$=_("5NDa"),O=_("5rEg"),H=_("14J3"),g=_("BMrR"),J=_("jCWc"),R=_("kPKH"),Y=_("sPJy"),r=_("bE4q"),V=_("y8nQ"),l=_("Vl3Y"),I=_("k16G"),b=_("q1tI"),e=_.n(b),A=_("WHYC"),E=_("uYtH"),M=_("9kvl"),C=_("tgas"),T=_("jlxL"),h=_.n(T),x=_("1vsH"),W=function(t){var n,f=t.classroomList,v=t.globalSetting,G=t.loading,K=t.user,Q=t.dispatch,u=Object(A.m)(),s=K.userInfo,j=l.a.useForm(),F=Object(I.a)(j,1),d=F[0];return e.a.createElement("section",{className:"edu-container"},e.a.createElement("section",{className:"animated fadeIn"},e.a.createElement("aside",{className:"mt10"},s&&e.a.createElement(r.a,{separator:">"},e.a.createElement(r.a.Item,null,e.a.createElement(E.Link,{to:"".concat(s.first_category_url)},s==null||((n=s.course)===null||n===void 0)?void 0:n.course_name)),e.a.createElement(r.a.Item,null,e.a.createElement(E.Link,{to:"/classrooms/".concat(u.coursesId,"/poll")},"\u95EE\u5377\u5217\u8868")),e.a.createElement(r.a.Item,null,"\u65B0\u5EFA\u95EE\u5377"))),e.a.createElement("aside",{className:[h.a.title,"mt20"].join(" ")},e.a.createElement(g.a,{style:{width:"100%"}},e.a.createElement(R.a,{flex:"1"},e.a.createElement("strong",{className:"font20 ml5"},"\u65B0\u5EFA\u95EE\u5377")),e.a.createElement(R.a,null,e.a.createElement(E.Link,{className:"font16 c-light-black",to:"/classrooms/".concat(u.coursesId,"/poll")},"\u8FD4\u56DE"))))),e.a.createElement("section",{className:[h.a.bg,"pt30","pl30","pr30","pb30","mt20"].join(" ")},e.a.createElement(l.a,{layout:"vertical",form:d},e.a.createElement(l.a.Item,{name:"polls_name",label:"\u95EE\u5377\u6807\u9898\uFF1A",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u95EE\u5377\u6807\u9898"}]},e.a.createElement(O.a,{maxLength:60,placeholder:"\u95EE\u5377\u6807\u9898\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26"})),e.a.createElement(l.a.Item,{label:"\u95EE\u5377\u987B\u77E5\uFF1A",name:"polls_description"},e.a.createElement(O.a.TextArea,{rows:6,maxLength:100,placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u672C\u6B21\u95EE\u5377\u7B54\u9898\u7684\u76F8\u5173\u8BF4\u660E\uFF0C\u6700\u5927\u9650\u5236100\u4E2A\u5B57\u7B26"})),e.a.createElement(l.a.Item,{className:"tr"},e.a.createElement(y.a,{type:"primary",onClick:Object(L.a)(D.a.mark(function N(){var i,c,P;return D.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,d.validateFields();case 2:return i=d.getFieldValue(),i.is_md=!0,a.next=6,Object(C.d)(Object(U.a)(Object(U.a)({},i),u));case 6:c=a.sent,c.status===0&&(Object(x.R)(["\u6559\u5B66\u8BFE\u5802","\u95EE\u5377","\u65B0\u5EFA\u95EE\u5377"]),M.c.push("/classrooms/".concat(u.coursesId,"/poll/").concat((P=c.data)===null||P===void 0?void 0:P.id,"/edit")));case 8:case"end":return a.stop()}},N)}))},"\u4FDD\u5B58")))))};m.default=Object(M.a)(function(o){var t=o.classroomList,n=o.loading,f=o.user,v=o.globalSetting;return{classroomList:t,globalSetting:v,user:f,loading:n.effects}})(W)}}]);

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save