|
|
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[7197],{94422:function(e,s,n){n.d(s,{Z:function(){return a}});var l=n(79800),o=n.n(l),r=n(59301),t=n(52465),i=n(39073),c=n(37712),a=function(){var e=(0,r.useState)(""),s=o()(e,2),n=s[0],l=s[1],a=(0,r.useState)(0),u=o()(a,2),d=(u[0],u[1]),_=(0,r.useState)(),v=o()(_,2),h=(v[0],v[1]),m=(0,r.useState)(),x=o()(m,2),p=(x[0],x[1]),g=(0,r.useState)(!1),f=o()(g,2),b=(f[0],f[1],(0,r.useRef)(""));function j(e){27==e.keyCode&&b.current&&y()}function y(){document.body.style.overflow="auto",h(void 0),p(void 0),d(0),l("")}(0,r.useEffect)((function(){return t.Z.subscribe("preview-image",(function(e){l(e),console.log(N.current),document.body.style.overflow="hidden"}))}),[]),(0,r.useEffect)((function(){return document.addEventListener("keydown",j),function(){document.removeEventListener("keydown",j)}}),[]),(0,r.useEffect)((function(){b.current=n}),[n]);(0,r.useRef)();var w=(0,r.useRef)(),N=(0,r.useRef)();return(0,c.jsx)(r.Fragment,{children:n?(0,c.jsx)("div",{children:(0,c.jsx)("div",{className:"preview-wrp-group",ref:w,children:(0,c.jsx)(i.Z,{className:"image-preview",src:n,style:{display:"none"},preview:{visible:!0,src:n,movable:!1,onVisibleChange:function(e){l("")}},alt:"预览大图"})})}):null})}},74971:function(e,s,n){n.d(s,{Z:function(){return T}});var l=n(7557),o=n.n(l),r=n(41498),t=n.n(r),i=n(82242),c=n.n(i),a=n(79800),u=n.n(a),d=n(59301),_=n(92832),v=n(8591),h=n(43418),m=n(71418),x=n(95237),p=n(43604),g=n(59028),f=n(24905),b=n(94001),j=n(26762),y="modalWrapper___rWDvO",w="exportSettingWrapper___pCClH",N="imgPreviewPart___PCv0Y",A="tips___EVeBl",k="pottedLine___AaY68",Z="text___ho3u_",S=n(3858),I=n(23634),E=n(92988),R=n(52465),O=n(97730),P=n(94422),C="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAAAECAYAAADLcnBRAAAAAXNSR0IArs4c6QAAAcNJREFUSEvtlT1oFFEURs+dndmAqGBAMCAoKAqChT+lYGER6xQLlsGdXWMQFETbtREhjQgmuxmLdJIEi1SxCdjYRpCQbkEhoihioYjMneyVCDtMCuG+fqedc9437775ZoTRNZrAaAL/nYDs3bFZTmjB0dA5Jbt8kRfseD2b4YgOOOXlh1wCv6XHttezFWq6wQUvX+WSa7yTBrte19qcUzjg5cs9RfRlgR9ez5oc1xrHvHyZE/NNnvPR69kdDmvOGS9f5gh/pMtWiJe3uRzCl1kTvJcOude1Gc7qgENevswxPvwrSN6kB7RCF5CIuWSRB16vSGkMjGUvX3LCZj3jkteze4zrT757+X0FSRgPeXHzJpsQXsYoohEvsup9Rk2ZM+O+lx9ykdCLM255PU2ZNOO1l6+cUb+ecdrrWYdYd1Avv++MxjgZUnpNeWPG1dCsCJrDgsyKcD10AYFXccaS19MWVzAeevkK108y7no9u83BQnnp5atcnHBD5vnldTXlKYT/FanxJOny1ptTtJm2AVNefsgZrNcz5r2etbhYGI+8fCXncz3zf2StQ1R8Yi00Z4+Pa9yULl+9rqY8Bs57+ZKLePYXdsiA6BdYLZkAAAAASUVORK5CYII=",Y=n(37712),T=(_.Z.TextArea,(0,S.connect)((function(e){var s=e.exercise,n=e.loading,l=e.globalSetting;return{exercise:s,loading:n.effects,globalSetting:l}}))((function(e){var s,n=e.exercise,l=e.loading,r=e.dispatch,i=n.workSetting,a=(0,S.useParams)();a.category=a.categoryId||a.exerciseId,a.categoryId=a.categoryId||a.exerciseId;var _=(0,d.useState)(!1),T=u()(_,2),z=T[0],F=(T[1],(0,d.useState)(!1)),H=u()(F,2),G=H[0],M=H[1],V=(0,d.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:""}),X=u()(V,2),B=X[0],W=X[1];(0,d.useEffect)((function(){U()}),[i]),(0,d.useEffect)((function(){"exportSetting"!==n.actionTabs.key||null!=i&&i.exercise_header||r({type:"exercise/getWorkSetting",payload:c()({},a)})}),[n.actionTabs.key]);var L,U=function(){var e,s,n,l,o=JSON.parse(JSON.stringify(i));Object.keys(B).forEach((function(e){var s;B[e]=null==o||null===(s=o.exercise_header)||void 0===s?void 0:s[e]})),B.file_list=null!=o&&null!==(e=o.exercise_header)&&void 0!==e&&e.attachment_id?[{uid:null==o||null===(s=o.exercise_header)||void 0===s?void 0:s.attachment_id,id:null==o||null===(n=o.exercise_header)||void 0===n?void 0:n.attachment_id,url:null==o||null===(l=o.exercise_header)||void 0===l?void 0:l.photo_url}]:[],W(B)},D=function(){var e=t()(o()().mark((function e(s){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return M(!0),e.next=3,(0,I.ZP)("/api/exercises/".concat(null==a?void 0:a.categoryId,"/foramt_settings.json"),{method:"post",body:s});case 3:0===e.sent.status&&(v.ZP.success("更新成功"),r({type:"exercise/getCommonHeader",payload:c()({},a)}),r({type:"exercise/getWorkSetting",payload:c()({},a)}),r({type:"exercise/getExerciseExportHeadData",payload:{id:a.exerciseId||a.categoryId,identify:a.userId||null}}),M(!1));case 5:case"end":return e.stop()}}),e)})));return function(s){return e.apply(this,arguments)}}(),K={disabled:z,multiple:!1,listType:"picture-card",onPreview:function(e){R.Z.publish("preview-image",e.thumbUrl||e.url)},withCredentials:!0,fileList:B.file_list,beforeUpload:function(e){return!(e.size/1024>200)||(v.ZP.error("该文件无法上传。超过文件大小限制(200KB),建议上传到百度云等其它共享工具里,然后再txt文档里给出链接以及共享密码并上传"),!1)},action:"".concat(O.Z.API_SERVER,"/api/attachments.json"),onChange:function(e){var s=e.fileList.filter((function(e){return!!e.status}));B.file_list=s,W(Object.assign({},B))},onRemove:(L=t()(o()().mark((function e(s){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return B.file_list=[],W(Object.assign({},B)),e.abrupt("return",!0);case 3:case"end":return e.stop()}}),e)}))),function(e){return L.apply(this,arguments)})};return(0,Y.jsx)(h.Z,{title:"导出设置",className:y,width:900,centered:!0,open:"exportSetting"===n.actionTabs.key,onOk:function(){return(s=JSON.parse(JSON.stringify(B))).categoryId=a.categoryId,s.attachment_id=(null===(e=s.file_list)||void 0===e||null===(e=e[0])||void 0===e||null===(e=e.response)||void 0===e?void 0:e.id)||null,void D(s);var e,s},onCancel:function(){U(),r({type:"exercise/setActionTabs",payload:{}})},children:(0,Y.jsxs)("section",{className:w,children:[(0,Y.jsx)(m.Z,{spinning:l["exercise/getWorkSetting"]||G,children:(0,Y.jsxs)(x.Z,{wrap:!1,justify:"space-between",children:[(0,Y.jsxs)(p.Z,{children:[(0,Y.jsxs)(x.Z,{align:"middle",children:[(0,Y.jsx)("div",{children:"卷头左角标"}),(0,Y.jsx)("span",{className:A,children:"图片建议尺寸:700px*500px,大小请勿超过200k"})]}),(0,Y.jsx)("div",{className:"mt15",children:(0,Y.jsx)(g.Z,c()(c()({},K),{},{children:!(null!==(s=B.file_list)&&void 0!==s&&s.length)&&(0,Y.jsxs)("div",{children:[(0,Y.jsx)(j.Z,{}),(0,Y.jsx)("div",{style:{marginTop:8},children:"上传"})]})}))}),(0,Y.jsx)(p.Z,{span:24,className:"mt15",children:(0,Y.jsx)(f.Z,{checked:B.show_title,disabled:z,onChange:function(e){B.show_title=e.target.checked,W(Object.assign({},B))},children:(0,Y.jsx)("div",{children:"展示试卷标题"})})}),(0,Y.jsx)(p.Z,{span:24,className:"mt15",children:(0,Y.jsx)(f.Z,{checked:B.show_body,disabled:z,onChange:function(e){B.show_body=e.target.checked,W(Object.assign({},B))},children:(0,Y.jsx)("div",{children:"展示考试内容(即本试卷所属课程名称)"})})}),(0,Y.jsx)(p.Z,{span:24,className:"mt15",children:(0,Y.jsx)(f.Z,{checked:B.show_info,disabled:z,onChange:function(e){B.show_info=e.target.checked,W(Object.assign({},B))},children:(0,Y.jsx)("div",{children:"展示题量、分值、考试时长"})})}),(0,Y.jsx)(p.Z,{span:24,className:"mt15",children:(0,Y.jsx)(f.Z,{checked:B.show_table,disabled:z,onChange:function(e){B.show_table=e.target.checked,W(Object.assign({},B))},children:(0,Y.jsx)("div",{children:"展示得分、评分表格"})})}),(0,Y.jsxs)(x.Z,{align:"middle",className:"mt20 ".concat(k),children:[(0,Y.jsx)(p.Z,{children:(0,Y.jsx)("img",{src:C,alt:""})}),(0,Y.jsx)(p.Z,{className:Z,children:"密封线区域设置"}),(0,Y.jsx)(p.Z,{children:(0,Y.jsx)("img",{src:C,alt:""})})]}),(0,Y.jsxs)(x.Z,{className:"mt15",justify:"center",style:{width:320},children:[(0,Y.jsx)(f.Z,{className:"pl8",checked:B.show_user,disabled:z,onChange:function(e){B.show_user=e.target.checked,W(Object.assign({},B))},children:(0,Y.jsx)("div",{children:"姓名"})}),(0,Y.jsx)(f.Z,{checked:B.show_no,disabled:z,onChange:function(e){B.show_no=e.target.checked,W(Object.assign({},B))},children:(0,Y.jsx)("div",{children:"学号"})}),(0,Y.jsx)(f.Z,{checked:B.show_group,disabled:z,onChange:function(e){B.show_group=e.target.checked,W(Object.assign({},B))},children:(0,Y.jsx)("div",{children:"专业班级"})}),(0,Y.jsx)(f.Z,{checked:B.show_school_name,disabled:z,onChange:function(e){B.show_school_name=e.target.checked,W(Object.assign({},B))},children:(0,Y.jsx)("div",{children:"学校/单位"})}),(0,Y.jsx)(f.Z,{checked:B.show_phone,disabled:z,onChange:function(e){B.show_phone=e.target.checked,W(Object.assign({},B))},children:(0,Y.jsx)("div",{children:"手机号"})})]}),(0,Y.jsx)("img",{src:"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",alt:"",className:"mt15",style:{width:320}}),(0,Y.jsxs)(p.Z,{span:24,className:"mt15",children:[(0,Y.jsx)("span",{children:"每页导出最大试题数:"}),(0,Y.jsx)(b.Z,{size:"middle",min:1,value:B.export_page_num?B.export_page_num:40,onChange:function(e){B.export_page_num=e,W(c()({},B))}}),(0,Y.jsx)("span",{className:"ml10",children:"题"})]}),(0,Y.jsx)(x.Z,{className:"mt15",children:(0,Y.jsx)(f.Z,{checked:B.show_desc,disabled:z,onChange:function(e){B.show_desc=e.target.checked,W(Object.assign({},B))},children:(0,Y.jsx)("div",{children:"考试须知"})})})]}),(0,Y.jsxs)(p.Z,{className:N,children:[(0,Y.jsx)("div",{className:"pb10",children:"示例图片预览:"}),(0,Y.jsx)("img",{src:E.qz})]})]})}),(0,Y.jsx)(P.Z,{})]})})})))},7197:function(e,s,n){n.d(s,{Z:function(){return S}});var l=n(37205),o=n.n(l),r=n(82242),t=n.n(r),i=n(7557),c=n.n(i),a=n(41498),u=n.n(a),d=n(79800),_=n.n(d),v=n(59301),h=n(3858),m=n(95237),x=n(61998),p="wrap___SSpd0",g="img___nbd2O",f="table___fcP71",b="glassSeal___dYhKO",j="paperHeader___gYUbq",y=n(37924),w=n(23756),N=n(74971),A=n(65727),k=n(97730),Z=n(37712),S=(0,h.connect)((function(e){var s=e.exercise,n=e.loading,l=e.user;return{exercise:s,globalSetting:e.globalSetting,user:l,loading:n.effects}}))((function(e){var s,n,l,r,i,a,d,S,I,E,R,O,P,C,Y,T=e.isPreview,z=void 0!==T&&T,F=e.isExportBlank,H=void 0!==F&&F,G=e.activeTabs,M=e.exercise,V=(e.globalSetting,e.loading,e.user),X=(e.dispatch,e.showExportBtn,e.sealStyle),B=void 0===X?{}:X,W=(0,h.useParams)(),L=V.userInfo,U=(0,v.useState)(),D=_()(U,2),K=D[0],J=D[1],Q=(0,v.useState)(),q=_()(Q,2),$=q[0],ee=q[1],se=(0,v.useRef)(null),ne=(0,v.useState)(21),le=_()(ne,2),oe=(le[0],le[1]),re=(0,v.useState)([]),te=_()(re,2),ie=te[0],ce=te[1],ae=(0,v.useRef)(!0);(0,v.useEffect)((function(){u()(c()().mark((function e(){var s;return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(ae.current){e.next=2;break}return e.abrupt("return");case 2:return ae.current=!1,e.next=5,(0,y.cV)({id:W.exerciseId||W.categoryId});case 5:0==(s=e.sent).status&&ce(s.data);case 7:case"end":return e.stop()}}),e)})))(),(0,w.W)(G)||"2"===G&&ue()}),[W.userId,W.coursesId,W.exerciseId,W.categoryId,G]),(0,v.useEffect)((function(){se.current&&oe(se.current.clientHeight)}),[se.current]),(0,v.useEffect)((function(){var e;if(null!==(e=M.exerciseExportHeadData)&&void 0!==e&&e.title){var s=M.exerciseExportHeadData;J(t()({},s||{}));var n,l,r=(s||{}).table;(null!=r&&r.total_singles_scores||null!=r&&r.total_doubles_scores||null!=r&&r.total_nulls_scores||null!=r&&r.total_judges_scores||null!=r&&r.total_pros_scores||null!=r&&r.total_shixuns_scores||null!=r&&r.total_mains_scores||null!=r&&r.total_combination_scores||null!=r&&r.total_bpros_scores)&&(n=Number(null==r?void 0:r.total_singles_scores)+Number(null==r?void 0:r.total_doubles_scores)+Number(null==r?void 0:r.total_nulls_scores)+Number(null==r?void 0:r.total_judges_scores)+Number(null==r?void 0:r.total_bpros_scores)+Number(null==r?void 0:r.total_pros_scores)+Number(null==r?void 0:r.total_shixuns_scores)+Number(null==r?void 0:r.total_mains_scores)+Number(null==r?void 0:r.total_combination_scores)),(null!=r&&r.singles_scores||null!=r&&r.doubles_scores||null!=r&&r.nulls_scores||null!=r&&r.judges_scores||null!=r&&r.pros_scores||null!=r&&r.bpros_scores||null!=r&&r.shixuns_scores||null!=r&&r.mains_scores||null!=r&&r.combination_scores)&&(l=Number(null==r?void 0:r.singles_scores)+Number(null==r?void 0:r.doubles_scores)+Number(null==r?void 0:r.nulls_scores)+Number(null==r?void 0:r.judges_scores)+Number(null==r?void 0:r.pros_scores)+Number(null==r?void 0:r.bpros_scores)+Number(null==r?void 0:r.shixuns_scores)+Number(null==r?void 0:r.mains_scores)+Number(null==r?void 0:r.combination_scores));var i=[{key:"1",name:"应得分",singles_score:(null==r?void 0:r.total_singles_scores)||0,doubles_score:(null==r?void 0:r.total_doubles_scores)||0,nulls_score:(null==r?void 0:r.total_nulls_scores)||0,judges_score:(null==r?void 0:r.total_judges_scores)||0,pros_score:(null==r?void 0:r.total_pros_scores)||0,bpros_score:(null==r?void 0:r.total_bpros_scores)||0,shixuns_score:(null==r?void 0:r.total_shixuns_scores)||0,mains_score:(null==r?void 0:r.total_mains_scores)||0,total_combination_scores:(null==r?void 0:r.total_combination_scores)||0,total_score:n||0},{key:"2",name:"实得分",singles_score:(null==r?void 0:r.singles_scores)||0,doubles_score:(null==r?void 0:r.doubles_scores)||0,nulls_score:(null==r?void 0:r.nulls_scores)||0,judges_score:(null==r?void 0:r.judges_scores)||0,pros_score:(null==r?void 0:r.pros_scores)||0,bpros_score:(null==r?void 0:r.bpros_scores)||0,shixuns_score:(null==r?void 0:r.shixuns_scores)||0,mains_score:(null==r?void 0:r.mains_scores)||0,total_combination_scores:(null==r?void 0:r.combination_scores)||0,total_score:l||0},{key:"3",name:"评卷人"}],c=[{key:"1",name:"应得分",singles_score:(null==r?void 0:r.total_singles_scores)||0,doubles_score:(null==r?void 0:r.total_doubles_scores)||0,nulls_score:(null==r?void 0:r.total_nulls_scores)||0,judges_score:(null==r?void 0:r.total_judges_scores)||0,pros_score:(null==r?void 0:r.total_pros_scores)||0,bpros_score:(null==r?void 0:r.total_bpros_scores)||0,shixuns_score:(null==r?void 0:r.total_shixuns_scores)||0,mains_score:(null==r?void 0:r.total_mains_scores)||0,total_combination_scores:(null==r?void 0:r.total_combination_scores)||0,total_score:n||0},{key:"2",name:"实得分"},{key:"3",name:"评卷人"}];ee(o()(H?c:i))}}),[M.exerciseExportHeadData]);var ue=function(){var e=u()(c()().mark((function e(){var s,n,l,o,r,t,i;return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s={id:W.exerciseId||W.categoryId,identify:(null==L?void 0:L.login)||null},e.next=3,(0,y.iw)(s);case 3:n=e.sent,J(n||{}),(null!=(l=(n||{}).table)&&l.total_singles_scores||null!=l&&l.total_doubles_scores||null!=l&&l.total_nulls_scores||null!=l&&l.total_judges_scores||null!=l&&l.total_pros_scores||null!=l&&l.total_bpros_scores||null!=l&&l.total_shixuns_scores||null!=l&&l.total_mains_scores||null!=l&&l.total_combination_scores)&&(o=Number(null==l?void 0:l.total_singles_scores)+Number(null==l?void 0:l.total_doubles_scores)+Number(null==l?void 0:l.total_nulls_scores)+Number(null==l?void 0:l.total_bpros_scores)+Number(null==l?void 0:l.total_judges_scores)+Number(null==l?void 0:l.total_pros_scores)+Number(null==l?void 0:l.total_shixuns_scores)+Number(null==l?void 0:l.total_mains_scores)+Number(null==l?void 0:l.total_combination_scores)),(null!=l&&l.singles_scores||null!=l&&l.doubles_scores||null!=l&&l.nulls_scores||null!=l&&l.judges_scores||null!=l&&l.pros_scores||null!=l&&l.bpros_scores||null!=l&&l.shixuns_scores||null!=l&&l.mains_scores||null!=l&&l.combination_scores)&&(r=Number(null==l?void 0:l.singles_scores)+Number(null==l?void 0:l.doubles_scores)+Number(null==l?void 0:l.bpros_scores)+Number(null==l?void 0:l.nulls_scores)+Number(null==l?void 0:l.judges_scores)+Number(null==l?void 0:l.pros_scores)+Number(null==l?void 0:l.shixuns_scores)+Number(null==l?void 0:l.mains_scores)+Number(null==l?void 0:l.combination_scores)),t=[{key:"1",name:"应得分",singles_score:(null==l?void 0:l.total_singles_scores)||0,doubles_score:(null==l?void 0:l.total_doubles_scores)||0,nulls_score:(null==l?void 0:l.total_nulls_scores)||0,judges_score:(null==l?void 0:l.total_judges_scores)||0,pros_score:(null==l?void 0:l.total_pros_scores)||0,bpros_score:(null==l?void 0:l.total_bpros_scores)||0,shixuns_score:(null==l?void 0:l.total_shixuns_scores)||0,mains_score:(null==l?void 0:l.total_mains_scores)||0,total_combination_scores:(null==l?void 0:l.total_combination_scores)||0,total_score:o||0},{key:"2",name:"实得分",singles_score:(null==l?void 0:l.singles_scores)||0,doubles_score:(null==l?void 0:l.doubles_scores)||0,nulls_score:(null==l?void 0:l.nulls_scores)||0,judges_score:(null==l?void 0:l.judges_scores)||0,pros_score:(null==l?void 0:l.pros_scores)||0,bpros_score:(null==l?void 0:l.bpros_scores)||0,shixuns_score:(null==l?void 0:l.shixuns_scores)||0,mains_score:(null==l?void 0:l.mains_scores)||0,total_combination_scores:(null==l?void 0:l.combination_scores)||0,total_score:r||0},{key:"3",name:"评卷人"}],i=[{key:"1",name:"应得分"},{key:"2",name:"实得分"},{key:"3",name:"评卷人"}],ee(H?i:t);case 11:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),de=[{width:"10%",title:"题型",align:"center",dataIndex:"name",render:function(e){return(0,Z.jsx)("a",{children:e})}},{title:(null==ie||null===(s=ie.find((function(e){return e.value==A.f[0].nameType})))||void 0===s?void 0:s.name)||"单选题",align:"center",dataIndex:"singles_score",render:function(e){return(0,Z.jsx)("a",{children:"0.0"===e?0:e})}},{title:(null==ie||null===(n=ie.find((function(e){return e.value==A.f[1].nameType})))||void 0===n?void 0:n.name)||"多选题",align:"center",dataIndex:"doubles_score",render:function(e){return(0,Z.jsx)("a",{children:"0.0"===e?0:e})}},{title:(null==ie||null===(l=ie.find((function(e){return e.value==A.f[3].nameType})))||void 0===l?void 0:l.name)||"填空题",align:"center",dataIndex:"nulls_score",render:function(e){return(0,Z.jsx)("a",{children:"0.0"===e?0:e})}},{title:(null==ie||null===(r=ie.find((function(e){return e.value==A.f[2].nameType})))||void 0===r?void 0:r.name)||"判断题",align:"center",dataIndex:"judges_score",render:function(e){return(0,Z.jsx)("a",{children:"0.0"===e?0:e})}},{title:(null==ie||null===(i=ie.find((function(e){return e.value==A.f[6].nameType})))||void 0===i?void 0:i.name)||"编程题",align:"center",dataIndex:"pros_score",render:function(e){return(0,Z.jsx)("a",{children:"0.0"===e?0:e})}},{title:(null==ie||null===(a=ie.find((function(e){return e.value==A.f[5].nameType})))||void 0===a?void 0:a.name)||"实训题",align:"center",dataIndex:"shixuns_score",render:function(e){return(0,Z.jsx)("a",{children:"0.0"===e?0:e})}},{title:(null==ie||null===(d=ie.find((function(e){return e.value==A.f[4].nameType})))||void 0===d?void 0:d.name)||"简答题",align:"center",dataIndex:"mains_score",render:function(e){return(0,Z.jsx)("a",{children:"0.0"===e?0:e})}},{title:(null==ie||null===(S=ie.find((function(e){return e.value==A.f[7].nameType})))||void 0===S?void 0:S.name)||"组合题",align:"center",dataIndex:"total_combination_scores",render:function(e){return(0,Z.jsx)("a",{children:"0.0"===e?0:e})}},{title:(null==ie||null===(I=ie.find((function(e){return e.value==A.f[8].nameType})))||void 0===I?void 0:I.name)||"程序填空题",align:"center",dataIndex:"bpros_score",render:function(e){return(0,Z.jsx)("a",{children:"0.0"===e?0:e})}},{width:"10%",title:"总分",align:"center",dataIndex:"total_score",render:function(e){return(0,Z.jsx)("a",{children:"0.0"===e?0:null==e?void 0:e.toFixed(1)})}}],_e=(K||{}).exercise_header;return(0,Z.jsxs)(Z.Fragment,{children:[((null==_e?void 0:_e.show_user)||(null==_e?void 0:_e.show_no)||(null==_e?void 0:_e.show_group))&&(0,Z.jsxs)("section",{className:b,style:B,children:[(null==_e?void 0:_e.show_user)&&(0,Z.jsxs)("span",{children:["姓名:",(0,Z.jsx)("span",{children:null==K?void 0:K.user})]}),(null==_e?void 0:_e.show_no)&&(0,Z.jsxs)("span",{children:["学号:",(0,Z.jsx)("span",{children:null==K?void 0:K.student_id})]}),(null==_e?void 0:_e.show_group)&&(0,Z.jsxs)("span",{children:["专业班级:",(0,Z.jsx)("span",{children:null==K?void 0:K.group_name})]}),(null==_e?void 0:_e.show_school_name)&&(0,Z.jsxs)("span",{children:["学校/单位:",(0,Z.jsx)("span",{children:null==K?void 0:K.school_name})]}),(null==_e?void 0:_e.show_phone)&&(0,Z.jsxs)("span",{children:["手机号:",(0,Z.jsx)("span",{children:null==K?void 0:K.phone})]})]}),(0,Z.jsxs)("section",{className:"".concat(p," ").concat(z?"pl20":""," "),children:[(null==K?void 0:K.photo_url)&&(0,Z.jsx)("img",{className:g,src:"".concat(k.Z.API_SERVER).concat(null==K?void 0:K.photo_url)}),(null==_e?void 0:_e.show_title)&&(0,Z.jsx)(m.Z,{className:j,justify:"center",children:(0,Z.jsx)("div",{children:null==K?void 0:K.title})}),(null==_e?void 0:_e.show_info)&&(0,Z.jsxs)("div",{className:"tc c-grey-666 mb20",children:["共:【",null==K?void 0:K.large_counts,"大题】【",null==K?void 0:K.total_count,"小题】【 满分",null==K?void 0:K.score,"分】 考试时间:【",(null==K?void 0:K.time)>-1?"".concat(null==K?void 0:K.time,"分钟"):"不限","】"]}),(null==_e?void 0:_e.show_desc)&&((null==M||null===(E=M.exerciseExportHeadData)||void 0===E?void 0:E.exercise_description)||(null==M||null===(R=M.commonHeader)||void 0===R?void 0:R.exercise_description))&&(0,Z.jsxs)("pre",{style:{fontSize:14,marginBottom:30,marginTop:20,textAlign:"left",color:"#3A3A3A"},children:[(0,Z.jsx)("b",{children:"试卷须知:"}),(null==M||null===(O=M.exerciseExportHeadData)||void 0===O?void 0:O.exercise_description)||(null==M||null===(P=M.commonHeader)||void 0===P?void 0:P.exercise_description)]}),(null==_e?void 0:_e.show_table)&&(0,Z.jsx)("div",{className:"mt10",children:(0,Z.jsx)(x.Z,{className:f,columns:de,dataSource:o()($||[]),bordered:!0,pagination:!1})}),(null==M||null===(C=M.exerciseExportHeadData)||void 0===C?void 0:C.analysis)&&(0,Z.jsx)("span",{style:{justifyContent:"left",wordBreak:"break-all",display:"flex",textAlign:"left",marginTop:"10px"},className:"tc c-grey-333",children:"考试评价:".concat(null==M||null===(Y=M.exerciseExportHeadData)||void 0===Y?void 0:Y.analysis)})]}),(0,Z.jsx)(N.Z,{})]})}))}}]); |