dev_local_v5_hhsly
parent
5c786140bd
commit
86dd762a06
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
@ -1 +0,0 @@
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[135],{CMPU:function(v,f,e){v.exports={flex_box_center:"flex_box_center___2FoeH",flex_space_between:"flex_space_between___3DwbI",flex_box_vertical_center:"flex_box_vertical_center___1PONl",flex_box_center_end:"flex_box_center_end___25S1m",flex_box_column:"flex_box_column___2ZQoW",wrap:"wrap___2bkUH",head:"head___22v9O",import:"import___140qI",formWrap:"formWrap___1a5Fi",btns:"btns___2uxMu",selectbtn:"selectbtn___1Blrz",batch:"batch___1zqyc",formWraps:"formWraps___3Jr2t"}},iCkP:function(v,f,e){"use strict";e.r(f);var re=e("g9YV"),W=e("wCAj"),le=e("+L6B"),U=e("2/Rp"),oe=e("14J3"),T=e("BMrR"),me=e("OaEy"),M=e("2fM7"),A=e("WmNS"),i=e.n(A),E=e("k1fw"),P=e("9og8"),ie=e("y8nQ"),y=e("Vl3Y"),u=e("tJVT"),L=e("CiB2"),d=e("q1tI"),t=e.n(d),K=e("CMPU"),p=e.n(K),h=e("ErOA"),F=e("LvDl"),x=e.n(F),S=function(k){Object(L.a)(k);var m={page:1,per_page:1e5,total:100},w=y.a.useForm(),N=Object(u.a)(w,1),V=N[0],J=Object(d.useState)([]),R=Object(u.a)(J,2),$=R[0],z=R[1],H=Object(d.useState)({}),g=Object(u.a)(H,2),Q=g[0],Y=g[1],G=Object(d.useState)([]),j=Object(u.a)(G,2),Z=j[0],I=j[1],X=Object(d.useState)(!1),B=Object(u.a)(X,2),q=B[0],C=B[1];Object(d.useEffect)(function(){ee()},[]);function ee(){return D.apply(this,arguments)}function D(){return D=Object(P.a)(i.a.mark(function s(){var _;return i.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Object(h.a)("/api/common_exercises/subjects.json",{method:"get",params:m});case 2:_=n.sent,_.status===0&&(z(_.data),O(m,{}));case 4:case"end":return n.stop()}},s)})),D.apply(this,arguments)}var O=function(){var s=Object(P.a)(i.a.mark(function _(){var o,n,c,r,a=arguments;return i.a.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return o=a.length>0&&a[0]!==void 0?a[0]:m,n=a.length>1&&a[1]!==void 0?a[1]:{},c=x.a.pickBy(Object(E.a)(Object(E.a)({},o),n),function(b){return!!b}),l.next=5,Object(h.a)("/api/common_exercises/subjects/statistics.json",{method:"get",params:c});case 5:r=l.sent,r.status===0&&I(r==null?void 0:r.data);case 7:case"end":return l.stop()}},_)}));return function(){return s.apply(this,arguments)}}(),te=function(){var s=Object(P.a)(i.a.mark(function _(){var o,n,c,r,a=arguments;return i.a.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return o=a.length>0&&a[0]!==void 0?a[0]:m,n=a.length>1&&a[1]!==void 0?a[1]:{},c=x.a.pickBy(Object(E.a)(Object(E.a)({},o),n),function(b){return!!b}),l.next=5,Object(h.a)("/api/common_exercises/points/statistics.json",{method:"get",params:c});case 5:r=l.sent,r.status===0&&I(r==null?void 0:r.children);case 7:case"end":return l.stop()}},_)}));return function(){return s.apply(this,arguments)}}(),_e=function(_){Y(_),O(m,_)},ae=[{title:"\u79D1\u76EE\u540D\u79F0",dataIndex:"name",key:"name",render:function(_,o){return t.a.createElement("span",{onClick:function(){te(m,{exercise_subject_id:o.id}),C(!0)},style:{cursor:"pointer",color:"#1890FF"}},_)}},{title:"\u5355\u9009\u9898",dataIndex:"item_0",key:"item_0"},{title:"\u591A\u9009\u9898",dataIndex:"item_1",key:"item_1"},{title:"\u5224\u65AD\u9898",dataIndex:"item_2",key:"item_2"},{title:"\u586B\u7A7A\u9898",dataIndex:"item_3",key:"item_3"},{title:"\u95EE\u7B54\u9898",dataIndex:"item_4",key:"item_4"},{title:"\u7F16\u7A0B\u9898",dataIndex:"item_6",key:"item_6"},{title:"\u5B9E\u8BAD\u9898",dataIndex:"item_5",key:"item_5"}],ne=[{title:"\u77E5\u8BC6\u70B9\u540D\u79F0",dataIndex:"name",key:"name"},{title:"\u5355\u9009\u9898",dataIndex:"item_0",key:"item_0"},{title:"\u591A\u9009\u9898",dataIndex:"item_1",key:"item_1"},{title:"\u5224\u65AD\u9898",dataIndex:"item_2",key:"item_2"},{title:"\u586B\u7A7A\u9898",dataIndex:"item_3",key:"item_3"},{title:"\u95EE\u7B54\u9898",dataIndex:"item_4",key:"item_4"},{title:"\u7F16\u7A0B\u9898",dataIndex:"item_6",key:"item_6"},{title:"\u5B9E\u8BAD\u9898",dataIndex:"item_5",key:"item_5"}];return t.a.createElement("div",null,t.a.createElement("div",{className:p.a.wrap},t.a.createElement("div",{className:p.a.head},t.a.createElement("span",{style:{flex:"1"}},"\u8BD5\u9898\u7EDF\u8BA1")),t.a.createElement("div",{style:{padding:" 30px"}},t.a.createElement(y.a,{form:V,layout:"inline",size:"large",onFinish:_e},t.a.createElement(T.a,{style:{flex:"1"}},t.a.createElement(y.a.Item,{label:"\u79D1\u76EE\u540D\u79F0",name:"exercise_subject_id"},t.a.createElement(M.a,{showSearch:!0,optionFilterProp:"children",style:{width:"300px"}},$.map(function(s,_){return t.a.createElement(M.a.Option,{value:s.id},s.name)})))),t.a.createElement(U.a,{type:"primary",className:p.a.selectbtn,htmlType:"submit"},"\u67E5\u8BE2")))),t.a.createElement("div",{style:{background:"#fafafa",height:"20px"}}),t.a.createElement("div",{className:p.a.wrap,style:{padding:"40px 40px"}},t.a.createElement(U.a,{onClick:function(){C(!1),O(m,Q)}}," \u8FD4\u56DE\u79D1\u76EE\u5217\u8868"),t.a.createElement(W.a,{style:{marginTop:"15px"},columns:q?ne:ae,dataSource:Z,pagination:!1})))};f.default=S}}]);
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue