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.
NewEduCoderBuild/p__Classrooms__Lists__Exerc...

1 line
18 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[17482],{58499:function(e,n,s){s.d(n,{Z:function(){return f}});var t=s(82242),i=s.n(t),r=s(7557),l=s.n(r),c=s(41498),o=s.n(c),a=s(79800),d=s.n(a),u=s(39647),m=s.n(u),p=s(3113),h=s(59301),x=s(37712),j=["children"],f=function(e){var n=e.children,s=m()(e,j),t=(0,h.useState)(!1),r=d()(t,2),c=r[0],a=r[1];return(0,x.jsx)(p.ZP,i()(i()({},s),{},{loading:c,onClick:function(){var e=o()(l()().mark((function e(n){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,a(!0),e.next=4,s.onClick(n);case 4:a(!1),e.next=11;break;case 7:e.prev=7,e.t0=e.catch(0),console.error(e.t0),a(!1);case 11:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(n){return e.apply(this,arguments)}}(),children:n}))}},23464:function(e,n,s){s.r(n),s.d(n,{default:function(){return A}});var t=s(82242),i=s.n(t),r=s(7557),l=s.n(r),c=s(41498),o=s.n(c),a=s(79800),d=s.n(a),u=s(59301),m=s(95237),p=s(43604),h=s(78241),x=s(56511),j=s(3113),f=s(43418),_=s(98135),v=s(57809),g=s(54449),N=s(7880),b="bg___YVx48",y="title___NM3xC",w="textOverflow___gz3GM",C="wrap___if0Ln",Z="infoTitle___dk7YF",k="infoValue___kBWqL",I="itemTitle___WP88A",O="circle___Rq79V",S="warnText___cpZS0",P="greyText___erT_A",M="linkText___YWy1z",F="whiteList___NvpGC",D="num___Dq7FU",E="fixBottom___WHsNA",W="backBtn___swiNH",$="enterBtn___pk16U",T=s(83),B=s(58499),H=s(6457),Y=s(99232),R=s.n(Y),q=s(51136),L=s(37712),z=function(e){var n=e.title,s=e.content;return(0,L.jsxs)("div",{className:"mb20",children:[(0,L.jsxs)(m.Z,{align:"middle",style:{marginBottom:12},children:[(0,L.jsx)(p.Z,{flex:"20px",children:(0,L.jsx)("div",{className:O})}),(0,L.jsx)(p.Z,{children:(0,L.jsx)("div",{children:n})})]}),(0,L.jsx)(m.Z,{className:"pl20",children:s})]})};console.log("---",performance.navigation.type);var A=(0,N.connect)((function(e){var n=e.user;return{globalSetting:e.globalSetting,user:n}}))((function(e){var n=e.user,s=e.dispatch,t=(e.globalSetting,(0,N.useParams)()),r=(0,u.useState)(),c=d()(r,2),a=c[0],O=c[1],Y=(0,u.useState)(!1),A=d()(Y,2),U=A[0],X=A[1],G=(0,u.useState)(!1),V=d()(G,2),J=V[0],K=V[1],Q=h.Z.useForm(),ee=d()(Q,1)[0];(0,u.useEffect)((function(){return s({type:"globalSetting/headerFooterToggle",payload:!1}),function(){s({type:"globalSetting/headerFooterToggle",payload:!0})}}),[]),(0,u.useEffect)((function(){o()(l()().mark((function e(){var n;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return X(!0),e.next=3,(0,T.Ul)(t);case 3:n=e.sent,X(!1),n.status||O(n);case 6:case"end":return e.stop()}}),e)})))()}),[]);var ne=(null==a?void 0:a.exercise)||{},se=ne.exercise_name,te=ne.time,ie=ne.student_id,re=ne.screen_open,le=ne.screen_num,ce=ne.screen_sec,oe=ne.real_name,ae=ne.id,de=ne.open_camera,ue=ne.inner_ip,me=ne.public_ip,pe=ne.ip_limit,he=ne.ip_bind,xe=ne.ip_bind_type,je=ne.open_phone_video_recording,fe=ne.identity_verify,_e=ne.user_permission,ve=ne.total_score,ge=ne.question_type_count,Ne=ne.question_count,be=ne.screen_shot_open,ye=ne.screen_total_num,we=ne.screen_used_num,Ce=ne.end_time,Ze=ne.user_end_time,ke=ne.only_on_client,Ie=ne.forbid_screen,Oe=ne.use_white_list,Se=ne.white_list,Pe=void 0===Se?[]:Se;return console.log("---",Ce),(0,L.jsxs)("div",{className:b,children:[(0,L.jsxs)("div",{className:"edu-container",children:[(0,L.jsx)("div",{className:"pt30"}),(0,L.jsx)("div",{className:C,children:(0,L.jsxs)(x.Z,{loading:U,active:!0,className:"mt20",children:[(0,L.jsx)("div",{className:y,children:se}),(0,L.jsxs)(m.Z,{justify:"center",gutter:30,className:"mb20",children:[(0,L.jsxs)(p.Z,{children:[(0,L.jsx)("span",{className:Z,children:"大题数"}),(0,L.jsx)("span",{className:k,children:ge})]}),(0,L.jsxs)(p.Z,{children:[(0,L.jsx)("span",{className:Z,children:"小题数"}),(0,L.jsx)("span",{className:k,children:Ne})]}),(0,L.jsxs)(p.Z,{children:[(0,L.jsx)("span",{className:Z,children:"满分"}),(0,L.jsxs)("span",{className:k,children:[ve,"分"]})]}),(0,L.jsxs)(p.Z,{children:[(0,L.jsx)("span",{className:Z,children:"考试时长"}),(0,L.jsx)("span",{className:k,children:-1===te?"不限时长":"".concat(te,"分钟")})]})]}),(0,L.jsxs)(m.Z,{className:"mb20",align:"middle",children:[(0,L.jsx)(p.Z,{flex:"20px",children:(0,L.jsx)("i",{className:"iconfont icon-dangqiankaoshengxinxi font14",style:{color:"#3061D0"}})}),(0,L.jsx)(p.Z,{children:(0,L.jsx)("div",{className:I,children:"当前考生信息"})})]}),(0,L.jsxs)(m.Z,{className:"mb30 pl20",children:[(0,L.jsxs)(p.Z,{flex:"190px",className:"mr20 ".concat(w),children:[(0,L.jsx)("span",{className:Z,children:"姓名"}),(0,L.jsx)("span",{title:oe,children:oe})]}),(0,L.jsxs)(p.Z,{children:[(0,L.jsx)("span",{className:Z,children:"学号"}),(0,L.jsx)("span",{children:ie||"--"})]})]}),(0,L.jsxs)(m.Z,{className:"mb20",align:"middle",children:[(0,L.jsx)(p.Z,{flex:"20px",children:(0,L.jsx)("i",{className:"iconfont icon-chengxinkaoshishengming font14",style:{color:"#3061D0"}})}),(0,L.jsx)(p.Z,{children:(0,L.jsx)("div",{className:I,children:"诚信考试声明"})})]}),(0,L.jsx)("div",{className:"mb30 pl20",children:"考生在考试过程中应自觉遵守考试纪律,诚信应考,拒绝作弊行为,保持良好考试秩序。实施作弊行为一经发现,将按学校考试管理办法严肃处理,因作弊产生的一切后果自负。"}),(de||re||"no"!==pe||fe)&&(0,L.jsxs)(m.Z,{className:"mb20",align:"middle",children:[(0,L.jsx)(p.Z,{flex:"20px",children:(0,L.jsx)("i",{className:"iconfont icon-yikaiqifangzuobimoshi font14",style:{color:"#3061D0"}})}),(0,L.jsx)(p.Z,{children:(0,L.jsx)("div",{className:I,children:"已开启防作弊模式"})})]}),fe&&(0,L.jsx)(z,{title:"已开启考试前人脸身份核验",content:(0,L.jsxs)("div",{children:[(0,L.jsx)("span",{className:P,children:"进入考试前,请允许摄像头授权,授权后需采集照片认证,认证通过并开启手机录制才可以进入考试。"}),(0,L.jsx)("span",{className:M,onClick:function(){return(0,H.xg)("https://www.educoder.net/forums/4459")},children:"无法调用摄像头?"})]})}),fe&&(0,L.jsx)(z,{title:"已开启考试中手机视频录制",content:(0,L.jsxs)("div",{children:[(0,L.jsx)("span",{className:P,children:"进入考试后,请允许摄像头授权,授权后打开摄像头方可作答!"}),(0,L.jsx)("span",{className:M,onClick:function(){return(0,H.xg)("https://www.educoder.net/forums/4459")},children:"无法调用摄像头?"})]})}),de&&(0,L.jsx)(z,{title:"已开启考试中拍照监控",content:(0,L.jsxs)("div",{children:[(0,L.jsx)("span",{className:P,children:"进入考试后,请允许摄像头授权,授权后打开摄像头方可作答!"}),(0,L.jsx)("span",{className:M,onClick:function(){return(0,H.xg)("https://www.educoder.net/forums/4459")},children:"无法调用摄像头?"})]})}),re&&(0,L.jsx)(z,{title:"已开启切屏后强制交卷",content:(0,L.jsxs)("div",{children:[(0,L.jsxs)("span",{className:P,children:["切屏超过",(0,L.jsx)("span",{className:D,children:le}),"次将强制交卷,切换到其他页面",(0,L.jsx)("span",{className:D,children:ce}),"秒后即判定为一次切屏,",(0,L.jsx)("span",{className:D,children:2*ce}),"秒则判定为",(0,L.jsx)("span",{className:D,children:"2"}),"次切屏,以此类推;考试过程中请勿切换到其他页面或退出全屏。"]}),(0,L.jsx)("span",{className:M,onClick:function(){return(0,H.xg)("https://www.educoder.net/forums/4460")},children:"浏览器无法自动全屏?"})]})}),be&&(0,L.jsx)(z,{title:"已开启退出全屏或切换页面后自动截屏",content:(0,L.jsx)("div",{children:(0,L.jsx)("span",{className:P,children:"老师已开启退出全屏或切换页面后自动截屏,考生进入考试之后需要选择主屏幕进行共享,考试作答过程中也不允许关闭屏幕共享,否则将会直接退出考试。"})})}),"no"!==pe&&(0,L.jsx)(z,{title:"已开启IP范围限定",content:(0,L.jsxs)("div",{children:[(0,L.jsx)("span",{className:P,children:"IP地址不在范围内不可参加考试。"}),(0,L.jsx)("span",{className:S,children:"只允许在Chrome谷歌浏览器作答并且需要安装WebRTC Leak Prevent插件"}),(0,L.jsx)("div",{children:(0,L.jsx)("span",{className:M,onClick:function(){return(0,H.xg)("https://www.educoder.net/forums/4478")},children:"如何安装WebRTC Leak Prevent插件?"})})]})}),he&&(0,L.jsx)(z,{title:"已开启考试期间IP绑定",content:(0,L.jsxs)("div",{children:[(0,L.jsx)("span",{className:P,children:"当您开始考试后将自动绑定IP考试期间只允许使用唯一的IP进入考试。如遇特殊情况可向老师申请解除IP绑定。"}),(0,L.jsx)("span",{className:S,children:"只允许在Chrome谷歌浏览器作答并且需要安装WebRTC Leak Prevent插件"}),(0,L.jsx)("div",{children:(0,L.jsx)("span",{className:M,onClick:function(){return(0,H.xg)("https://www.educoder.net/forums/4478")},children:"如何安装WebRTC Leak Prevent插件?"})})]})}),(Ie||Oe)&&(0,H.WX)()&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)(m.Z,{className:"mb20",align:"middle",children:[(0,L.jsx)(p.Z,{flex:"20px",children:(0,L.jsx)("i",{className:"iconfont icon-tishi11 font14",style:{color:"#3061D0"}})}),(0,L.jsx)(p.Z,{children:(0,L.jsx)("div",{className:I,children:"注意事项"})})]}),Ie&&(0,L.jsx)(z,{title:"本次考试已设置禁止切屏",content:(0,L.jsxs)("div",{children:[(0,L.jsx)("span",{className:P,children:"一旦进入考试答题页面,不可切屏退出答题页面,如需要退出答题页面,"}),(0,L.jsx)("span",{className:M,style:{cursor:"default"},children:"请联系监考老师/试卷发布者填写解除切屏码。"})]})}),Oe&&(0,L.jsx)(z,{title:"本次考试已经设置打开白名单程序限制",content:(0,L.jsxs)("div",{children:[(0,L.jsxs)("div",{className:P,children:["进入考试前请先关闭非白名单程序,否则进入考试后,系统将自动关闭非",(0,L.jsx)("span",{style:{cursor:"default"},className:M,children:"白名单"}),"程序,可打开的白名单程序如下:"]}),(0,L.jsx)("div",{className:F,children:null==Pe?void 0:Pe.map((function(e){return(0,L.jsx)("div",{children:e})}))})]})})]}),ke&&!(0,H.WX)()&&(0,L.jsxs)("div",{className:"ml20",style:{color:"#E53333"},children:[(0,L.jsx)("i",{className:"iconfont icon-tishi11 font14 mr5"}),"本次考试设置为客户端模式,不可在网页端进行考试答题,请进入客户端进行考试",(0,L.jsx)("a",{onClick:function(){window.open("/download")},children:"【下载客户端】"})]}),(0,L.jsxs)("div",{className:E,children:[(0,L.jsx)(j.ZP,{className:W,onClick:function(){return N.history.back()},children:"返回考试列表"}),(!ke||(0,H.WX)())&&(0,L.jsxs)(B.Z,{type:"primary",className:"".concat($," ml20"),onClick:o()(l()().mark((function e(){var s;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(we>ye)){e.next=3;break}return K(!0),e.abrupt("return");case 3:return localStorage.removeItem("Refresh"),e.next=6,(0,H.nr)({inner_ip:ue,public_ip:me,open_camera:de,ip_limit:pe,ip_bind:he,ip_bind_type:xe,exercise_tips:[""],exerciseId:ae,screen_open:re,screen_num:le,screen_sec:ce,coursesId:t.coursesId,login:null===(s=n.userInfo)||void 0===s?void 0:s.login,history:N.history,identity_verify:fe,open_phone_video_recording:je,current_status:_e,unlockClose:!0});case 6:case"end":return e.stop()}}),e)}))),children:[we>ye?"立即申请继续考试":"我已阅读,进入考试"," "]})]})]})})]}),(0,L.jsx)(f.Z,{title:"申请继续考试",open:J,onCancel:function(){K(!1)},onOk:function(){ee.submit()},children:(0,L.jsxs)(h.Z,{layout:"vertical",size:"large",form:ee,onFinish:function(){var e=o()(l()().mark((function e(s){var r;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,q.ZP)("/api/exercises/".concat(null==t?void 0:t.categoryId,"/check_key.json"),{method:"post",body:i()({},s)});case 2:if(-1!=(null==(r=e.sent)?void 0:r.status)){e.next=6;break}return ee.setFields([{name:"unlock_key",errors:[null==r?void 0:r.message]}]),e.abrupt("return");case 6:f.Z.confirm({closable:!0,width:400,centered:!0,icon:null,title:"提示",onOk:function(){var e=o()(l()().mark((function e(){var r,c;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,q.ZP)("/api/exercises/".concat(null==t?void 0:t.categoryId,"/continue_exercise.json"),{method:"post",body:i()({},s)});case 2:if(0!==(null==(r=e.sent)?void 0:r.status)){e.next=7;break}return localStorage.removeItem("Refresh"),e.next=7,(0,H.nr)({inner_ip:ue,public_ip:me,open_camera:de,ip_limit:pe,ip_bind:he,ip_bind_type:xe,exercise_tips:[""],exerciseId:ae,screen_open:re,screen_num:le,screen_sec:ce,coursesId:t.coursesId,login:null===(c=n.userInfo)||void 0===c?void 0:c.login,history:N.history,identity_verify:fe,open_phone_video_recording:je,current_status:_e,unlockClose:!0});case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),content:(0,L.jsxs)("div",{style:{color:"#000000",fontWeight:400},children:[(0,L.jsx)("p",{style:{marginBottom:20},children:"考试信息修改确认:"}),(0,L.jsxs)("p",{style:{marginBottom:10},children:[(0,L.jsx)("span",{style:{color:"#165DFF"},children:"“考试状态”"}),"修改为",(0,L.jsxs)("span",{style:{color:"#165DFF"},children:["”","1"===(null==s?void 0:s.state)?"答题中":"未答题","“"]})]}),(0,L.jsxs)("p",{style:{marginBottom:0},children:["交卷截止时间延长",(0,L.jsx)("span",{style:{color:"#165DFF"},children:null==s?void 0:s.time}),"分钟吗?"]})]})});case 7:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),children:[(0,L.jsx)(h.Z.Item,{rules:[{required:!0,message:"请输入考试解锁码"}],name:"unlock_key",label:"继续考试需要输入考试解锁码(监考老师提供)",children:(0,L.jsx)(_.Z,{placeholder:"请输入考试解锁码"})}),(0,L.jsx)(h.Z.Item,{rules:[{required:!0,message:"请选择考试状态"}],name:"state",label:"考试状态修改为",children:(0,L.jsxs)(v.default,{placeholder:"请选择考试状态",children:[(0,L.jsx)(v.default.Option,{value:"1",children:"答题中(保留学生之前的答题数据)"}),(0,L.jsx)(v.default.Option,{value:"2",children:"未答题(清空答题数据,重新考试)"})]})}),(0,L.jsx)(h.Z.Item,{rules:[{required:!0,message:"请输入延长时间"}],name:"time",label:(0,L.jsxs)("span",{children:["延长时间(",(0,L.jsxs)("span",{style:{color:"#9096A3"},children:["当前考试截止时间",R()(Ce).format("YYYY-MM-DD HH:mm")]}),""]}),children:(0,L.jsx)(g.Z,{min:1,precision:0,max:5e3,style:{width:"100%"},placeholder:"请填写延长时间(分钟)"})}),(0,L.jsx)(h.Z.Item,{style:{marginBottom:0},label:(0,L.jsxs)("span",{children:["终止答题时间:",R()(Ze).format("YYYY-MM-DD HH:mm")]})})]})})]})}))},57809:function(e,n,s){var t=s(92310),i=s.n(t),r=s(77861),l=s(70521),c=s(59301),o=s(53487),a=s(62892),d=s(19080),u=s(36355),m=s(1684),p=s(93891),h=s(19716),x=s(32441),j=s(33234),f=s(14154),_=s(58582),v=s(84443),g=s(66339),N=function(e,n){var s={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(s[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(t=Object.getOwnPropertySymbols(e);i<t.length;i++)n.indexOf(t[i])<0&&Object.prototype.propertyIsEnumerable.call(e,t[i])&&(s[t[i]]=e[t[i]])}return s};const b="SECRET_COMBOBOX_MODE_DO_NOT_USE",y=(e,n)=>{var s,{prefixCls:t,bordered:o=!0,className:y,rootClassName:w,getPopupContainer:C,popupClassName:Z,dropdownClassName:k,listHeight:I=256,placement:O,listItemHeight:S=24,size:P,disabled:M,notFoundContent:F,status:D,builtinPlacements:E,dropdownMatchSelectWidth:W,popupMatchSelectWidth:$,direction:T,style:B,allowClear:H}=e,Y=N(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:R,getPrefixCls:q,renderEmpty:L,direction:z,virtual:A,popupMatchSelectWidth:U,popupOverflow:X,select:G}=c.useContext(u.E_),V=q("select",t),J=q(),K=null!=T?T:z,{compactSize:Q,compactItemClassnames:ee}=(0,j.ri)(V,K),[ne,se]=(0,f.Z)(V),te=c.useMemo((()=>{const{mode:e}=Y;if("combobox"!==e)return e===b?"combobox":e}),[Y.mode]),ie="multiple"===te||"tags"===te,re=(0,v.Z)(Y.suffixIcon,Y.showArrow),le=null!==(s=null!=$?$:W)&&void 0!==s?s:U,{status:ce,hasFeedback:oe,isFormItemInput:ae,feedbackIcon:de}=c.useContext(x.aM),ue=(0,d.F)(ce,D);let me;me=void 0!==F?F:"combobox"===te?null:(null==L?void 0:L("Select"))||c.createElement(p.Z,{componentName:"Select"});const{suffixIcon:pe,itemIcon:he,removeIcon:xe,clearIcon:je}=(0,g.Z)(Object.assign(Object.assign({},Y),{multiple:ie,hasFeedback:oe,feedbackIcon:de,showSuffixIcon:re,prefixCls:V,showArrow:Y.showArrow,componentName:"Select"})),fe=!0===H?{clearIcon:je}:H,_e=(0,l.Z)(Y,["suffixIcon","itemIcon"]),ve=i()(Z||k,{[`${V}-dropdown-${K}`]:"rtl"===K},w,se),ge=(0,h.Z)((e=>{var n;return null!==(n=null!=P?P:Q)&&void 0!==n?n:e})),Ne=c.useContext(m.Z),be=null!=M?M:Ne,ye=i()({[`${V}-lg`]:"large"===ge,[`${V}-sm`]:"small"===ge,[`${V}-rtl`]:"rtl"===K,[`${V}-borderless`]:!o,[`${V}-in-form-item`]:ae},(0,d.Z)(V,ue,oe),ee,null==G?void 0:G.className,y,w,se),we=c.useMemo((()=>void 0!==O?O:"rtl"===K?"bottomRight":"bottomLeft"),[O,K]),Ce=(0,_.Z)(E,X);return ne(c.createElement(r.ZP,Object.assign({ref:n,virtual:A,showSearch:null==G?void 0:G.showSearch},_e,{style:Object.assign(Object.assign({},null==G?void 0:G.style),B),dropdownMatchSelectWidth:le,builtinPlacements:Ce,transitionName:(0,a.m)(J,"slide-up",Y.transitionName),listHeight:I,listItemHeight:S,mode:te,prefixCls:V,placement:we,direction:K,suffixIcon:pe,menuItemSelectedIcon:he,removeIcon:xe,allowClear:fe,notFoundContent:me,className:ye,getPopupContainer:C||R,dropdownClassName:ve,disabled:be})))};const w=c.forwardRef(y),C=(0,o.Z)(w);w.SECRET_COMBOBOX_MODE_DO_NOT_USE=b,w.Option=r.Wx,w.OptGroup=r.Xo,w._InternalPanelDoNotUseOrYouWillBeFired=C,n.default=w},8378:function(e,n){n.Z=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}})}}]);