1 |
- System.register(["./api-legacy-8a67ac57-1740736449183.js","./index.module-legacy-2e2634c1-1740736449183.js","./teacherIcon-legacy-3eeb62c3-1740736449183.js","./index-legacy-594adc8b-1740736449183.js","./contants-legacy-71300fc2-1740736449183.js","./index-legacy-404ce43f-1740736449183.js","./Scrollbar-legacy-87d843de-1740736449183.js"],(function(e,t){"use strict";var a,n,s,l,i,u,r,o,c,d,m,v,p,g,T,f,y,w,D,b,x,L,I;return{setters:[e=>{a=e.o},e=>{n=e.s},e=>{s=e.d},e=>{l=e.n,i=e.u,u=e.q,r=e.W,o=e.C},e=>{c=e.e},e=>{d=e.d,m=e.r,v=e.q,p=e.f,g=e.a9,T=e.w,f=e.k,y=e.aj,w=e.j,D=e.aq,b=e.x,x=e.l,L=e.m},e=>{I=e.N}],execute:function(){e("T",d({props:{activeRow:{type:Object,default:()=>({studentLessonTrainingId:""})},total:{type:Number,default:0},current:{type:Number,default:0}},name:"TrainingDetails",emits:["close","next","pre"],setup(e,{emit:t,expose:d}){const C=m(!1),S=m({studentName:"",submitTime:"",trainingStatus:"",studentAvatar:"",studentLessonTrainingDetails:[]}),h=m(!1),k=async e=>{C.value=!0;try{const t=await a({studentLessonTrainingId:e}),n=t.data.studentLessonTrainingDetails.map((e=>{const t=((e,t)=>{let a=[];return a="EVALUATION"===e?[`${c[t.evaluateDifficult]}`,`${t.practiceChapterBegin||0}-${t.practiceChapterEnd||0}小节`,`速度${t.evaluateSpeed||0}`,`${t.trainingTimes}分达标`]:[`${t.practiceChapterBegin}-${t.practiceChapterEnd}小节`,`速度${t.practiceSpeed||0}`,`${t.trainingTimes}分钟`],a})(e.trainingType,JSON.parse(e.trainingContent));return{...e,coverImg:e.titleImg,fileList:e.fileJsonList&&e.fileJsonList[0]||{},allTimes:JSON.parse(e.trainingContent).trainingTimes,typeList:t||[]}}));S.value={...t.data,studentLessonTrainingDetails:n}}catch(t){console.log(t)}C.value=!1};return d({getTrainingDetail:k}),v((()=>{k(e.activeRow.studentLessonTrainingId)})),()=>p("div",{class:[n.trainingDetails]},[p(g,{show:C.value},{default:()=>[p("div",{class:n.studentList},[p("div",{class:n.studentHeaderWrap},[p("div",{class:n.studentHeader},[p("div",{class:n.studentHeaderBorder},[p(T,{class:n.studentHeaderImg,src:S.value.studentAvatar?S.value.studentAvatar:s,previewDisabled:!0},null)])]),p("div",{class:n.workafterInfo},[p("h4",null,[S.value.studentName," ",p("div",{class:n.workafterInfoDot},[f("学生")])]),p("p",null,[f("提交时间:"),S.value.submitTime?y(new Date(S.value.submitTime)).format("YYYY-MM-DD"):"--"])]),"UNSUBMITTED"==S.value.trainingStatus?p(T,{previewDisabled:!0,class:n.workStatus,src:l},null):null,"SUBMITTED"==S.value.trainingStatus?p(T,{previewDisabled:!0,class:n.workStatus,src:i},null):null,"TARGET"==S.value.trainingStatus?p(T,{previewDisabled:!0,class:n.workStatus,src:u},null):null]),S.value.expireFlag?p(w,{onClick:()=>h.value=!0,class:n.commentBtnGroup},{default:()=>[p("div",{class:n.text},[p("i",null,null),S.value.comment?"修改点评":"点评作业"])]}):p(D,{showArrow:!1},{trigger:()=>p(w,{disabled:!0,onClick:()=>h.value=!0,class:n.commentBtnGroup},{default:()=>[p("div",{class:n.text},[p("i",null,null),S.value.comment?"修改点评":"点评作业"])]}),default:"作业截止后可点评作业"})]),!!S.value.fileExpireDay&&p("div",{class:n.expireDateTip},[p("i",{class:n.expireDateIcon},null),p("span",null,[f("作业截止"),S.value.fileExpireDay||0,f("天后,学生上传的文件将过期,请及时查看")])]),p(I,{style:"max-height:400px;",trigger:"none"},{default:()=>[p("div",{class:n.workList},[S.value.studentLessonTrainingDetails.map((e=>p(r,{item:{...e,studentName:S.value.studentName}},null)))]),S.value.comment&&p("div",{class:n.commentSection},[p("h3",null,[p("i",{class:n.iconComment},null),p("i",{class:n.myText},null)]),p("div",{class:n.commentContent},[S.value.comment])])]}),p(b,{class:[n.btnGroups,n.nextWrap],justify:"space-between"},{default:()=>[p("div",{class:n.allTotal},[e.current,f("/"),e.total,f("名学生")]),p("div",null,[p(b,null,{default:()=>[p(w,{disabled:e.current<=1,round:!0,type:"primary",onClick:()=>{t("pre")}},{default:()=>[f("上一名")]}),p(w,{disabled:e.current>=e.total,round:!0,type:"primary",onClick:()=>{t("next")}},{default:()=>[f("下一名")]})]})])]})]}),p(x,{maskClosable:L,show:h.value,"onUpdate:show":e=>h.value=e},{default:()=>[p(o,{comment:S.value.comment,workInfo:{isLook:!!S.value.comment,studentAvatar:S.value.studentAvatar,studentName:S.value.studentName,submitTime:S.value.submitTime,studentLessonTrainingId:S.value.studentLessonTrainingId},onClose:()=>h.value=!1,onConfrim:()=>{k(e.activeRow.studentLessonTrainingId),h.value=!1}},null)]})])}}))}}}));
|