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
43 KiB
2 lines
43 KiB
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[3433],{46642:function(Rl,ul,m){m.d(ul,{t:function(){return Fl}});var w=m(59301),P=m(7939),pe={buttonFixed:"buttonFixed___vyq30",button:"button___hxmYv",buttonWrap:"buttonWrap___uK8dl"},Q=m(92310),fl=m.n(Q),pl=Object.defineProperty,i=Object.getOwnPropertySymbols,tl=Object.prototype.hasOwnProperty,Fe=Object.prototype.propertyIsEnumerable,Ae=(J,y,O)=>y in J?pl(J,y,{enumerable:!0,configurable:!0,writable:!0,value:O}):J[y]=O,h=(J,y)=>{for(var O in y||(y={}))tl.call(y,O)&&Ae(J,O,y[O]);if(i)for(var O of i(y))Fe.call(y,O)&&Ae(J,O,y[O]);return J};const Fl=({cancelText:J="\u53D6\u6D88",okText:y="\u786E\u5B9A",loading:O=!1,hasOkBtn:q=!0,hasCancelBtn:al=!0,okButtonProps:bl={},onCancel:xl=()=>{},onOk:nl=()=>{},className:yl=""})=>w.createElement("div",{className:fl()(pe.buttonFixed,yl)},w.createElement("div",{className:pe.buttonWrap},al&&w.createElement(P.ZP,{size:"middle",className:`${pe.button} mr20`,onClick:xl},J),q&&w.createElement(P.ZP,h({size:"middle",type:"primary",className:`${pe.button} mr20`,loading:O,onClick:nl},bl),y)))},9644:function(Rl,ul,m){m.r(ul),m.d(ul,{default:function(){return iu}});var w=m(44283),P=m(59301),pe=m(91882),Q=m(29787),fl=m(27812),pl=m(76406),i=m(28284),tl=m(62957),Fe=m(6767),Ae=m(60840),h=m(37568),Fl=m(77019),J=m(5269),y=m(47889),O=m(70858),q=m(70467),al=m(42441),bl=m(34006),xl=m(66649),nl=m.n(xl),yl=m(64796),Ul=m.n(yl),d=m(8633),gl=m(46642),te=m(63392),ae=m(84849),e=m(59301),Gl=Object.defineProperty,Jl=Object.defineProperties,Vl=Object.getOwnPropertyDescriptors,hl=Object.getOwnPropertySymbols,Zl=Object.prototype.hasOwnProperty,Ll=Object.prototype.propertyIsEnumerable,Nl=(n,o,a)=>o in n?Gl(n,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):n[o]=a,De=(n,o)=>{for(var a in o||(o={}))Zl.call(o,a)&&Nl(n,a,o[a]);if(hl)for(var a of hl(o))Ll.call(o,a)&&Nl(n,a,o[a]);return n},ol=(n,o)=>Jl(n,Vl(o)),Ie=(n,o,a)=>new Promise((_,F)=>{var N=s=>{try{v(a.next(s))}catch(f){F(f)}},D=s=>{try{v(a.throw(s))}catch(f){F(f)}},v=s=>s.done?_(s.value):Promise.resolve(s.value).then(N,D);v((a=a.apply(n,o)).next())});nl().extend(Ul());const jl=({exercise:n,dispatch:o})=>{var a,_,F,N,D,v,s,f,V,b,U,C,M,ne,oe,ie,se,Z,L,Se,we,Te,Pe,Oe,$e,Re,Ue,Ge,Je,Ve,Ze,Le,je,Me,Qe,ke,We,ze;const $=(0,w.useParams)(),[re]=(0,w.useSearchParams)(),il=Number(re.get("template")),He=re.get("exam_summary_id")&&Number(re.get("exam_summary_id")),[B]=i.default.useForm(),xe=["answer_analysis","ai_exam_summary_record_info"],de=i.default.useWatch(xe,{form:B,preserve:!0}),ye=["condition_analysis","ai_exam_summary_record_info"],ce=i.default.useWatch(ye,{form:B,preserve:!0}),Be=["suggestion","ai_exam_summary_record_info"],me=i.default.useWatch(Be,{form:B,preserve:!0}),qe=["answer_analysis","exercise_questions"],{SumupDetail:t={}}=n,[sl,rl]=tl.default.useModal(),[,,dl]=(0,te.U)(ae.k8,{exercise_id:$==null?void 0:$.exerciseId}),[,,cl]=(0,te.U)(ae.c_,{exercise_id:$==null?void 0:$.exerciseId}),[,ml,vl]=(0,te.U)(ae.zP,{}),g=(0,P.useRef)([]),X=(0,P.useRef)(!1),_l=(0,P.useRef)(null),ve=(...E)=>Ie(void 0,[...E],function*(p={},T){const S=sl.confirm({title:"\u63D0\u793A",centered:!0,icon:null,content:"\u5927\u6A21\u578B\u751F\u6210\u7684\u5206\u6790\u5185\u5BB9\u4E0D\u4E00\u5B9A\u5B8C\u5168\u7B26\u5408\u60A8\u7684\u5206\u6790\u9884\u671F\uFF0C\u60A8\u53EF\u4EE5\u5728\u5927\u6A21\u578B\u751F\u6210\u7684\u5185\u5BB9\u57FA\u7840\u4E0A\u8FDB\u884C\u8C03\u6574\u3002\u786E\u5B9A\u4F7F\u7528\u5927\u6A21\u578B\u751F\u6210\u5206\u6790\u5417\uFF1F",onOk:()=>Ie(void 0,null,function*(){var A,l;const r=yield dl(ol(De({},p),{exam_summary_id:He}));(r==null?void 0:r.status)===0&&(Fe.ZP.success("\u8BF7\u7A0D\u540E\u67E5\u770B\u7ED3\u679C"),B.setFieldValue(T,ol(De({},(r==null?void 0:r.data)||{}),{id:(A=r==null?void 0:r.data)==null?void 0:A.ai_exam_summary_record_id,status:d.Jb.REQUESTING})),g.current.push((l=r==null?void 0:r.data)==null?void 0:l.ai_exam_summary_record_id),!X.current&&x(),S.destroy())})})}),x=()=>Ie(void 0,null,function*(){var E,p,T,S,A;X.current=!0;const l=yield cl({ai_exam_summary_record_ids:g.current});for(const r of(l==null?void 0:l.data)||[])if((r==null?void 0:r.status)!=d.Jb.REQUESTING)if(g.current=g.current.filter(ee=>ee!=(r==null?void 0:r.id)),(r==null?void 0:r.id)==((E=B.getFieldValue(xe))==null?void 0:E.id))B.setFieldValue(xe,r),(r==null?void 0:r.status)==d.Jb.SUCCESS&&B.setFieldValue(["answer_analysis","question_analysis"],r==null?void 0:r.content);else if((r==null?void 0:r.id)==((p=B.getFieldValue(ye))==null?void 0:p.id))B.setFieldValue(ye,r),(r==null?void 0:r.status)==d.Jb.SUCCESS&&B.setFieldValue(["condition_analysis","student_condition_analysis"],r==null?void 0:r.content);else if((r==null?void 0:r.id)==((T=B.getFieldValue(Be))==null?void 0:T.id))B.setFieldValue(Be,r),(r==null?void 0:r.status)==d.Jb.SUCCESS&&B.setFieldValue(["suggestion","suggestion_content"],r==null?void 0:r.content);else{const ee=(S=B.getFieldValue(qe))==null?void 0:S.map(Y=>{var _e;if(((_e=Y==null?void 0:Y.ai_exam_summary_record_info)==null?void 0:_e.id)==(r==null?void 0:r.id)){const Ee=ol(De({},Y),{ai_exam_summary_record_info:r});return(r==null?void 0:r.status)==d.Jb.SUCCESS&&(Ee.content=r==null?void 0:r.content),Ee}return Y});B.setFieldValue(qe,ee)}((A=g.current)==null?void 0:A.length)>0?_l.current=setTimeout(()=>Ie(void 0,null,function*(){yield x()}),1e3*5):X.current=!1}),ge=()=>{w.history.push(`/classrooms/${$==null?void 0:$.coursesId}/exercise/${$==null?void 0:$.exerciseId}/sumup?${re.toString()}`)};return(0,P.useEffect)(()=>{var E,p,T,S,A,l,r,ee,Y,_e,Ee,El,G,he,Ye;return t&&(B.setFieldsValue(De({},t)),((p=(E=t==null?void 0:t.answer_analysis)==null?void 0:E.ai_exam_summary_record_info)==null?void 0:p.status)===d.Jb.REQUESTING?g.current.push((S=(T=t==null?void 0:t.answer_analysis)==null?void 0:T.ai_exam_summary_record_info)==null?void 0:S.id):((l=(A=t==null?void 0:t.condition_analysis)==null?void 0:A.ai_exam_summary_record_info)==null?void 0:l.status)===d.Jb.REQUESTING?g.current.push((ee=(r=t==null?void 0:t.condition_analysis)==null?void 0:r.ai_exam_summary_record_info)==null?void 0:ee.id):((_e=(Y=t==null?void 0:t.suggestion)==null?void 0:Y.ai_exam_summary_record_info)==null?void 0:_e.status)===d.Jb.REQUESTING&&g.current.push((El=(Ee=t==null?void 0:t.suggestion)==null?void 0:Ee.ai_exam_summary_record_info)==null?void 0:El.id),g.current.push(...((Ye=(he=(G=t==null?void 0:t.answer_analysis)==null?void 0:G.exercise_questions)==null?void 0:he.filter(W=>{var K;return((K=W==null?void 0:W.ai_exam_summary_record_info)==null?void 0:K.status)===d.Jb.REQUESTING}))==null?void 0:Ye.map(W=>{var K;return(K=W==null?void 0:W.ai_exam_summary_record_info)==null?void 0:K.id}))||[]),g.current.length>0&&x()),()=>{clearTimeout(_l.current)}},[t]),e.createElement("section",{className:"bg-white pt40 pb-64px pr30 pl30 flex flex-col item-center"},rl,e.createElement("div",{className:"font30 mb40 ",style:{fontWeight:600}},t==null?void 0:t.big_title),e.createElement(Ae.ZP,{theme:{components:{Form:{labelColor:"#666666"},Table:{headerBg:" rgba(48,97,208,0.1)",borderColor:"transparent"}}}},e.createElement(i.default,{className:"w-full",form:B,colon:!1,onFinish:()=>Ie(void 0,null,function*(){const E=B.getFieldsValue(!0);(yield vl(ol(De({},E),{id:($==null?void 0:$.categoryId)||($==null?void 0:$.exerciseId),exam_summary_template_id:il,exam_summary_id:He}))).status===0&&(Fe.ZP.success("\u4FDD\u5B58\u6210\u529F"),ge())})},e.createElement(i.default.Item,{label:"\u8BFE\u7A0B\u540D\u79F0",name:"course_list_name"},e.createElement(h.default,{placeholder:"\u8BF7\u8F93\u5165\u8BFE\u7A0B\u540D\u79F0"})),e.createElement(i.default.Item,{label:"\u8BFE\u7A0B\u7F16\u53F7",name:"course_number"},e.createElement(h.default,{placeholder:"\u8BF7\u8F93\u5165\u8BFE\u7A0B\u7F16\u53F7",maxLength:60,showCount:!0})),e.createElement(i.default.Item,{label:"\u5F00\u8BFE\u5355\u4F4D",name:"school_name"},e.createElement(h.default,{placeholder:"\u8BF7\u8F93\u5165\u5F00\u8BFE\u5355\u4F4D"})),e.createElement(i.default.Item,{label:"\u8003\u6838\u5BF9\u8C61",name:"course_group_names"}," ",t==null?void 0:t.course_group_names),e.createElement(i.default.Item,{label:"\u8003\u8BD5\u65E5\u671F",name:"exercise_start_time"}," ",nl()(t==null?void 0:t.exercise_start_time).format("YYYY\u5E74MM\u6708DD\u65E5")),e.createElement(i.default.Item,{label:"\u8003\u8BD5\u5F00\u59CB-\u7ED3\u675F\u65F6\u95F4"}," ",t==null?void 0:t.exercise_time_slot),e.createElement(Fl.Z,{align:"middle",gutter:40},e.createElement(J.Z,null,e.createElement(i.default.Item,{label:"\u5E94\u8003\u8BD5\u4EBA\u6570",name:"candidate_num"}," ",t==null?void 0:t.candidate_num)),e.createElement(J.Z,null,e.createElement(i.default.Item,{label:"\u5B9E\u8003\u4EBA\u6570",name:"exam_num"}," ",t==null?void 0:t.exam_num))),e.createElement(i.default.Item,{label:"\u662F\u5426\u8003\u6559\u5206\u79BB",name:"is_split_exam_teaching"},e.createElement(y.ZP.Group,{options:[{value:!0,label:"\u662F"},{value:!1,label:"\u5426"}]})),e.createElement(i.default.Item,{label:"\u547D\u9898\u5F62\u5F0F",name:"set_problem_mode"},e.createElement(y.ZP.Group,{options:[{value:d.gW.PROBLEM,label:"\u8BD5\u9898\u5E93"},{value:d.gW.PAPER,label:"\u8BD5\u5377\u5E93"},{value:d.gW.OTHER,label:"\u5176\u4ED6"}]})),e.createElement(i.default.Item,{label:"\u9605\u5377\u5F62\u5F0F",name:"review_paper_mode"},e.createElement(y.ZP.Group,{options:[{value:d.a2.SINGLE,label:"\u5355\u4EBA\u9605\u5377"},{value:d.a2.MULTIPLEFLOW,label:"\u591A\u4EBA\u6D41\u6C34\u4F5C\u4E1A\u9605\u5377"},{value:d.a2.MULTIPLEFIXED,label:"\u591A\u4EBA\u72EC\u7ACB\u9605\u5377"},{value:d.a2.OTHER,label:"\u5176\u4ED6"}]})),e.createElement("div",{className:"w-full pt20",style:{borderTop:"1px solid #EBEBEB"}},e.createElement("div",{className:"text-500 c-black mb10"},"\u8BD5\u9898\u7C7B\u578B\u53CA\u5176\u5206\u6570\u6BD4\u5217\uFF1A"),e.createElement("div",{className:"flex flex-col gap-10px font14 mt10 p20",style:{background:"#f9f9f9"}},e.createElement(i.default.Item,{className:"mb0",name:["exercise_questions_info","content"]},e.createElement(h.default,null)),(_=(a=t==null?void 0:t.exercise_questions_info)==null?void 0:a.exercise_questions)==null?void 0:_.map((E,p)=>e.createElement("div",{key:p},p+1,"\u3001",E==null?void 0:E.name,E==null?void 0:E.count,"\u9053\uFF0C\u5171",E==null?void 0:E.score,"\u5206\uFF0C\u5360",Math.round((E==null?void 0:E.rate)*1e4)/100,"%")))),e.createElement("div",{className:"w-full pt20 mt20",style:{borderTop:"1px solid #EBEBEB"}},e.createElement("div",{className:"text-500 c-black"},"\u8BD5\u5377\u5185\u5BB9\u5206\u6790\uFF1A"),e.createElement("div",{className:"mt10 p20",style:{paddingBottom:1,background:"#f6f7f9"}},e.createElement(i.default.Item,{name:["content_analysis","coverage"],label:e.createElement("div",{className:"w-56px",style:{textAlignLast:"justify"}},"\u8986\u76D6\u9762")},e.createElement(y.ZP.Group,{options:[{value:"wide",label:"\u5BBD"},{value:"medium",label:"\u4E2D"},{value:"narrow",label:"\u7A84"}]})),e.createElement(i.default.Item,{name:["content_analysis","difficulty"],label:e.createElement("div",{className:"w-56px",style:{textAlignLast:"justify"}},"\u96BE\u5EA6")},e.createElement(y.ZP.Group,{options:[{value:1,label:"\u96BE"},{value:2,label:"\u8F83\u96BE"},{value:3,label:"\u4E2D"},{value:4,label:"\u8F83\u6613"},{value:5,label:"\u8F83\u6613"}]})),e.createElement(i.default.Item,{name:["content_analysis","question_quantity"],label:e.createElement("div",{className:"w-56px",style:{textAlignLast:"justify"}},"\u9898\u91CF")},e.createElement(y.ZP.Group,{options:[{value:1,label:">100"},{value:2,label:"70-100"},{value:3,label:"50-70"},{value:4,label:"<50"}]})),e.createElement(i.default.Item,{name:["content_analysis","is_wrong"],label:e.createElement("div",{className:"w-56px",style:{textAlignLast:"justify"}},e.createElement("span",null,"\u6709\u65E0\u9519\u8BEF"))},e.createElement(y.ZP.Group,{options:[{value:!0,label:"\u6709"},{value:!1,label:"\u65E0"}]})))),e.createElement("div",{className:"w-full pt20 mt20",style:{borderTop:"1px solid #EBEBEB"}},e.createElement("div",{className:"text-500 c-black"},"\u8003\u8BD5\u7EC4\u7EC7\u60C5\u51B5\uFF1A"),e.createElement("div",{className:"mt10 p20",style:{paddingBottom:1,background:"#f6f7f9"}},e.createElement(i.default.Item,{label:"\u7EC4\u7EC7\u5F62\u5F0F",name:["organization_condition","organization_mode"]},e.createElement(h.default,{placeholder:"\u8BF7\u8F93\u5165\u7EC4\u7EC7\u5F62\u5F0F"})),e.createElement(i.default.Item,{label:"\u8003\u8BD5\u6279\u6B21",name:["organization_condition","exam_count"]},e.createElement(h.default,{placeholder:"\u8BF7\u8F93\u5165\u8003\u8BD5\u6279\u6B21"})),e.createElement(i.default.Item,{label:"\u8003\u8BD5\u5F62\u5F0F",name:["organization_condition","exam_mode"]},e.createElement(h.default,{placeholder:"\u8BF7\u8F93\u5165\u8003\u8BD5\u5F62\u5F0F"})),e.createElement(i.default.Item,{label:"\u8003\u8BD5\u7CFB\u7EDF",name:["organization_condition","exam_system"]},e.createElement(h.default,{placeholder:"\u8BF7\u8F93\u5165\u8003\u8BD5\u7CFB\u7EDF"})),e.createElement(i.default.Item,{label:"\u662F\u5426\u5F00\u5377",name:["organization_condition","is_open_exercise"]},e.createElement(y.ZP.Group,{options:[{value:!1,label:"\u95ED\u5377\uFF0C\u4E0D\u5141\u8BB8\u643A\u5E26\u7EB8\u8D28\u6750\u6599\u548C\u4EFB\u4F55\u7535\u5B50\u8BBE\u5907"},{value:!0,label:"\u5F00\u5377\uFF0C\u5141\u8BB8\u643A\u5E26\u7EB8\u8D28\u8D44\u6599\uFF0C\u4F46\u4E0D\u5141\u8BB8\u643A\u5E26\u4EFB\u4F55\u7535\u5B50\u8BBE\u5907"}]})),e.createElement(i.default.Item,{label:"\u662F\u5426\u4E3A\u5355\u4E00\u8BD5\u5377",name:["organization_condition","is_single_exercise"]},e.createElement(h.default,{placeholder:"\u8BF7\u8F93\u5165\u662F\u5426\u4E3A\u5355\u4E00\u8BD5\u5377"})),e.createElement(i.default.Item,{name:["organization_condition","end_examine"]},e.createElement(h.default.TextArea,{rows:4})))),e.createElement("div",{className:"w-full pt20 mt20",style:{borderTop:"1px solid #EBEBEB"}},e.createElement("div",{className:"text-500 c-black"},"\u8003\u6838\u6210\u7EE9\u5206\u5E03\uFF1A"),e.createElement("div",{className:"mt10",style:{background:"#F6F7F9"}},e.createElement("div",{className:"p20",style:{background:"rgba(48,97,208,0.1)"}},e.createElement("table",{className:"w-full"},e.createElement("tr",null,[{label:"\u6700\u9AD8",children:`${((F=t==null?void 0:t.score_distribution)==null?void 0:F.max_score)||0}\u5206`},{label:"\u6700\u4F4E",children:`${((N=t==null?void 0:t.score_distribution)==null?void 0:N.min_score)||0}\u5206`},{label:"\u5E73\u5747",children:`${((D=t==null?void 0:t.score_distribution)==null?void 0:D.average_score)||0}\u5206`},{label:"\u53CA\u683C\u7387",children:`${Math.round((((v=t==null?void 0:t.score_distribution)==null?void 0:v.rate)||0)*1e4)/100}%`}].map((E,p)=>e.createElement("td",{key:p,width:p!==3&&250},e.createElement("span",{className:"c-grey-666"},E.label),e.createElement("span",{className:"ml10"},E==null?void 0:E.children)))))),e.createElement("div",{className:"flex flex-col p20"},e.createElement("table",null,[{lv:"\u7B49\u7EA7",num:"\u4EBA\u6570",scale:"\u6BD4\u4F8B"},{lv:`\u4F18\u79C0\uFF08${(f=(s=t==null?void 0:t.score_distribution)==null?void 0:s.best)==null?void 0:f.score_area}\u5206\uFF09`,num:(b=(V=t==null?void 0:t.score_distribution)==null?void 0:V.best)==null?void 0:b.people_count,scale:`${Math.round(((C=(U=t==null?void 0:t.score_distribution)==null?void 0:U.best)==null?void 0:C.rate)*1e4)/100}%`},{lv:`\u826F\u597D\uFF08${(ne=(M=t==null?void 0:t.score_distribution)==null?void 0:M.good)==null?void 0:ne.score_area}\u5206\uFF09`,num:(ie=(oe=t==null?void 0:t.score_distribution)==null?void 0:oe.good)==null?void 0:ie.people_count,scale:`${Math.round(((Z=(se=t==null?void 0:t.score_distribution)==null?void 0:se.good)==null?void 0:Z.rate)*1e4)/100}%`},{lv:`\u4E2D\u7B49\uFF08${(Se=(L=t==null?void 0:t.score_distribution)==null?void 0:L.middle)==null?void 0:Se.score_area}\u5206\uFF09`,num:(Te=(we=t==null?void 0:t.score_distribution)==null?void 0:we.middle)==null?void 0:Te.people_count,scale:`${Math.round(((Oe=(Pe=t==null?void 0:t.score_distribution)==null?void 0:Pe.middle)==null?void 0:Oe.rate)*1e4)/100}%`},{lv:`\u53CA\u683C\uFF08${(Re=($e=t==null?void 0:t.score_distribution)==null?void 0:$e.pass)==null?void 0:Re.score_area}\u5206\uFF09`,num:(Ge=(Ue=t==null?void 0:t.score_distribution)==null?void 0:Ue.pass)==null?void 0:Ge.people_count,scale:`${Math.round(((Ve=(Je=t==null?void 0:t.score_distribution)==null?void 0:Je.pass)==null?void 0:Ve.rate)*1e4)/100}%`},{lv:`\u4E0D\u53CA\u683C\uFF08${(Le=(Ze=t==null?void 0:t.score_distribution)==null?void 0:Ze.fails)==null?void 0:Le.score_area}\u5206\uFF09`,num:(Me=(je=t==null?void 0:t.score_distribution)==null?void 0:je.fails)==null?void 0:Me.people_count,scale:`${Math.round(((ke=(Qe=t==null?void 0:t.score_distribution)==null?void 0:Qe.fails)==null?void 0:ke.rate)*1e4)/100}%`}].map((E,p)=>e.createElement("tr",{key:p,className:`${p===0?"c-grey-666":""}`},e.createElement("td",{width:250},E.lv),e.createElement("td",{width:250},E.num),e.createElement("td",null,E.scale))))))),e.createElement("div",{className:"w-full pt20",style:{borderTop:"1px solid #EBEBEB"}},e.createElement("div",{className:"text-500 c-black"},"\u5404\u7C7B\u9898\u578B\u5B66\u751F\u7B54\u9898\u60C5\u51B5\u5206\u6790\uFF1A"),e.createElement("div",{className:"mt10 p20",style:{background:"#f6f7f9"}},e.createElement(i.default.List,{name:["answer_analysis","exercise_questions"]},(E,{add:p,remove:T})=>e.createElement("div",{className:"flex flex-col gap-20px"},E.map((S,A)=>e.createElement("div",{key:S.key},e.createElement(bl.Z,{form:B,index:A+1,field:S,ParentName:["answer_analysis","exercise_questions"],handleModules:ve}))))),e.createElement("div",{className:"flex item-center justify-between mt10 mb10"},e.createElement("div",null,"\u7B54\u9898\u60C5\u51B5\u603B\u7ED3"),e.createElement(q.op,{disabled:(de==null?void 0:de.status)==d.Jb.REQUESTING,style:{borderRadius:"4px"},onClick:()=>{ve({exam_summary_type:1},["answer_analysis","ai_exam_summary_record_info"])}},"\u5927\u6A21\u578B\u751F\u6210\u5206\u6790")),e.createElement(Q.Z,{spinning:(de==null?void 0:de.status)==d.Jb.REQUESTING,tip:"\u5927\u6A21\u578B\u751F\u6210\u4E2D..."},e.createElement(i.default.Item,{name:["answer_analysis","question_analysis"]},e.createElement(h.default.TextArea,{rows:6}))))),e.createElement("div",{className:"w-full pt20",style:{borderTop:"1px solid #EBEBEB"}},e.createElement("div",{className:"text-500 c-black"},"\u5B66\u751F\u8003\u8BD5\u6210\u7EE9\u53CA\u5B66\u4E60\u60C5\u51B5\u5206\u6790\uFF1A"),e.createElement("div",{className:"mt10 p10",style:{background:"#f6f7f9"}},e.createElement("div",{className:"p10 ",style:{background:"rgba(48,97,208,0.1)"}},(We=t==null?void 0:t.condition_analysis)==null?void 0:We.content),e.createElement("div",{className:"mt20 pl10 pr10"},e.createElement("div",{className:"mb10"},"\u7EC8\u7ED3\u6027\u8003\u6838\u6210\u7EE9\u5206\u5E03\u56FE"),e.createElement(al.Z,{className:"bg-white",option:(()=>{var E,p;const T=[],S=[];return(p=(E=t==null?void 0:t.condition_analysis)==null?void 0:E.chart_1)==null||p.forEach(A=>{T.push(A==null?void 0:A.x_axis),S.push(Math.round((A==null?void 0:A.y_axis)*1e4)/100)}),{tooltip:{},grid:{left:"7%",right:"5%",bottom:"15%",top:"15%"},xAxis:{type:"category",data:[...T||[],"\u5F97\u5206"],axisTick:{show:!1},axisLine:{lineStyle:{color:"#EBEBEB"}},axisLabel:{color:"#666666"}},yAxis:{name:"\u6BD4\u4F8B",nameTextStyle:{color:"#666"},type:"value",splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:"#EBEBEB"}},axisLabel:{color:"#666666"}},series:[{data:S,barWidth:"40px",itemStyle:{color:"#A2BEFF",borderColor:"#165DFF"},type:"bar"}]}})()})),e.createElement("div",{className:"mt20 pl10 pr10"},e.createElement("div",null,"\u5404\u4E2A\u4E13\u4E1A\u73ED\u7EA7\u7684\u60C5\u51B5\u5BF9\u6BD4\u8868"),e.createElement("div",{className:"bg-white mt10 p20",style:{border:"1px solid #EBEBEB"}},e.createElement(O.default,{dataSource:((ze=t==null?void 0:t.condition_analysis)==null?void 0:ze.chart_2)||[],columns:[{title:"\u4E13\u4E1A",dataIndex:"exercise_group_name",align:"center"},{title:"\u4EBA\u6570",dataIndex:"exercise_group_students",align:"center"},{title:"\u5E73\u5747\u5206",dataIndex:"average_score",align:"center"},{title:"\u6700\u9AD8\u5206",dataIndex:"max_score",align:"center"},{title:"\u6700\u4F4E\u5206",dataIndex:"min_score",align:"center"}],pagination:!1,bordered:!0}))),e.createElement("div",{className:"mt20 flex item-center justify-between pl10 pr10 pb10"},e.createElement("div",null,"\u5B66\u4E60\u60C5\u51B5\u603B\u7ED3"),e.createElement(q.op,{disabled:(ce==null?void 0:ce.status)==d.Jb.REQUESTING,style:{borderRadius:"4px"},onClick:()=>{ve({exam_summary_type:2},["condition_analysis","ai_exam_summary_record_info"])}},"\u5927\u6A21\u578B\u751F\u6210\u5206\u6790")),e.createElement(Q.Z,{spinning:(ce==null?void 0:ce.status)==d.Jb.REQUESTING,tip:"\u5927\u6A21\u578B\u751F\u6210\u4E2D..."},e.createElement(i.default.Item,{className:"pl10 pr10",name:["condition_analysis","student_condition_analysis"]},e.createElement(h.default.TextArea,{rows:6}))))),e.createElement("div",{className:"w-full pt20",style:{borderTop:"1px solid #EBEBEB"}},e.createElement("div",{className:"flex item-center justify-between mb10"},e.createElement("div",{className:"c-black text-500"},"\u5B58\u5728\u7684\u95EE\u9898\u53CA\u6539\u8FDB\u610F\u89C1\uFF1A"),e.createElement(q.op,{disabled:(me==null?void 0:me.status)==d.Jb.REQUESTING,style:{borderRadius:"4px"},onClick:()=>{ve({exam_summary_type:3},["suggestion","ai_exam_summary_record_info"])}},"\u5927\u6A21\u578B\u751F\u6210\u5206\u6790")),e.createElement("div",{className:"mt10 p20",style:{background:"#f6f7f9"}},e.createElement(Q.Z,{spinning:(me==null?void 0:me.status)==d.Jb.REQUESTING,tip:"\u5927\u6A21\u578B\u751F\u6210\u4E2D..."},e.createElement(i.default.Item,{name:["suggestion","suggestion_content"]},e.createElement(h.default.TextArea,{rows:6}))))))),e.createElement(gl.t,{okText:"\u4FDD\u5B58",okButtonProps:{loading:ml},onCancel:()=>{ge()},onOk:()=>{B.submit()}}))};var Ml=(0,w.connect)(({exercise:n})=>({exercise:n}))(jl),Ql=m(35883),u=m(59301),kl=Object.defineProperty,Wl=Object.defineProperties,zl=Object.getOwnPropertyDescriptors,Al=Object.getOwnPropertySymbols,Hl=Object.prototype.hasOwnProperty,ql=Object.prototype.propertyIsEnumerable,Dl=(n,o,a)=>o in n?kl(n,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):n[o]=a,k=(n,o)=>{for(var a in o||(o={}))Hl.call(o,a)&&Dl(n,a,o[a]);if(Al)for(var a of Al(o))ql.call(o,a)&&Dl(n,a,o[a]);return n},be=(n,o)=>Wl(n,zl(o)),Ce=(n,o,a)=>new Promise((_,F)=>{var N=s=>{try{v(a.next(s))}catch(f){F(f)}},D=s=>{try{v(a.throw(s))}catch(f){F(f)}},v=s=>s.done?_(s.value):Promise.resolve(s.value).then(N,D);v((a=a.apply(n,o)).next())});const Yl=({items:n,labelClassName:o,labelStyle:a})=>u.createElement("div",{className:"flex flex-col text-start gap-8px"},n==null?void 0:n.map((_,F)=>u.createElement("div",{key:F,className:"flex gap-20px"},_.label&&u.createElement("div",{className:`w-56px c-grey-666 ${o||""} ${(_==null?void 0:_.labelClassName)||""}`,style:k(k({textAlignLast:"justify",lineHeight:"28px"},a||{}),(_==null?void 0:_.labelStyle)||{})},_.label),(_==null?void 0:_.children)&&u.createElement("div",null,_==null?void 0:_.children)))),Bl=({data:n=[],ylabel:o="",xlabel:a="",className:_="",itemStyle:F={},formatter:N="{c}%"})=>{const D=(0,P.useMemo)(()=>{const v=[],s=[];return n==null||n.forEach(f=>{v.push(f==null?void 0:f.x_axis),s.push(f==null?void 0:f.y_axis)}),{tooltip:{},grid:{left:"5%",right:"5%",bottom:"7%",top:"20%",containLabel:!0},xAxis:{type:"category",data:[...v||[],a],axisTick:{show:!1},axisLine:{lineStyle:{color:"#EBEBEB"}},axisLabel:{color:"#666666",interval:0}},yAxis:{name:o,nameTextStyle:{color:"#666",padding:[0,0,10,0]},type:"value",splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:"#EBEBEB"}},axisLabel:{color:"#666666"}},series:[{data:s,barMaxWidth:"40px",itemStyle:k({color:"#A2BEFF",borderColor:"#165DFF"},F),type:"bar",label:{color:"#666",show:!0,position:"top",valueAnimation:!0,formatter:N}}]}},[n]);return u.createElement(al.Z,{className:_,option:D})},Kl=({form:n,index:o=1,field:a,ParentName:_=[],handleModules:F})=>{var N,D,v;(typeof _=="string"||typeof _=="number")&&(_=[_]);const s=i.default.useWatch([..._,a.name],{form:n,preserve:!0}),f=i.default.useWatch([..._,a.name,"question_type"],{form:n,preserve:!0}),V=i.default.useWatch([..._,a.name,"ai_exam_summary_record_info"],{form:n,preserve:!0});return u.createElement(u.Fragment,null,u.createElement("div",{className:"text-500 c-black mb10 "},o,"\u3001",s==null?void 0:s.name),u.createElement(Yl,{items:(N=s==null?void 0:s.items)==null?void 0:N.map((b,U)=>{var C,M;return{label:`\u7B2C${U+1}\u9898`,labelClassName:"w-auto",children:u.createElement(u.Fragment,null,u.createElement(Ql.Z,{className:"font14 c-grey-333 text-start",value:(b==null?void 0:b.question_title)||""}),((C=b==null?void 0:b.tag_discipline_names)==null?void 0:C.length)>0&&u.createElement("div",null,"\u8003\u70B9\uFF1A",(M=b==null?void 0:b.tag_discipline_names)==null?void 0:M.join("\u3001")))}})}),u.createElement("div",{className:"text-500 c-black mb10 mt20"},"\u7EC8\u7ED3\u6027\u8003\u6838\u6210\u7EE9\u5206\u5E03\u56FE"),u.createElement(Bl,{className:"bg-white",data:(D=s==null?void 0:s.chart_1)==null?void 0:D.map((b={},U)=>be(k({},b),{x_axis:U+1,y_axis:Math.round(b.y_axis*1e4)/100})),ylabel:"\u6B63\u786E\u7387",xlabel:"\u9898\u76EE"}),u.createElement(Bl,{className:"mt10 bg-white",data:(v=s==null?void 0:s.chart_2)==null?void 0:v.map((b={},U)=>be(k({},b),{x_axis:U+1,y_axis:Math.round(b.y_axis*1e4)/100})),ylabel:"\u5F97\u5206\u7387",xlabel:"\u9898\u76EE",itemStyle:{color:"#2EC25B",borderColor:"#2EC25B"}}),u.createElement("div",{className:"text-500 c-black mb10 mt20"},"\u5177\u4F53\u5F97\u5206\u660E\u7EC6\u5982\u4E0B\u8868\u6240\u793A"),u.createElement("div",{className:"bg-white p20 mb20"},u.createElement(O.default,{pagination:!1,dataSource:(s==null?void 0:s.chart_3)||[],bordered:!0,columns:[{title:"\u5E8F\u53F7",dataIndex:"question_number",align:"center"},{title:"\u7B54\u9898\u4EBA\u6570",dataIndex:"answer_users_count",align:"center"},{title:"0\u5206",dataIndex:"zero_score_number",align:"center"},{title:"\u90E8\u5206\u6B63\u786E\u4EBA\u6570",dataIndex:"part_score_number",align:"center"},{title:"\u6EE1\u5206\u4EBA\u6570",children:[{title:"\u4EBA\u6570",dataIndex:"full_score_number",align:"center"},{title:"\u5360\u6BD4",dataIndex:"full_score_rate",align:"center",render:b=>`${Math.round(b*1e4)/100}%`}]},{title:"\u5E73\u5747\u5206",dataIndex:"average_score",align:"center"}]})),u.createElement("div",{className:"flex item-center justify-between mt10 mb10"},u.createElement("div",null,"\u5C0F\u9898\u603B\u7ED3\u5206\u6790"),u.createElement(q.op,{disabled:(V==null?void 0:V.status)==d.Jb.REQUESTING,style:{borderRadius:"4px"},onClick:()=>{F({exam_summary_type:5,question_type:f},[..._,a.name,"ai_exam_summary_record_info"])}},"\u5927\u6A21\u578B\u751F\u6210\u5206\u6790")),u.createElement(Q.Z,{spinning:(V==null?void 0:V.status)==d.Jb.REQUESTING,tip:"\u5927\u6A21\u578B\u751F\u6210\u4E2D..."},u.createElement(i.default.Item,{className:"mb0",name:[a.name,"question_type_conent"]},u.createElement(h.default.TextArea,{rows:6}))))},Xl=({exercise:n,dispatch:o})=>{var a,_,F,N,D,v,s,f,V,b,U,C,M,ne,oe,ie,se,Z,L,Se,we,Te,Pe,Oe,$e,Re,Ue,Ge,Je,Ve,Ze,Le,je,Me,Qe,ke,We,ze,$,re,il,He,B,xe,de,ye,ce,Be,me,qe,t,sl,rl,dl,cl,ml,vl;const g=(0,w.useParams)(),[X]=(0,w.useSearchParams)(),_l=Number(X.get("template")),ve=X.get("exam_summary_id")&&Number(X.get("exam_summary_id")),[x]=i.default.useForm(),ge=["exercise_questions_info","ai_exam_summary_record_info"],E=i.default.useWatch(ge,{form:x,preserve:!0}),p=["condition_analysis","ai_exam_summary_record_info"],T=i.default.useWatch(p,{form:x,preserve:!0}),S=["suggestion","ai_exam_summary_record_info"],A=i.default.useWatch(S,{form:x,preserve:!0}),{SumupDetail:l={}}=n,[r,ee]=tl.default.useModal(),[,,Y]=(0,te.U)(ae.k8,{exercise_id:g==null?void 0:g.exerciseId}),[,,_e]=(0,te.U)(ae.c_,{exercise_id:g==null?void 0:g.exerciseId}),[,Ee,El]=(0,te.U)(ae.zP,{}),G=(0,P.useRef)([]),he=(0,P.useRef)(!1),Ye=(0,P.useRef)(null),W=(...I)=>Ce(void 0,[...I],function*(R={},le){const z=r.confirm({title:"\u63D0\u793A",centered:!0,icon:null,content:"\u5927\u6A21\u578B\u751F\u6210\u7684\u5206\u6790\u5185\u5BB9\u4E0D\u4E00\u5B9A\u5B8C\u5168\u7B26\u5408\u60A8\u7684\u5206\u6790\u9884\u671F\uFF0C\u60A8\u53EF\u4EE5\u5728\u5927\u6A21\u578B\u751F\u6210\u7684\u5185\u5BB9\u57FA\u7840\u4E0A\u8FDB\u884C\u8C03\u6574\u3002\u786E\u5B9A\u4F7F\u7528\u5927\u6A21\u578B\u751F\u6210\u5206\u6790\u5417\uFF1F",onOk:()=>Ce(void 0,null,function*(){var H,ue;const c=yield Y(be(k({},R),{exam_summary_id:ve}));(c==null?void 0:c.status)===0&&(Fe.ZP.success("\u8BF7\u7A0D\u540E\u67E5\u770B\u7ED3\u679C"),x.setFieldValue(le,be(k({},(c==null?void 0:c.data)||{}),{id:(H=c==null?void 0:c.data)==null?void 0:H.ai_exam_summary_record_id,status:d.Jb.REQUESTING})),G.current.push((ue=c==null?void 0:c.data)==null?void 0:ue.ai_exam_summary_record_id),!he.current&&K(),z.destroy())})})}),K=()=>Ce(void 0,null,function*(){var I,R,le,z,H;he.current=!0;const ue=yield _e({ai_exam_summary_record_ids:G.current});for(const c of(ue==null?void 0:ue.data)||[])if((c==null?void 0:c.status)!=d.Jb.REQUESTING)if(G.current=G.current.filter(Ne=>Ne!=(c==null?void 0:c.id)),(c==null?void 0:c.id)==((I=x.getFieldValue(ge))==null?void 0:I.id))x.setFieldValue(ge,c),(c==null?void 0:c.status)==d.Jb.SUCCESS&&x.setFieldValue(["exercise_questions_info","exercise_content"],c==null?void 0:c.content);else if((c==null?void 0:c.id)==((R=x.getFieldValue(p))==null?void 0:R.id))x.setFieldValue(p,c),(c==null?void 0:c.status)==d.Jb.SUCCESS&&x.setFieldValue(["condition_analysis","student_condition_analysis"],c==null?void 0:c.content);else if((c==null?void 0:c.id)==((le=x.getFieldValue(S))==null?void 0:le.id))x.setFieldValue(S,c),(c==null?void 0:c.status)==d.Jb.SUCCESS&&x.setFieldValue(["suggestion","suggestion_content"],c==null?void 0:c.content);else{const Ne=(z=x.getFieldValue(["exercise_questions_info","exercise_questions"]))==null?void 0:z.map(fe=>{var Ke;if(((Ke=fe==null?void 0:fe.ai_exam_summary_record_info)==null?void 0:Ke.id)==(c==null?void 0:c.id)){const Xe=be(k({},fe),{ai_exam_summary_record_info:c});return(c==null?void 0:c.status)==d.Jb.SUCCESS&&(Xe.question_type_conent=c==null?void 0:c.content),Xe}return fe});x.setFieldValue(["exercise_questions_info","exercise_questions"],Ne)}((H=G.current)==null?void 0:H.length)>0?Ye.current=setTimeout(()=>Ce(void 0,null,function*(){yield K()}),1e3*5):he.current=!1}),Sl=()=>{w.history.push(`/classrooms/${g==null?void 0:g.coursesId}/exercise/${g==null?void 0:g.exerciseId}/sumup?${X.toString()}`)};return(0,P.useEffect)(()=>{var I,R,le,z,H,ue,c,Ne,fe,Ke,Xe,wl,Tl,Pl,Ol,$l;return l&&(x.setFieldsValue(k({},l)),((R=(I=l==null?void 0:l.exercise_questions_info)==null?void 0:I.ai_exam_summary_record_info)==null?void 0:R.status)===d.Jb.REQUESTING?G.current.push((z=(le=l==null?void 0:l.exercise_questions_info)==null?void 0:le.ai_exam_summary_record_info)==null?void 0:z.id):((ue=(H=l==null?void 0:l.condition_analysis)==null?void 0:H.ai_exam_summary_record_info)==null?void 0:ue.status)===d.Jb.REQUESTING?G.current.push((Ne=(c=l==null?void 0:l.condition_analysis)==null?void 0:c.ai_exam_summary_record_info)==null?void 0:Ne.id):((Ke=(fe=l==null?void 0:l.suggestion)==null?void 0:fe.ai_exam_summary_record_info)==null?void 0:Ke.status)===d.Jb.REQUESTING&&G.current.push((wl=(Xe=l==null?void 0:l.suggestion)==null?void 0:Xe.ai_exam_summary_record_info)==null?void 0:wl.id),G.current.push(...((Ol=(Pl=(Tl=l==null?void 0:l.exercise_questions_info)==null?void 0:Tl.exercise_questions)==null?void 0:Pl.filter(el=>{var ll;return((ll=el==null?void 0:el.ai_exam_summary_record_info)==null?void 0:ll.status)===d.Jb.REQUESTING}))==null?void 0:Ol.map(el=>{var ll;return(ll=el==null?void 0:el.ai_exam_summary_record_info)==null?void 0:ll.id}))||[]),(($l=G.current)==null?void 0:$l.length)>0&&K()),()=>{clearTimeout(Ye.current)}},[l]),u.createElement("section",{className:"bg-white pt40 pb40 pr30 pl30 flex flex-col item-center"},ee,u.createElement("div",{className:"font30 mb40 ",style:{fontWeight:600}},l==null?void 0:l.big_title),u.createElement(Ae.ZP,{theme:{components:{Form:{labelColor:"#666666"},Table:{borderColor:"transparent"}}}},u.createElement(i.default,{className:"w-full",size:"large",form:x,colon:!1,onFinish:()=>Ce(void 0,null,function*(){const I=x.getFieldsValue(!0);(yield El(be(k({},I),{id:(g==null?void 0:g.categoryId)||(g==null?void 0:g.exerciseId),exam_summary_template_id:_l,exam_summary_id:ve}))).status===0&&(Fe.ZP.success("\u4FDD\u5B58\u6210\u529F"),Sl())})},u.createElement(i.default.Item,{label:"\u6559\u5B66\u5B66\u671F",name:"teaching_semester"},u.createElement(h.default,{placeholder:"\u8BF7\u8F93\u6559\u5B66\u5B66\u671F"})),u.createElement(i.default.Item,{label:"\u8BFE\u7A0B\u540D\u79F0",name:"course_list_name"},u.createElement(h.default,{placeholder:"\u8BF7\u8F93\u5165\u8BFE\u7A0B\u540D\u79F0"})),u.createElement(i.default.Item,{label:"\u6559\u5B66\u73ED\u7EA7",name:"course_group_names"}," ",l==null?void 0:l.course_group_names),u.createElement(i.default.Item,{label:"\u4EFB\u8BFE\u6559\u5E08",name:"exercise_creator"},u.createElement(h.default,{placeholder:"\u8BF7\u8F93\u5165\u4EFB\u8BFE\u6559\u5E08"})),u.createElement(i.default.Item,{label:"\u8003\u8BD5\u65B9\u5F0F",name:"exercise_type_number"},u.createElement(y.ZP.Group,{options:[{value:d.k.BISHI,label:"\u7B14\u8BD5"},{value:d.k.JISHI,label:"\u673A\u8BD5"},{value:d.k.KOUSHI,label:"\u53E3\u8BD5"},{value:d.k.OTHER,label:"\u5176\u4ED6"}]})),u.createElement("div",{className:"w-full pt20 mt20",style:{borderTop:"1px solid #EBEBEB"}},u.createElement("div",{className:"text-500 c-black"},"\u8003\u6838\u6210\u7EE9\u5206\u5E03\uFF1A"),u.createElement("div",{className:"mt10",style:{background:"#F6F7F9"}},u.createElement("div",{className:"p20",style:{background:"rgba(48,97,208,0.1)"}},u.createElement("table",{className:"w-full"},u.createElement("tr",null,[{label:"\u6700\u9AD8",children:`${((a=l==null?void 0:l.score_distribution)==null?void 0:a.max_score)||0}\u5206`},{label:"\u6700\u4F4E",children:`${((_=l==null?void 0:l.score_distribution)==null?void 0:_.min_score)||0}\u5206`},{label:"\u5E73\u5747",children:`${((F=l==null?void 0:l.score_distribution)==null?void 0:F.average_score)||0}\u5206`},{label:"\u53CA\u683C\u7387",children:`${Math.round((((N=l==null?void 0:l.score_distribution)==null?void 0:N.rate)||0)*1e4)/100}%`}].map((I,R)=>u.createElement("td",{key:R,width:R!==3&&250},u.createElement("span",{className:"c-grey-666"},I.label),u.createElement("span",{className:"ml10"},I==null?void 0:I.children)))))),u.createElement("div",{className:"flex flex-col p20"},u.createElement("table",null,[{lv:"\u7B49\u7EA7",num:"\u4EBA\u6570",scale:"\u6BD4\u4F8B"},{lv:`\u4F18\u79C0\uFF08${(v=(D=l==null?void 0:l.score_distribution)==null?void 0:D.best)==null?void 0:v.score_area}\u5206\uFF09`,num:(f=(s=l==null?void 0:l.score_distribution)==null?void 0:s.best)==null?void 0:f.people_count,scale:`${Math.round(((b=(V=l==null?void 0:l.score_distribution)==null?void 0:V.best)==null?void 0:b.rate)*1e4)/100}%`},{lv:`\u826F\u597D\uFF08${(C=(U=l==null?void 0:l.score_distribution)==null?void 0:U.good)==null?void 0:C.score_area}\u5206\uFF09`,num:(ne=(M=l==null?void 0:l.score_distribution)==null?void 0:M.good)==null?void 0:ne.people_count,scale:`${Math.round(((ie=(oe=l==null?void 0:l.score_distribution)==null?void 0:oe.good)==null?void 0:ie.rate)*1e4)/100}%`},{lv:`\u4E2D\u7B49\uFF08${(Z=(se=l==null?void 0:l.score_distribution)==null?void 0:se.middle)==null?void 0:Z.score_area}\u5206\uFF09`,num:(Se=(L=l==null?void 0:l.score_distribution)==null?void 0:L.middle)==null?void 0:Se.people_count,scale:`${Math.round(((Te=(we=l==null?void 0:l.score_distribution)==null?void 0:we.middle)==null?void 0:Te.rate)*1e4)/100}%`},{lv:`\u53CA\u683C\uFF08${(Oe=(Pe=l==null?void 0:l.score_distribution)==null?void 0:Pe.pass)==null?void 0:Oe.score_area}\u5206\uFF09`,num:(Re=($e=l==null?void 0:l.score_distribution)==null?void 0:$e.pass)==null?void 0:Re.people_count,scale:`${Math.round(((Ge=(Ue=l==null?void 0:l.score_distribution)==null?void 0:Ue.pass)==null?void 0:Ge.rate)*1e4)/100}%`},{lv:`\u4E0D\u53CA\u683C\uFF08${(Ve=(Je=l==null?void 0:l.score_distribution)==null?void 0:Je.fails)==null?void 0:Ve.score_area}\u5206\uFF09`,num:(Le=(Ze=l==null?void 0:l.score_distribution)==null?void 0:Ze.fails)==null?void 0:Le.people_count,scale:`${Math.round(((Me=(je=l==null?void 0:l.score_distribution)==null?void 0:je.fails)==null?void 0:Me.rate)*1e4)/100}%`}].map((I,R)=>u.createElement("tr",{key:R,className:`${R===0?"c-grey-666":""}`},u.createElement("td",{width:250},I.lv),u.createElement("td",{width:250},I.num),u.createElement("td",null,I.scale))))),u.createElement("div",{className:"p20",style:{paddingTop:0}},u.createElement(Bl,{className:"bg-white",data:[{x_axis:`<=${(ke=(Qe=l==null?void 0:l.score_distribution)==null?void 0:Qe.fails)==null?void 0:ke.score_area}`,y_axis:((ze=(We=l==null?void 0:l.score_distribution)==null?void 0:We.fails)==null?void 0:ze.people_count)||0},{x_axis:`${(re=($=l==null?void 0:l.score_distribution)==null?void 0:$.pass)==null?void 0:re.score_area}`,y_axis:((He=(il=l==null?void 0:l.score_distribution)==null?void 0:il.pass)==null?void 0:He.people_count)||0},{x_axis:`${(xe=(B=l==null?void 0:l.score_distribution)==null?void 0:B.middle)==null?void 0:xe.score_area}`,y_axis:((ye=(de=l==null?void 0:l.score_distribution)==null?void 0:de.middle)==null?void 0:ye.people_count)||0},{x_axis:`${(Be=(ce=l==null?void 0:l.score_distribution)==null?void 0:ce.good)==null?void 0:Be.score_area}`,y_axis:((qe=(me=l==null?void 0:l.score_distribution)==null?void 0:me.good)==null?void 0:qe.people_count)||0},{x_axis:`${(sl=(t=l==null?void 0:l.score_distribution)==null?void 0:t.best)==null?void 0:sl.score_area}`,y_axis:((dl=(rl=l==null?void 0:l.score_distribution)==null?void 0:rl.best)==null?void 0:dl.people_count)||0}],ylabel:"\u4EBA\u6570\uFF08\u5355\u4F4D\uFF1A\u4EBA\uFF09",xlabel:"\u5206\u6570\u533A\u95F4",formatter:"{c}"})))),u.createElement("div",{className:"w-full pt20 mt20",style:{borderTop:"1px solid #EBEBEB"}},u.createElement("div",{className:"text-500 c-black"},"\u8BD5\u5377\uFF08\u6216\u8003\u6838\uFF09\u60C5\u51B5\u5206\u6790\uFF1A"),u.createElement("div",{className:"mt10 p20",style:{background:"#f6f7f9"}},u.createElement("div",{className:"flex item-center justify-between mb10"},u.createElement("div",null,((cl=l==null?void 0:l.exercise_questions_info)==null?void 0:cl.exercise_questions_str)||""),u.createElement(q.op,{disabled:(E==null?void 0:E.status)==((ml=d.Jb)==null?void 0:ml.REQUESTING),style:{borderRadius:"4px"},onClick:()=>{W({exam_summary_type:4},["exercise_questions_info","ai_exam_summary_record_info"])}},"\u5927\u6A21\u578B\u751F\u6210\u5206\u6790")),u.createElement(Q.Z,{spinning:(E==null?void 0:E.status)==((vl=d.Jb)==null?void 0:vl.REQUESTING),tip:"\u5927\u6A21\u578B\u751F\u6210\u4E2D..."},u.createElement(i.default.Item,{name:["exercise_questions_info","exercise_content"]},u.createElement(h.default.TextArea,{rows:4}))),u.createElement(i.default.List,{name:["exercise_questions_info","exercise_questions"]},(I,{add:R,remove:le})=>u.createElement("div",{className:"flex flex-col gap-20px"},I.map((z,H)=>u.createElement("div",{key:z.key},u.createElement(Kl,{form:x,index:H+1,field:z,ParentName:["exercise_questions_info","exercise_questions"],handleModules:W}))))),u.createElement("div",{className:"flex item-center mt10 mb10 justify-between"},u.createElement("div",null,"\u8003\u6838\u60C5\u51B5\u603B\u7ED3"),u.createElement(q.op,{disabled:(T==null?void 0:T.status)==d.Jb.REQUESTING,style:{borderRadius:"4px"},onClick:()=>{W({exam_summary_type:6},["condition_analysis","ai_exam_summary_record_info"])}},"\u5927\u6A21\u578B\u751F\u6210\u5206\u6790")),u.createElement(Q.Z,{tip:"\u5927\u6A21\u578B\u751F\u6210\u4E2D...",spinning:(T==null?void 0:T.status)==d.Jb.REQUESTING},u.createElement(i.default.Item,{name:["condition_analysis","student_condition_analysis"]},u.createElement(h.default.TextArea,{rows:6}))))),u.createElement("div",{className:"w-full pt20 mt20",style:{borderTop:"1px solid #EBEBEB"}},u.createElement("div",{className:"flex item-center justify-between mb10"},u.createElement("div",{className:"c-black text-500"},"\u5B58\u5728\u7684\u95EE\u9898\u53CA\u6539\u8FDB\u610F\u89C1\uFF1A"),u.createElement(q.op,{disabled:(A==null?void 0:A.status)==d.Jb.REQUESTING,style:{borderRadius:"4px"},onClick:()=>{W({exam_summary_type:7},["suggestion","ai_exam_summary_record_info"])}},"\u5927\u6A21\u578B\u751F\u6210\u5206\u6790")),u.createElement("div",{className:"mt10 p20",style:{background:"#f6f7f9"}},u.createElement(Q.Z,{spinning:(A==null?void 0:A.status)==d.Jb.REQUESTING,tip:"\u5927\u6A21\u578B\u751F\u6210\u4E2D..."},u.createElement(i.default.Item,{name:["suggestion","suggestion_content"]},u.createElement(h.default.TextArea,{rows:6}))))))),u.createElement(gl.t,{okText:"\u4FDD\u5B58",onCancel:()=>{Sl()},okButtonProps:{loading:Ee},onOk:()=>{x.submit()}}))};var eu=(0,w.connect)(({exercise:n})=>({exercise:n}))(Xl),j=m(59301),lu=Object.defineProperty,Il=Object.getOwnPropertySymbols,uu=Object.prototype.hasOwnProperty,tu=Object.prototype.propertyIsEnumerable,Cl=(n,o,a)=>o in n?lu(n,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):n[o]=a,au=(n,o)=>{for(var a in o||(o={}))uu.call(o,a)&&Cl(n,a,o[a]);if(Il)for(var a of Il(o))tu.call(o,a)&&Cl(n,a,o[a]);return n},nu=(n,o,a)=>new Promise((_,F)=>{var N=s=>{try{v(a.next(s))}catch(f){F(f)}},D=s=>{try{v(a.throw(s))}catch(f){F(f)}},v=s=>s.done?_(s.value):Promise.resolve(s.value).then(N,D);v((a=a.apply(n,o)).next())});const ou=({user:n,loading:o,globalSetting:a,classroomList:_,exercise:F,dispatch:N})=>{var D;const v=(0,w.useParams)(),[s]=(0,w.useSearchParams)(),f=Number(s.get("template")),V=s.get("exam_summary_id")&&Number(s.get("exam_summary_id")),b=s.getAll("exercise_group_id").map(Z=>Z==="all"?Z:Number(Z)),{userInfo:U}=n,{commonHeader:C}=F,[M,ne]=(0,P.useState)(1),[,oe,ie]=(0,te.U)(ae.Ym,{}),se=()=>nu(void 0,null,function*(){var Z;N({type:"exercise/getCommonHeader",payload:{categoryId:v==null?void 0:v.exerciseId}});const L=yield ie({exam_summary_template_id:f,exam_summary_id:V,id:(v==null?void 0:v.categoryId)||(v==null?void 0:v.exerciseId),exercise_group_id:b.includes("all")?[]:b});(L==null?void 0:L.status)===0&&(s.set("exam_summary_id",(Z=L==null?void 0:L.data)==null?void 0:Z.exam_summary_id),N({type:"exercise/save",payload:{SumupDetail:au({exercise_group_id:b},L==null?void 0:L.data)}}))});return(0,P.useEffect)(()=>{f&&ne(f||1),se()},[s]),(0,P.useEffect)(()=>(N({type:"globalSetting/footerToggle",payload:!1}),()=>{N({type:"globalSetting/footerToggle",payload:!0})}),[]),j.createElement("section",{className:"edu-container"},j.createElement(pe.Z,{className:"mt10",separator:">",items:[{title:(D=U==null?void 0:U.course)==null?void 0:D.course_name,href:`/classrooms/${v.coursesId}/exercise`},{title:"\u5728\u7EBF\u8003\u8BD5",href:`/classrooms/${v.coursesId}/exercise`},{title:"\u8BD5\u5377\u8BE6\u60C5",href:`/classrooms/${v.coursesId}/exercise/${v==null?void 0:v.exerciseId}/detail`},{title:C==null?void 0:C.exercise_name}]}),j.createElement("div",{className:"flex mt20 justify-between"},j.createElement("div",{className:"flex item-center"},j.createElement("a",{href:`/classrooms/${v.coursesId}/exercise/${v==null?void 0:v.exerciseId}/detail`},j.createElement(fl.Z,{className:"font16 c-black",rev:void 0})),(0,pl.vB)(C==null?void 0:C.exercise_status,C==null?void 0:C.appraise_label),j.createElement("strong",{className:"font20 ml5"},C==null?void 0:C.exercise_name))),j.createElement(Q.Z,{spinning:oe},j.createElement("div",{className:"mt20"},M===1&&j.createElement(Ml,null),M===2&&j.createElement(eu,null))))};var iu=(0,w.connect)(({loading:n,user:o,globalSetting:a,classroomList:_,exercise:F})=>({classroomList:_,globalSetting:a,user:o,loading:n.effects,exercise:F}))(ou)}}]);
|