12345 |
- <<<<<<<< HEAD:dist/TrainingDetails-legacy-58a6c81c-1713538570197.js
- System.register(["./api-legacy-24253be8-1713538570197.js","./index.module-legacy-250d90e8-1713538570197.js","./index-legacy-cee81ed1-1713538570197.js","./teacherIcon-legacy-3eeb62c3-1713538570197.js","./index-legacy-f8b12468-1713538570197.js","./index-legacy-548a7185-1713538570197.js","./index-legacy-22ff0a1c-1713538570197.js","./Scrollbar-legacy-1ebd3335-1713538570197.js"],(function(e,t){"use strict";var a,n,s,i,l,r,u,d,c,o,v,m,p,g,T,f,y,w,D,b,I,S;return{setters:[e=>{a=e.p},e=>{n=e.s},e=>{s=e.T},e=>{i=e.d},e=>{l=e.n,r=e.u,u=e.q,d=e.C},e=>{c=e.o},e=>{o=e.d,v=e.r,m=e.b,p=e.p,g=e.f,T=e.C,f=e.v,y=e.k,w=e.M,D=e.j,b=e.w,I=e.l},e=>{S=e.N}],execute:function(){e("T",o({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:o}){const C=v(!1),L=v({studentName:"",submitTime:"",trainingStatus:"",studentAvatar:"",studentLessonTrainingDetails:[]}),h=v(!1);m(),v();const x=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||t.practiceChapterEnd?`${t.practiceChapterBegin}-${t.practiceChapterEnd}小节`:"全部小节",`${t.trainingTimes}分合格`]:[`${t.practiceChapterBegin}-${t.practiceChapterEnd}小节`,`速度${t.practiceSpeed}`,`${t.trainingTimes}分钟`],a})(e.trainingType,JSON.parse(e.trainingContent));return{...e,coverImg:e.titleImg,allTimes:JSON.parse(e.trainingContent).trainingTimes,typeList:t||[]}}));L.value={...t.data,studentLessonTrainingDetails:n}}catch(t){console.log(t)}C.value=!1};return o({getTrainingDetail:x}),p((()=>{x(e.activeRow.studentLessonTrainingId)})),()=>g("div",{class:[n.trainingDetails]},[g(T,{show:C.value},{default:()=>[g("div",{class:n.studentList},[g("div",{class:n.studentHeaderWrap},[g("div",{class:n.studentHeader},[g("div",{class:n.studentHeaderBorder},[g(f,{class:n.studentHeaderImg,src:L.value.studentAvatar?L.value.studentAvatar:i,previewDisabled:!0},null)])]),g("div",{class:n.workafterInfo},[g("h4",null,[L.value.studentName," ",g("div",{class:n.workafterInfoDot},[y("学生")])]),g("p",null,[y("提交时间:"),L.value.submitTime?w(new Date(L.value.submitTime)).format("YYYY-MM-DD"):"--"])])]),"UNSUBMITTED"==L.value.trainingStatus?g(f,{previewDisabled:!0,class:n.workStatus,src:l},null):null,"SUBMITTED"==L.value.trainingStatus?g(f,{previewDisabled:!0,class:n.workStatus,src:r},null):null,"TARGET"==L.value.trainingStatus?g(f,{previewDisabled:!0,class:n.workStatus,src:u},null):null]),"UNSUBMITTED"!==L.value.trainingStatus&&g(D,{onClick:()=>h.value=!0,class:n.commentBtnGroup},{default:()=>[g("div",{class:n.text},[g("i",{class:L.value.comment&&n.look},null),L.value.comment?"查看评语":"点评作业"])]}),g(S,{style:"max-height:400px",trigger:"none"},{default:()=>[g("div",{class:n.workList},[L.value.studentLessonTrainingDetails.map((e=>g(s,{style:{marginBottom:"20px"},isDisabled:!0,isDelete:!1,item:e},null)))])]}),g(b,{class:[n.btnGroups,n.nextWrap],justify:"space-between"},{default:()=>[g("div",{class:n.allTotal},[e.current,y("/"),e.total,y("名学生")]),g("div",null,[g(b,null,{default:()=>[g(D,{disabled:e.current<=1,round:!0,type:"primary",onClick:()=>{t("pre")}},{default:()=>[y("上一名")]}),g(D,{disabled:e.current>=e.total,round:!0,type:"primary",onClick:()=>{t("next")}},{default:()=>[y("下一名")]})]})])]})]}),g(I,{show:h.value,"onUpdate:show":e=>h.value=e},{default:()=>[g(d,{comment:L.value.comment,workInfo:{isLook:!!L.value.comment,studentAvatar:L.value.studentAvatar,studentName:L.value.studentName,submitTime:L.value.submitTime,studentLessonTrainingId:L.value.studentLessonTrainingId},onClose:()=>h.value=!1,onConfrim:()=>{x(e.activeRow.studentLessonTrainingId),h.value=!1}},null)]})])}}))}}}));
- ========
- System.register(["./api-legacy-bc71a0e7-1713776975640.js","./index.module-legacy-250d90e8-1713776975640.js","./index-legacy-533f27f6-1713776975640.js","./teacherIcon-legacy-3eeb62c3-1713776975640.js","./index-legacy-5b54087b-1713776975640.js","./index-legacy-139a7fb2-1713776975640.js","./index-legacy-16682d5c-1713776975640.js","./Scrollbar-legacy-5bf2e206-1713776975640.js"],(function(e,t){"use strict";var a,n,s,i,l,r,u,d,c,o,v,m,p,g,T,f,y,w,D,b,I,S;return{setters:[e=>{a=e.p},e=>{n=e.s},e=>{s=e.T},e=>{i=e.d},e=>{l=e.n,r=e.u,u=e.q,d=e.C},e=>{c=e.o},e=>{o=e.d,v=e.r,m=e.b,p=e.p,g=e.f,T=e.C,f=e.v,y=e.k,w=e.M,D=e.j,b=e.w,I=e.l},e=>{S=e.N}],execute:function(){e("T",o({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:o}){const C=v(!1),L=v({studentName:"",submitTime:"",trainingStatus:"",studentAvatar:"",studentLessonTrainingDetails:[]}),h=v(!1);m(),v();const x=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||t.practiceChapterEnd?`${t.practiceChapterBegin}-${t.practiceChapterEnd}小节`:"全部小节",`${t.trainingTimes}分合格`]:[`${t.practiceChapterBegin}-${t.practiceChapterEnd}小节`,`速度${t.practiceSpeed}`,`${t.trainingTimes}分钟`],a})(e.trainingType,JSON.parse(e.trainingContent));return{...e,coverImg:e.titleImg,allTimes:JSON.parse(e.trainingContent).trainingTimes,typeList:t||[]}}));L.value={...t.data,studentLessonTrainingDetails:n}}catch(t){console.log(t)}C.value=!1};return o({getTrainingDetail:x}),p((()=>{x(e.activeRow.studentLessonTrainingId)})),()=>g("div",{class:[n.trainingDetails]},[g(T,{show:C.value},{default:()=>[g("div",{class:n.studentList},[g("div",{class:n.studentHeaderWrap},[g("div",{class:n.studentHeader},[g("div",{class:n.studentHeaderBorder},[g(f,{class:n.studentHeaderImg,src:L.value.studentAvatar?L.value.studentAvatar:i,previewDisabled:!0},null)])]),g("div",{class:n.workafterInfo},[g("h4",null,[L.value.studentName," ",g("div",{class:n.workafterInfoDot},[y("学生")])]),g("p",null,[y("提交时间:"),L.value.submitTime?w(new Date(L.value.submitTime)).format("YYYY-MM-DD"):"--"])])]),"UNSUBMITTED"==L.value.trainingStatus?g(f,{previewDisabled:!0,class:n.workStatus,src:l},null):null,"SUBMITTED"==L.value.trainingStatus?g(f,{previewDisabled:!0,class:n.workStatus,src:r},null):null,"TARGET"==L.value.trainingStatus?g(f,{previewDisabled:!0,class:n.workStatus,src:u},null):null]),"UNSUBMITTED"!==L.value.trainingStatus&&g(D,{onClick:()=>h.value=!0,class:n.commentBtnGroup},{default:()=>[g("div",{class:n.text},[g("i",{class:L.value.comment&&n.look},null),L.value.comment?"查看评语":"点评作业"])]}),g(S,{style:"max-height:400px",trigger:"none"},{default:()=>[g("div",{class:n.workList},[L.value.studentLessonTrainingDetails.map((e=>g(s,{style:{marginBottom:"20px"},isDisabled:!0,isDelete:!1,item:e},null)))])]}),g(b,{class:[n.btnGroups,n.nextWrap],justify:"space-between"},{default:()=>[g("div",{class:n.allTotal},[e.current,y("/"),e.total,y("名学生")]),g("div",null,[g(b,null,{default:()=>[g(D,{disabled:e.current<=1,round:!0,type:"primary",onClick:()=>{t("pre")}},{default:()=>[y("上一名")]}),g(D,{disabled:e.current>=e.total,round:!0,type:"primary",onClick:()=>{t("next")}},{default:()=>[y("下一名")]})]})])]})]}),g(I,{show:h.value,"onUpdate:show":e=>h.value=e},{default:()=>[g(d,{comment:L.value.comment,workInfo:{isLook:!!L.value.comment,studentAvatar:L.value.studentAvatar,studentName:L.value.studentName,submitTime:L.value.submitTime,studentLessonTrainingId:L.value.studentLessonTrainingId},onClose:()=>h.value=!1,onConfrim:()=>{x(e.activeRow.studentLessonTrainingId),h.value=!1}},null)]})])}}))}}}));
- >>>>>>>> iteration-20240417-subject:dist/TrainingDetails-legacy-520ddc38-1713776975640.js
|