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.
2 lines
23 KiB
2 lines
23 KiB
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[7699],{87061:function(ce,K,u){u.d(K,{Z:function(){return J}});var a=u(59301),L=u(46420),W=u(13879),J=()=>{const[y,F]=(0,a.useState)(""),[b,G]=(0,a.useState)(0);let[c,Z]=(0,a.useState)(),[n,x]=(0,a.useState)();const[M,te]=(0,a.useState)(!1),V=(0,a.useRef)("");(0,a.useEffect)(()=>L.Z.subscribe("preview-image",k=>{F(k),console.log(r.current),document.body.style.overflow="hidden"}),[]),(0,a.useEffect)(()=>(document.addEventListener("keydown",R),()=>{document.removeEventListener("keydown",R)}),[]),(0,a.useEffect)(()=>{V.current=y},[y]);function R(N){N.keyCode==27&&V.current&&U()}function U(){document.body.style.overflow="auto",Z(void 0),x(void 0),G(0),F("")}function Q(){G(b+90)}function $(){c=r.current.width*1.1,n=r.current.height*1.1,x(n),Z(c)}function se(){c=r.current.width/1.1,n=r.current.height/1.1,x(n),Z(c)}const l=(0,a.useRef)(),m=(0,a.useRef)(),r=(0,a.useRef)(),v=N=>{(N.nativeEvent.target===l.current||N.nativeEvent.target===m.current)&&U()};return a.createElement(a.Fragment,null,y?a.createElement("div",null,a.createElement("div",{className:"preview-wrp-group",ref:m},a.createElement(W.Z,{className:"image-preview",src:y,style:{display:"none"},preview:{visible:!0,src:y,movable:!1,onVisibleChange:N=>{F("")}},alt:"\u9884\u89C8\u5927\u56FE"}))):null)}},87071:function(ce,K,u){u.d(K,{Z:function(){return oe}});var a=u(59301),L=u(92832),W=u(8591),J=u(43418),y=u(71418),F=u(95237),b=u(43604),G=u(46651),c=u(24905),Z=u(94001),n=u(22415),x={modalWrapper:"modalWrapper___rWDvO",exportSettingWrapper:"exportSettingWrapper___pCClH",imgPreviewPart:"imgPreviewPart___PCv0Y",tips:"tips___EVeBl",pottedLine:"pottedLine___AaY68",text:"text___ho3u_"},M=u(77530),te=u(7735),V=u(59504),R=u(46420),U=u(53068),Q=u(87061),$="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAAAECAYAAADLcnBRAAAAAXNSR0IArs4c6QAAAcNJREFUSEvtlT1oFFEURs+dndmAqGBAMCAoKAqChT+lYGER6xQLlsGdXWMQFETbtREhjQgmuxmLdJIEi1SxCdjYRpCQbkEhoihioYjMneyVCDtMCuG+fqedc9437775ZoTRNZrAaAL/nYDs3bFZTmjB0dA5Jbt8kRfseD2b4YgOOOXlh1wCv6XHttezFWq6wQUvX+WSa7yTBrte19qcUzjg5cs9RfRlgR9ez5oc1xrHvHyZE/NNnvPR69kdDmvOGS9f5gh/pMtWiJe3uRzCl1kTvJcOude1Gc7qgENevswxPvwrSN6kB7RCF5CIuWSRB16vSGkMjGUvX3LCZj3jkteze4zrT757+X0FSRgPeXHzJpsQXsYoohEvsup9Rk2ZM+O+lx9ykdCLM255PU2ZNOO1l6+cUb+ecdrrWYdYd1Avv++MxjgZUnpNeWPG1dCsCJrDgsyKcD10AYFXccaS19MWVzAeevkK108y7no9u83BQnnp5atcnHBD5vnldTXlKYT/FanxJOny1ptTtJm2AVNefsgZrNcz5r2etbhYGI+8fCXncz3zf2StQ1R8Yi00Z4+Pa9yULl+9rqY8Bs57+ZKLePYXdsiA6BdYLZkAAAAASUVORK5CYII=",se="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAn4AAAAECAYAAAAQ9jLuAAAAAXNSR0IArs4c6QAABLVJREFUaEPtmVuIVVUYgL+1z17H0S6kliWaJdlVS7pQBHajoLAMKpjo8hKdfc7MiNmoaA8Fx4IIjMzIuZx9sijLrkRGGURQdHkJjSy7G2bqWHaTKbO99pw/ztRs9rz9ax58qHPeDnzf+tf6/7XWXmtvQ+vXykArA60MtDLQykArA60MtDLwv8iAaY5SFnKCSznGd8R2iL2mzi6tJ51MdA1O0vIjnIUDpp/PtJ48T8G9xdlaPs/Zy/nItDOkdaXCGQ4maPlsTAHbTS+/aj0pMd0VOE7LZ3FC9pm1fKf1ZBFHuoRTtHwWx3DQ9PGpj5dUOM+Hz2JNZaupkmhd6eRU1+AILZ/FEXaYGj9pPSkz1RmmafncXPjF9PKt1pNlHOYGOV3L59aRM/187ONJmXOcIfBxmqydwDazmj+1nnQxyw1xlJbPxtTG92YNP2g96WCKE2Zo+SxOgd9MD99oPanS5gaYo+Vzc65hamzx8aTCXAfWxxmuUYEvTA+/az0pMdMVmKzlszFZ9phH2dP8P+Y6G3aaPn7Uxj5kde5mvDvAbG2//tN1FnabGgPaXMhCJruUmVo+t18Oml6+1HpSpegGOEvL5znbx2ZjEK0rHcxxQpuWz82Hr02N/VpPysxwhilaPovz75lt+OCXlOgHyr6NmIBVtsZyrZdGtDeE57R8xhm2FGPO1XrSzSQ3yM9aflShLZN8DmRJaXiT9j5kBgHtYY0XtH10EatEWKblR7jA0B/GdGg9F3GlCG9o+VyNthdjZmk9qRK6XTgtP6pG4zjR5zDrIt4W4RLfWAGUwjqPaT0XcbcI92n5XO42FGNu1nquwoUyxAdafoQzsM/W/TYLF/GHyBguNpa5ppet2j66EhsFFmj5jAtYUqyxWuslZe6gwRotn8vd67bO1VpPImY78bsINds2hr9s7PfgcCUGBP9LoQm4yNZ4TzumpMRTwK1aPstdwEpbo9r87yJeFeEa3zaA7mKdh7VeErEY0fNZXw2v2Vjfv+EHfcon2n7l5tNBW2e8j+dK7BU41scZnlMh82wf72u9JGI9wi1aPjemqq2zUuulFW5rDLFOy+dq9K6NuVjrSRfHu4SdWj7P2emM83nJkER8hXCyb6zAMD+M2aT10hI9DejU8rncPWRjlo4c/BYaw1XejcBLYcwTWs+VmYewQsvnuO025k6tJ10cnjo2aPk8F1pu8rkFu2h4c/F+i0mBB3wWY3ORSIPrfccksKkY06P1mm94UtEv3pF2BQaKsf7yIFWCdDevaPs1qkYFbve5/buI+4EzvWMFPGL7eVPrpRVulIb/gxF4x8Y8qI0jZU5LhVVaPlej/cXYr38u4kVgnG+ssMAi08cOrdc8NAMXaPlsIxPqYV0/j9IKC6Shn6e5/nxoY+7V9q95I0+FtVo+xzkb+63zJOJJAxN9Y4UBK3y+pLiIJcBlvnGM8ExY/2c/dmXuQTjfuw2Iw5iNWi+NuFYg0vKHvM5CYuvc4NO/MdfZstz08Lk2liuzFOFSLZ+tRXg6jHlW67mIK4DFWj7HbbMxd2k9KXN0Kjyu5Uc9a6ZxnamSat00ok/w/+ojQrVYZ7M2TlKm0wjztXyuRi+HMev+Bu2qoBRawxtVAAAAAElFTkSuQmCC",l=u(59301),m=Object.defineProperty,r=Object.getOwnPropertySymbols,v=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable,k=(g,_,i)=>_ in g?m(g,_,{enumerable:!0,configurable:!0,writable:!0,value:i}):g[_]=i,P=(g,_)=>{for(var i in _||(_={}))v.call(_,i)&&k(g,i,_[i]);if(r)for(var i of r(_))N.call(_,i)&&k(g,i,_[i]);return g},Y=(g,_,i)=>new Promise((H,C)=>{var p=B=>{try{T(i.next(B))}catch(O){C(O)}},h=B=>{try{T(i.throw(B))}catch(O){C(O)}},T=B=>B.done?H(B.value):Promise.resolve(B.value).then(p,h);T((i=i.apply(g,_)).next())});const{TextArea:D}=L.default,z=({exercise:g,loading:_,dispatch:i})=>{var H;const{workSetting:C}=g,p=(0,M.useParams)();p.category=p.categoryId||p.exerciseId,p.categoryId=p.categoryId||p.exerciseId;const[h,T]=(0,a.useState)(!1),[B,O]=(0,a.useState)(!1);let[o,f]=(0,a.useState)({file_list:[],attachment_id:"",show_title:!1,show_body:!1,show_info:!1,show_table:!1,show_user:!1,show_no:!1,show_group:!1,show_phone:!1,show_school_name:!1,export_page_num:40,show_desc:!1,description:""});(0,a.useEffect)(()=>{q()},[C]),(0,a.useEffect)(()=>{g.actionTabs.key==="exportSetting"&&!(C!=null&&C.exercise_header)&&i({type:"exercise/getWorkSetting",payload:P({},p)})},[g.actionTabs.key]);const q=()=>{var t,w,I,S;const A=JSON.parse(JSON.stringify(C));Object.keys(o).forEach(re=>{var ae;o[re]=(ae=A==null?void 0:A.exercise_header)==null?void 0:ae[re]}),o.file_list=(t=A==null?void 0:A.exercise_header)!=null&&t.attachment_id?[{uid:(w=A==null?void 0:A.exercise_header)==null?void 0:w.attachment_id,id:(I=A==null?void 0:A.exercise_header)==null?void 0:I.attachment_id,url:(S=A==null?void 0:A.exercise_header)==null?void 0:S.photo_url}]:[],f(o)},ne=()=>{var t,w,I;const S=JSON.parse(JSON.stringify(o));S.categoryId=p.categoryId,S.attachment_id=((I=(w=(t=S.file_list)==null?void 0:t[0])==null?void 0:w.response)==null?void 0:I.id)||null,j(S)},j=t=>Y(void 0,null,function*(){O(!0),(yield(0,te.ZP)(`/api/exercises/${p==null?void 0:p.categoryId}/foramt_settings.json`,{method:"post",body:t})).status===0&&(W.ZP.success("\u66F4\u65B0\u6210\u529F"),i({type:"exercise/getCommonHeader",payload:P({},p)}),i({type:"exercise/getWorkSetting",payload:P({},p)}),i({type:"exercise/getExerciseExportHeadData",payload:{id:p.exerciseId||p.categoryId,identify:p.userId||null}}),O(!1))}),ue={disabled:h,multiple:!1,listType:"picture-card",onPreview:t=>{R.Z.publish("preview-image",t.thumbUrl||t.url)},withCredentials:!0,fileList:o.file_list,beforeUpload:t=>t.size/1024>200?(W.ZP.error("\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(200KB),\u5EFA\u8BAE\u4E0A\u4F20\u5230\u767E\u5EA6\u4E91\u7B49\u5176\u5B83\u5171\u4EAB\u5DE5\u5177\u91CC\uFF0C\u7136\u540E\u518Dtxt\u6587\u6863\u91CC\u7ED9\u51FA\u94FE\u63A5\u4EE5\u53CA\u5171\u4EAB\u5BC6\u7801\u5E76\u4E0A\u4F20"),!1):!0,action:`${U.Z.API_SERVER}/api/attachments.json`,onChange(t){let w=t.fileList.filter(I=>!!I.status);o.file_list=w,f(Object.assign({},o))},onRemove:t=>Y(void 0,null,function*(){return o.file_list=[],f(Object.assign({},o)),!0})};return l.createElement(J.default,{title:"\u5BFC\u51FA\u8BBE\u7F6E",className:x.modalWrapper,width:900,centered:!0,open:g.actionTabs.key==="exportSetting",onOk:()=>ne(),onCancel:()=>{q(),i({type:"exercise/setActionTabs",payload:{}})}},l.createElement("section",{className:x.exportSettingWrapper},l.createElement(y.Z,{spinning:_["exercise/getWorkSetting"]||B},l.createElement(F.Z,{wrap:!1,justify:"space-between"},l.createElement(b.Z,null,l.createElement(F.Z,{align:"middle"},l.createElement("div",null,"\u5377\u5934\u5DE6\u89D2\u6807"),l.createElement("span",{className:x.tips},"\u56FE\u7247\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A700px*500px\uFF0C\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC7200k")),l.createElement("div",{className:"mt15"},l.createElement(G.default,P({},ue),!((H=o.file_list)!=null&&H.length)&&l.createElement("div",null,l.createElement(n.Z,null),l.createElement("div",{style:{marginTop:8}},"\u4E0A\u4F20")))),l.createElement(b.Z,{span:24,className:"mt15"},l.createElement(c.default,{checked:o.show_title,disabled:h,onChange:t=>{o.show_title=t.target.checked,f(Object.assign({},o))}},l.createElement("div",null,"\u5C55\u793A\u8BD5\u5377\u6807\u9898"))),l.createElement(b.Z,{span:24,className:"mt15"},l.createElement(c.default,{checked:o.show_body,disabled:h,onChange:t=>{o.show_body=t.target.checked,f(Object.assign({},o))}},l.createElement("div",null,"\u5C55\u793A\u8003\u8BD5\u5185\u5BB9\uFF08\u5373\u672C\u8BD5\u5377\u6240\u5C5E\u8BFE\u7A0B\u540D\u79F0\uFF09"))),l.createElement(b.Z,{span:24,className:"mt15"},l.createElement(c.default,{checked:o.show_info,disabled:h,onChange:t=>{o.show_info=t.target.checked,f(Object.assign({},o))}},l.createElement("div",null,"\u5C55\u793A\u9898\u91CF\u3001\u5206\u503C\u3001\u8003\u8BD5\u65F6\u957F"))),l.createElement(b.Z,{span:24,className:"mt15"},l.createElement(c.default,{checked:o.show_table,disabled:h,onChange:t=>{o.show_table=t.target.checked,f(Object.assign({},o))}},l.createElement("div",null,"\u5C55\u793A\u5F97\u5206\u3001\u8BC4\u5206\u8868\u683C"))),l.createElement(F.Z,{align:"middle",className:`mt20 ${x.pottedLine}`},l.createElement(b.Z,null,l.createElement("img",{src:$,alt:""})),l.createElement(b.Z,{className:x.text},"\u5BC6\u5C01\u7EBF\u533A\u57DF\u8BBE\u7F6E"),l.createElement(b.Z,null,l.createElement("img",{src:$,alt:""}))),l.createElement(F.Z,{className:"mt15",justify:"center",style:{width:320}},l.createElement(c.default,{className:"pl8",checked:o.show_user,disabled:h,onChange:t=>{o.show_user=t.target.checked,f(Object.assign({},o))}},l.createElement("div",null,"\u59D3\u540D")),l.createElement(c.default,{checked:o.show_no,disabled:h,onChange:t=>{o.show_no=t.target.checked,f(Object.assign({},o))}},l.createElement("div",null,"\u5B66\u53F7")),l.createElement(c.default,{checked:o.show_group,disabled:h,onChange:t=>{o.show_group=t.target.checked,f(Object.assign({},o))}},l.createElement("div",null,"\u4E13\u4E1A\u73ED\u7EA7")),l.createElement(c.default,{checked:o.show_school_name,disabled:h,onChange:t=>{o.show_school_name=t.target.checked,f(Object.assign({},o))}},l.createElement("div",null,"\u5B66\u6821/\u5355\u4F4D")),l.createElement(c.default,{checked:o.show_phone,disabled:h,onChange:t=>{o.show_phone=t.target.checked,f(Object.assign({},o))}},l.createElement("div",null,"\u624B\u673A\u53F7"))),l.createElement("img",{src:se,alt:"",className:"mt15",style:{width:320}}),l.createElement(b.Z,{span:24,className:"mt15"},l.createElement("span",null,"\u6BCF\u9875\u5BFC\u51FA\u6700\u5927\u8BD5\u9898\u6570\uFF1A"),l.createElement(Z.Z,{size:"middle",min:1,value:o.export_page_num?o.export_page_num:40,onChange:t=>{o.export_page_num=t,f(P({},o))}}),l.createElement("span",{className:"ml10"},"\u9898")),l.createElement(F.Z,{className:"mt15"},l.createElement(c.default,{checked:o.show_desc,disabled:h,onChange:t=>{o.show_desc=t.target.checked,f(Object.assign({},o))}},l.createElement("div",null,"\u8003\u8BD5\u987B\u77E5")))),l.createElement(b.Z,{className:x.imgPreviewPart},l.createElement("div",{className:"pb10"},"\u793A\u4F8B\u56FE\u7247\u9884\u89C8\uFF1A"),l.createElement("img",{src:V.qz})))),l.createElement(Q.Z,null)))};var oe=(0,M.connect)(({exercise:g,loading:_,globalSetting:i})=>({exercise:g,loading:_.effects,globalSetting:i}))(z)},7699:function(ce,K,u){u.d(K,{Z:function(){return se}});var a=u(59301),L=u(77530),W=u(95237),J=u(14491),y={wrap:"wrap___SSpd0",img:"img___nbd2O",table:"table___fcP71",totalScore:"totalScore___YxSMe",people:"people___bf9pK",glassSeal:"glassSeal___dYhKO",paperHeader:"paperHeader___gYUbq",exportBtn:"exportBtn___nyRYQ"},F=u(19150),b=u(9804),G=u(87071),c=u(32815),Z=u(53068),n=u(59301),x=Object.defineProperty,M=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable,R=(l,m,r)=>m in l?x(l,m,{enumerable:!0,configurable:!0,writable:!0,value:r}):l[m]=r,U=(l,m)=>{for(var r in m||(m={}))te.call(m,r)&&R(l,r,m[r]);if(M)for(var r of M(m))V.call(m,r)&&R(l,r,m[r]);return l},Q=(l,m,r)=>new Promise((v,N)=>{var k=D=>{try{Y(r.next(D))}catch(z){N(z)}},P=D=>{try{Y(r.throw(D))}catch(z){N(z)}},Y=D=>D.done?v(D.value):Promise.resolve(D.value).then(k,P);Y((r=r.apply(l,m)).next())});const $=({isPreview:l=!1,isExportBlank:m=!1,activeTabs:r,exercise:v,globalSetting:N,loading:k,user:P,dispatch:Y,showExportBtn:D=!1,sealStyle:z={}})=>{var oe,g,_,i,H,C,p,h,T,B,O,o,f,q,ne;const j=(0,L.useParams)(),{userInfo:ue}=P,[t,w]=(0,a.useState)(),[I,S]=(0,a.useState)();let A=(0,a.useRef)(null);const[re,ae]=(0,a.useState)(21),[E,ve]=(0,a.useState)([]),de=(0,a.useRef)(!0);(0,a.useEffect)(()=>{Q(void 0,null,function*(){if(!de.current)return;de.current=!1;const s=yield(0,F.cV)({id:j.exerciseId||j.categoryId});s.status==0&&ve(s.data)}),(0,b.W)(r)||r==="2"&&_e()},[j.userId,j.coursesId,j.exerciseId,j.categoryId,r]),(0,a.useEffect)(()=>{A.current&&ae(A.current.clientHeight)},[A.current]),(0,a.useEffect)(()=>{var s;if((s=v.exerciseExportHeadData)!=null&&s.title){const ee=v.exerciseExportHeadData;w(U({},ee||{}));const{table:e}=ee||{};let X,le;(e!=null&&e.total_singles_scores||e!=null&&e.total_doubles_scores||e!=null&&e.total_nulls_scores||e!=null&&e.total_judges_scores||e!=null&&e.total_pros_scores||e!=null&&e.total_shixuns_scores||e!=null&&e.total_mains_scores||e!=null&&e.total_combination_scores||e!=null&&e.total_bpros_scores)&&(X=Number(e==null?void 0:e.total_singles_scores)+Number(e==null?void 0:e.total_doubles_scores)+Number(e==null?void 0:e.total_nulls_scores)+Number(e==null?void 0:e.total_judges_scores)+Number(e==null?void 0:e.total_bpros_scores)+Number(e==null?void 0:e.total_pros_scores)+Number(e==null?void 0:e.total_shixuns_scores)+Number(e==null?void 0:e.total_mains_scores)+Number(e==null?void 0:e.total_combination_scores)),(e!=null&&e.singles_scores||e!=null&&e.doubles_scores||e!=null&&e.nulls_scores||e!=null&&e.judges_scores||e!=null&&e.pros_scores||e!=null&&e.bpros_scores||e!=null&&e.shixuns_scores||e!=null&&e.mains_scores||e!=null&&e.combination_scores)&&(le=Number(e==null?void 0:e.singles_scores)+Number(e==null?void 0:e.doubles_scores)+Number(e==null?void 0:e.nulls_scores)+Number(e==null?void 0:e.judges_scores)+Number(e==null?void 0:e.pros_scores)+Number(e==null?void 0:e.bpros_scores)+Number(e==null?void 0:e.shixuns_scores)+Number(e==null?void 0:e.mains_scores)+Number(e==null?void 0:e.combination_scores));const ie=[{key:"1",name:"\u5E94\u5F97\u5206",singles_score:(e==null?void 0:e.total_singles_scores)||0,doubles_score:(e==null?void 0:e.total_doubles_scores)||0,nulls_score:(e==null?void 0:e.total_nulls_scores)||0,judges_score:(e==null?void 0:e.total_judges_scores)||0,pros_score:(e==null?void 0:e.total_pros_scores)||0,bpros_score:(e==null?void 0:e.total_bpros_scores)||0,shixuns_score:(e==null?void 0:e.total_shixuns_scores)||0,mains_score:(e==null?void 0:e.total_mains_scores)||0,total_combination_scores:(e==null?void 0:e.total_combination_scores)||0,total_score:X||0},{key:"2",name:"\u5B9E\u5F97\u5206",singles_score:(e==null?void 0:e.singles_scores)||0,doubles_score:(e==null?void 0:e.doubles_scores)||0,nulls_score:(e==null?void 0:e.nulls_scores)||0,judges_score:(e==null?void 0:e.judges_scores)||0,pros_score:(e==null?void 0:e.pros_scores)||0,bpros_score:(e==null?void 0:e.bpros_scores)||0,shixuns_score:(e==null?void 0:e.shixuns_scores)||0,mains_score:(e==null?void 0:e.mains_scores)||0,total_combination_scores:(e==null?void 0:e.combination_scores)||0,total_score:le||0},{key:"3",name:"\u8BC4\u5377\u4EBA"}],me=[{key:"1",name:"\u5E94\u5F97\u5206",singles_score:(e==null?void 0:e.total_singles_scores)||0,doubles_score:(e==null?void 0:e.total_doubles_scores)||0,nulls_score:(e==null?void 0:e.total_nulls_scores)||0,judges_score:(e==null?void 0:e.total_judges_scores)||0,pros_score:(e==null?void 0:e.total_pros_scores)||0,bpros_score:(e==null?void 0:e.total_bpros_scores)||0,shixuns_score:(e==null?void 0:e.total_shixuns_scores)||0,mains_score:(e==null?void 0:e.total_mains_scores)||0,total_combination_scores:(e==null?void 0:e.total_combination_scores)||0,total_score:X||0},{key:"2",name:"\u5B9E\u5F97\u5206"},{key:"3",name:"\u8BC4\u5377\u4EBA"}];S([...m?me:ie])}},[v.exerciseExportHeadData]);const _e=()=>Q(void 0,null,function*(){const s={id:j.exerciseId||j.categoryId,identify:(ue==null?void 0:ue.login)||null},ee=yield(0,F.iw)(s);w(ee||{});const{table:e}=ee||{};let X,le;(e!=null&&e.total_singles_scores||e!=null&&e.total_doubles_scores||e!=null&&e.total_nulls_scores||e!=null&&e.total_judges_scores||e!=null&&e.total_pros_scores||e!=null&&e.total_bpros_scores||e!=null&&e.total_shixuns_scores||e!=null&&e.total_mains_scores||e!=null&&e.total_combination_scores)&&(X=Number(e==null?void 0:e.total_singles_scores)+Number(e==null?void 0:e.total_doubles_scores)+Number(e==null?void 0:e.total_nulls_scores)+Number(e==null?void 0:e.total_bpros_scores)+Number(e==null?void 0:e.total_judges_scores)+Number(e==null?void 0:e.total_pros_scores)+Number(e==null?void 0:e.total_shixuns_scores)+Number(e==null?void 0:e.total_mains_scores)+Number(e==null?void 0:e.total_combination_scores)),(e!=null&&e.singles_scores||e!=null&&e.doubles_scores||e!=null&&e.nulls_scores||e!=null&&e.judges_scores||e!=null&&e.pros_scores||e!=null&&e.bpros_scores||e!=null&&e.shixuns_scores||e!=null&&e.mains_scores||e!=null&&e.combination_scores)&&(le=Number(e==null?void 0:e.singles_scores)+Number(e==null?void 0:e.doubles_scores)+Number(e==null?void 0:e.bpros_scores)+Number(e==null?void 0:e.nulls_scores)+Number(e==null?void 0:e.judges_scores)+Number(e==null?void 0:e.pros_scores)+Number(e==null?void 0:e.shixuns_scores)+Number(e==null?void 0:e.mains_scores)+Number(e==null?void 0:e.combination_scores));const ie=[{key:"1",name:"\u5E94\u5F97\u5206",singles_score:(e==null?void 0:e.total_singles_scores)||0,doubles_score:(e==null?void 0:e.total_doubles_scores)||0,nulls_score:(e==null?void 0:e.total_nulls_scores)||0,judges_score:(e==null?void 0:e.total_judges_scores)||0,pros_score:(e==null?void 0:e.total_pros_scores)||0,bpros_score:(e==null?void 0:e.total_bpros_scores)||0,shixuns_score:(e==null?void 0:e.total_shixuns_scores)||0,mains_score:(e==null?void 0:e.total_mains_scores)||0,total_combination_scores:(e==null?void 0:e.total_combination_scores)||0,total_score:X||0},{key:"2",name:"\u5B9E\u5F97\u5206",singles_score:(e==null?void 0:e.singles_scores)||0,doubles_score:(e==null?void 0:e.doubles_scores)||0,nulls_score:(e==null?void 0:e.nulls_scores)||0,judges_score:(e==null?void 0:e.judges_scores)||0,pros_score:(e==null?void 0:e.pros_scores)||0,bpros_score:(e==null?void 0:e.bpros_scores)||0,shixuns_score:(e==null?void 0:e.shixuns_scores)||0,mains_score:(e==null?void 0:e.mains_scores)||0,total_combination_scores:(e==null?void 0:e.combination_scores)||0,total_score:le||0},{key:"3",name:"\u8BC4\u5377\u4EBA"}];S(m?[{key:"1",name:"\u5E94\u5F97\u5206"},{key:"2",name:"\u5B9E\u5F97\u5206"},{key:"3",name:"\u8BC4\u5377\u4EBA"}]:ie)}),pe=[{width:"10%",title:"\u9898\u578B",align:"center",dataIndex:"name",render:s=>n.createElement("a",null,s)},{title:((oe=E==null?void 0:E.find(s=>s.value==c.f[0].nameType))==null?void 0:oe.name)||"\u5355\u9009\u9898",align:"center",dataIndex:"singles_score",render:s=>n.createElement("a",null,s==="0.0"?0:s)},{title:((g=E==null?void 0:E.find(s=>s.value==c.f[1].nameType))==null?void 0:g.name)||"\u591A\u9009\u9898",align:"center",dataIndex:"doubles_score",render:s=>n.createElement("a",null,s==="0.0"?0:s)},{title:((_=E==null?void 0:E.find(s=>s.value==c.f[3].nameType))==null?void 0:_.name)||"\u586B\u7A7A\u9898",align:"center",dataIndex:"nulls_score",render:s=>n.createElement("a",null,s==="0.0"?0:s)},{title:((i=E==null?void 0:E.find(s=>s.value==c.f[2].nameType))==null?void 0:i.name)||"\u5224\u65AD\u9898",align:"center",dataIndex:"judges_score",render:s=>n.createElement("a",null,s==="0.0"?0:s)},{title:((H=E==null?void 0:E.find(s=>s.value==c.f[6].nameType))==null?void 0:H.name)||"\u7F16\u7A0B\u9898",align:"center",dataIndex:"pros_score",render:s=>n.createElement("a",null,s==="0.0"?0:s)},{title:((C=E==null?void 0:E.find(s=>s.value==c.f[5].nameType))==null?void 0:C.name)||"\u5B9E\u8BAD\u9898",align:"center",dataIndex:"shixuns_score",render:s=>n.createElement("a",null,s==="0.0"?0:s)},{title:((p=E==null?void 0:E.find(s=>s.value==c.f[4].nameType))==null?void 0:p.name)||"\u7B80\u7B54\u9898",align:"center",dataIndex:"mains_score",render:s=>n.createElement("a",null,s==="0.0"?0:s)},{title:((h=E==null?void 0:E.find(s=>s.value==c.f[7].nameType))==null?void 0:h.name)||"\u7EC4\u5408\u9898",align:"center",dataIndex:"total_combination_scores",render:s=>n.createElement("a",null,s==="0.0"?0:s)},{title:((T=E==null?void 0:E.find(s=>s.value==c.f[8].nameType))==null?void 0:T.name)||"\u7A0B\u5E8F\u586B\u7A7A\u9898",align:"center",dataIndex:"bpros_score",render:s=>n.createElement("a",null,s==="0.0"?0:s)},{width:"10%",title:"\u603B\u5206",align:"center",dataIndex:"total_score",render:s=>n.createElement("a",null,s==="0.0"?0:s==null?void 0:s.toFixed(1))}],{exercise_header:d}=t||{};return n.createElement(n.Fragment,null,((d==null?void 0:d.show_user)||(d==null?void 0:d.show_no)||(d==null?void 0:d.show_group))&&n.createElement("section",{className:y.glassSeal,style:z},(d==null?void 0:d.show_user)&&n.createElement("span",null,"\u59D3\u540D\uFF1A",n.createElement("span",null,t==null?void 0:t.user)),(d==null?void 0:d.show_no)&&n.createElement("span",null,"\u5B66\u53F7\uFF1A",n.createElement("span",null,t==null?void 0:t.student_id)),(d==null?void 0:d.show_group)&&n.createElement("span",null,"\u4E13\u4E1A\u73ED\u7EA7\uFF1A",n.createElement("span",null,t==null?void 0:t.group_name)),(d==null?void 0:d.show_school_name)&&n.createElement("span",null,"\u5B66\u6821/\u5355\u4F4D\uFF1A",n.createElement("span",null,t==null?void 0:t.school_name)),(d==null?void 0:d.show_phone)&&n.createElement("span",null,"\u624B\u673A\u53F7\uFF1A",n.createElement("span",null,t==null?void 0:t.phone))),n.createElement("section",{className:`${y.wrap} ${l?"pl20":""} `},(t==null?void 0:t.photo_url)&&n.createElement("img",{className:y.img,src:`${Z.Z.API_SERVER}${t==null?void 0:t.photo_url}`}),(d==null?void 0:d.show_title)&&n.createElement(W.Z,{className:y.paperHeader,justify:"center"},n.createElement("div",null,t==null?void 0:t.title)),(d==null?void 0:d.show_info)&&n.createElement("div",{className:"tc c-grey-666 mb20"},"\u5171:\u3010",t==null?void 0:t.large_counts,"\u5927\u9898\u3011\u3010",t==null?void 0:t.total_count,"\u5C0F\u9898\u3011\u3010 \u6EE1\u5206",t==null?void 0:t.score,"\u5206\u3011 \u8003\u8BD5\u65F6\u95F4\uFF1A\u3010",(t==null?void 0:t.time)>-1?`${t==null?void 0:t.time}\u5206\u949F`:"\u4E0D\u9650","\u3011"),(d==null?void 0:d.show_desc)&&(((B=v==null?void 0:v.exerciseExportHeadData)==null?void 0:B.exercise_description)||((O=v==null?void 0:v.commonHeader)==null?void 0:O.exercise_description))&&n.createElement("pre",{style:{fontSize:14,marginBottom:30,marginTop:20,textAlign:"left",color:"#3A3A3A"}},n.createElement("b",null,"\u8BD5\u5377\u987B\u77E5\uFF1A"),((o=v==null?void 0:v.exerciseExportHeadData)==null?void 0:o.exercise_description)||((f=v==null?void 0:v.commonHeader)==null?void 0:f.exercise_description)),(d==null?void 0:d.show_table)&&n.createElement("div",{className:"mt10"},n.createElement(J.default,{className:y.table,columns:pe,dataSource:[...I||[]],bordered:!0,pagination:!1})),((q=v==null?void 0:v.exerciseExportHeadData)==null?void 0:q.analysis)&&n.createElement("span",{style:{justifyContent:"left",wordBreak:"break-all",display:"flex",textAlign:"left",marginTop:"10px"},className:"tc c-grey-333"},`\u8003\u8BD5\u8BC4\u4EF7\uFF1A${(ne=v==null?void 0:v.exerciseExportHeadData)==null?void 0:ne.analysis}`)),n.createElement(G.Z,null))};var se=(0,L.connect)(({exercise:l,loading:m,user:r,globalSetting:v})=>({exercise:l,globalSetting:v,user:r,loading:m.effects}))($)}}]);
|