1 |
- System.register(["./index-legacy-328f76a5-1710145257255.js","./index-legacy-eda4dbd4-1710145257255.js","./index-legacy-1ac354fb-1710145257255.js","./add-legacy-e7111c9d-1710145257255.js","./index-legacy-bb1e0f79-1710145257255.js","./api-legacy-8a70e046-1710145257255.js","./use-async-legacy-80ec4cf8-1710145257255.js","./contants-legacy-52972304-1710145257255.js","./teacherIcon-legacy-3eeb62c3-1710145257255.js","./index-legacy-b387dbce-1710145257255.js","./api-legacy-0b4e6d0a-1710145257255.js","./index-legacy-8c850648-1710145257255.js","./index-legacy-4960545d-1710145257255.js","./index-legacy-c8b323cf-1710145257255.js","./index-legacy-91d6d648-1710145257255.js","./api-legacy-b2c6fdf3-1710145257255.js","./icon-collect-active-legacy-b7c75e66-1710145257255.js","./index-legacy-3b2edb29-1710145257255.js","./index-legacy-c5fdc311-1710145257255.js","./Slider-legacy-7ffcb148-1710145257255.js","./urlUtils-legacy-6df7f30c-1710145257255.js","./index-legacy-f63aaa99-1710145257255.js","./catchData-legacy-ba087c26-1710145257255.js","./index-legacy-06ee070a-1710145257255.js","./Scrollbar-legacy-b67290d1-1710145257255.js","./index-legacy-3a6b4ffc-1710145257255.js","./api-legacy-3687dc3f-1710145257255.js","./searchArray-legacy-ff9b626a-1710145257255.js"],(function(e,r){"use strict";var t,a,n,i,o,l,s,_,c,d,m,u,p,h,k,g,w,v,q,f,b,x,y,F,T,C,L,j,S,V,Y,I,P,N,E,B,D,M,R,U;return{setters:[e=>{t=e.S},e=>{a=e.C},e=>{n=e.C},e=>{i=e.a},e=>{o=e.d,l=e.L,s=e.e,_=e.r,c=e.b,d=e.u,m=e.a,u=e.p,p=e.f,h=e.N,k=e.g,g=e.x,w=e.w,v=e.j,q=e.k,f=e.F,b=e.v,x=e.B,y=e.a8,F=e.bs,T=e.l,C=e.H},e=>{L=e.g,j=e.b},e=>{S=e.i,V=e.s},e=>{Y=e.g,I=e.c},e=>{P=e.d},e=>{N=e.P},e=>{E=e.a,B=e.b},e=>{D=e.T},e=>{M=e.T,R=e.R},e=>{U=e.u},null,null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){var r=document.createElement("style");r.textContent='._listWrap_1q3rk_1{padding:1.66666667vw;background-color:#fff;border-radius:1.04166667vw}._searchList_1q3rk_6 ._searchInput_1q3rk_6{max-width:13.54166667vw}._searchList_1q3rk_6 .n-form.n-form--inline{flex-wrap:wrap}._searchList_1q3rk_6 .n-form.n-form--inline .n-form-item{margin-right:.9375vw}._infoListWrap_1q3rk_15{min-height:calc(100vh - 7.8125vw)!important}._addBtnIcon_1q3rk_18{width:13Px!important;height:14Px!important}._addBtn_1q3rk_18{margin-bottom:1.5625vw;background:#198cfe!important;border-radius:7Px!important;padding:0 18Px!important;font-weight:600!important}._btnGroup_1q3rk_29{padding:2.08333333vw 0}._btnGroup_1q3rk_29 .n-button{height:2.44791667vw;min-width:8.125vw}._addClass_1q3rk_36{display:flex;flex-direction:column;align-items:center;padding-top:2.60416667vw}._listWrap_1q3rk_1{min-height:100%;padding:1.66666667vw;background-color:#fff;border-radius:1.04166667vw}._workVisiable_1q3rk_48{width:65.52083333vw}._workContainer_1q3rk_51{display:flex;align-items:center}._workContainer_1q3rk_51 ._workTrain_1q3rk_55{flex:1;height:75vh}._workContainer_1q3rk_51 ._workTrain_1q3rk_55>div{padding-top:.78125vw}._workContainer_1q3rk_51 .train-container{max-height:calc(var(--window-page-lesson-height) - 5.20833333vw)!important}._workContainer_1q3rk_51 .train-container .train-listSection{min-height:calc(var(--window-page-lesson-height) - 5.20833333vw)!important}._workContainer_1q3rk_51 ._resourceMain_1q3rk_68{flex:0 0 18.75vw;height:75vh;box-shadow:0 .10416667vw .41666667vw rgba(0,0,0,.1)}._removeVisiable_1q3rk_73{width:22.5vw}._removeVisiable_1q3rk_73 .n-card-header{font-size:max(1.14583333rem,16Px)}._removeVisiable_1q3rk_73 ._studentRemove_1q3rk_79{padding:0 2.08333333vw}._removeVisiable_1q3rk_73 ._studentRemove_1q3rk_79 p{font-size:max(.9375rem,14Px);color:#777;line-height:1.5625vw}._removeVisiable_1q3rk_73 ._studentRemove_1q3rk_79 p span{color:#ea4132}._removeVisiable_1q3rk_73 ._btnGroup_1q3rk_29{padding:1.66666667vw 0}._removeVisiable_1q3rk_73 ._btnGroup_1q3rk_29 .n-button{height:2.44791667vw;min-width:8.125vw}._listSection_1q3rk_97{padding:0 0 .625vw;display:flex;flex-flow:row wrap;justify-content:flex-start;gap:1.04166667vw 2%}._listSection_1q3rk_97>div{width:49%!important}._item_1q3rk_107{cursor:pointer;background:#F7F9FF;border-radius:.67708333vw;padding:0 .88541667vw .88541667vw}._item_1q3rk_107 ._header_1q3rk_113{display:flex;align-items:center;padding:.67708333vw 0}._item_1q3rk_107 ._header_1q3rk_113 ._navatar_1q3rk_118{width:3.125vw;height:3.125vw;border-radius:50%;padding:.10416667vw;border:1px solid #198CFE;margin-right:.78125vw;flex-shrink:0;background-color:#fff!important}._item_1q3rk_107 ._header_1q3rk_113 ._navatar_1q3rk_118 img{border-radius:50%}._item_1q3rk_107 ._header_1q3rk_113 ._userInfo_1q3rk_131{padding-top:.20833333vw;flex:1}._item_1q3rk_107 ._header_1q3rk_113 ._userInfo_1q3rk_131 h2{font-size:max(.88541667rem,14Px);font-weight:600;color:#131415;line-height:1.45833333vw}._item_1q3rk_107 ._header_1q3rk_113 ._userInfo_1q3rk_131 p{font-size:max(.83333333rem,12Px);color:#777;line-height:1.45833333vw}._item_1q3rk_107 ._header_1q3rk_113 ._ing_1q3rk_146{font-weight:500;color:#1677ff}._item_1q3rk_107 ._header_1q3rk_113 ._over_1q3rk_150{font-weight:500;color:#aaa}._item_1q3rk_107 ._content_1q3rk_154{display:flex;justify-content:space-between;align-items:flex-end;padding:.67708333vw;background:#FFFFFF;border-radius:.52083333vw}._item_1q3rk_107 ._content_1q3rk_154 ._homeTitle_1q3rk_162{font-size:max(.88541667rem,14Px);font-family:PingFangSC,PingFang SC;font-weight:600;color:#000;padding-bottom:.26041667vw}._item_1q3rk_107 ._content_1q3rk_154 ._homeContent_1q3rk_169{padding-bottom:.26041667vw}._item_1q3rk_107 ._content_1q3rk_154 ._homeworkText_1q3rk_172{display:flex;align-items:flex-start}._item_1q3rk_107 ._content_1q3rk_154 ._homeworkText_1q3rk_172 ._pSection_1q3rk_176{max-width:26.04166667vw}._item_1q3rk_107 ._content_1q3rk_154 ._homeworkText_1q3rk_172 ._p1_1q3rk_179,._item_1q3rk_107 ._content_1q3rk_154 ._homeworkText_1q3rk_172 ._p2_1q3rk_180{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._item_1q3rk_107 ._content_1q3rk_154 ._homeworkText_1q3rk_172 ._p1_1q3rk_179:before,._item_1q3rk_107 ._content_1q3rk_154 ._homeworkText_1q3rk_172 ._p2_1q3rk_180:before{content:"";display:inline-block;width:.26041667vw;height:.26041667vw;background:#198CFE;margin-right:.36458333vw;border-radius:50%;flex-shrink:0;transform:translateY(-.15625vw)}._item_1q3rk_107 ._content_1q3rk_154 ._homeworkText_1q3rk_172 ._p1_1q3rk_179{padding-bottom:.3125vw}._item_1q3rk_107 ._content_1q3rk_154 ._homeworkText_1q3rk_172 ._p2_1q3rk_180:before{background:#F44040}._item_1q3rk_107 ._content_1q3rk_154 ._title_1q3rk_203{font-size:max(.67708333rem,12Px);color:#777;flex-shrink:0}._item_1q3rk_107 ._content_1q3rk_154 ._text_1q3rk_208{font-size:max(.67708333rem,12Px);font-weight:500;color:#333;line-height:1.14583333vw}._item_1q3rk_107 ._content_1q3rk_154 ._errorBtn_1q3rk_214{min-width:4.84375vw;--n-height: 1.875vw !important;border-radius:.36458333vw;--n-font-size: max(.67708333rem, 12Px);font-weight:600;color:#fff;line-height:.9375vw}\n',document.head.appendChild(r);const G={listWrap:"_listWrap_1q3rk_1",searchList:"_searchList_1q3rk_6",searchInput:"_searchInput_1q3rk_6",infoListWrap:"_infoListWrap_1q3rk_15",addBtnIcon:"_addBtnIcon_1q3rk_18",addBtn:"_addBtn_1q3rk_18",btnGroup:"_btnGroup_1q3rk_29",addClass:"_addClass_1q3rk_36",workVisiable:"_workVisiable_1q3rk_48",workContainer:"_workContainer_1q3rk_51",workTrain:"_workTrain_1q3rk_55",resourceMain:"_resourceMain_1q3rk_68",removeVisiable:"_removeVisiable_1q3rk_73",studentRemove:"_studentRemove_1q3rk_79",listSection:"_listSection_1q3rk_97",item:"_item_1q3rk_107",header:"_header_1q3rk_113",navatar:"_navatar_1q3rk_118",userInfo:"_userInfo_1q3rk_131",ing:"_ing_1q3rk_146",over:"_over_1q3rk_150",content:"_content_1q3rk_154",homeTitle:"_homeTitle_1q3rk_162",homeContent:"_homeContent_1q3rk_169",homeworkText:"_homeworkText_1q3rk_172",pSection:"_pSection_1q3rk_176",p1:"_p1_1q3rk_179",p2:"_p2_1q3rk_180",title:"_title_1q3rk_203",text:"_text_1q3rk_208",errorBtn:"_errorBtn_1q3rk_214"};var O={exports:{}},z=O.exports={};z.nextTick=function(){var e="undefined"!=typeof window&&window.setImmediate,r="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(e)return function(e){return window.setImmediate(e)};if(r){var t=[];return window.addEventListener("message",(function(e){var r=e.source;r!==window&&null!==r||"process-tick"!==e.data||(e.stopPropagation(),t.length>0&&t.shift()())}),!0),function(e){t.push(e),window.postMessage("process-tick","*")}}return function(e){setTimeout(e,0)}}(),z.title="browser",z.browser=!0,z.env={},z.argv=[],z.binding=function(e){throw new Error("process.binding is not supported")},z.cwd=function(){return"/"},z.chdir=function(e){throw new Error("process.chdir is not supported")};var W=O.exports;const A=e("getCurrentMonth",(()=>[l().startOf("month").valueOf(),l().endOf("month").valueOf()]));e("default",o({name:"homework-record",setup(){const e=s({workVisiable:!1,resetVisiable:!1,resetItem:{},searchForm:{keyword:null,currentClass:"",currentGradeNum:"",subjectId:"",gradeYear:"",gradeLevel:"",homeworkObj:"",status:"",timer:A(),selfFlag:!0},loading:!1,pagination:{page:1,rows:10,pageTotal:6},gradeNumList:[],tableList:[],studentVisible:!1,activeRow:null,showaddClass:!1,popSelectYearList:[],popSelectLevelList:[]}),r=_(),o=c(),O=d(),z=m(),H=()=>{e.pagination.page=1,J(),V({current:e.searchForm,saveKey:z.path})};e.gradeNumList=Y();const K=()=>{e.searchForm={keyword:null,currentClass:"",currentGradeNum:"",subjectId:"",gradeYear:"",gradeLevel:"",homeworkObj:"",status:"",timer:A(),selfFlag:!0},e.popSelectYearList.length>0&&(e.searchForm.gradeYear=e.popSelectYearList[1].id),V({current:e.searchForm,saveKey:z.path}),J()},J=async()=>{e.loading=!0;try{const r=await E({...e.searchForm,...e.pagination,...C(e.searchForm.timer,["startTime","endTime"],"YYYY-MM-DD")});(r.data.rows||[]).forEach((e=>{let r="",t="";e.studentLessonTrainingDetails&&e.studentLessonTrainingDetails.length>0&&e.studentLessonTrainingDetails.forEach((e=>{"PRACTICE"===e.trainingType&&e.musicName&&(r+=r?"、"+e.musicName:e.musicName),"EVALUATION"===e.trainingType&&e.musicName&&(t+=t?"、"+e.musicName:e.musicName)})),e.pTitle=r,e.eTitle=t})),e.tableList=r.data.rows,e.pagination.pageTotal=r.data.total,e.loading=!1}catch(r){e.loading=!1,console.log(r)}};S({current:e.searchForm,callBack:r=>{e.searchForm=r}});const Q=async()=>{try{await B({lessonTrainingId:e.resetItem.id}),o.success("撤回成功"),e.resetVisiable=!1,H()}catch{}};return u((async()=>{e.loading=!0,await(async()=>{try{const{data:r}=await L(),t=r||[];t.forEach((e=>{e.name=e.name+"学年"})),t.unshift({id:"",name:"全部学年"}),e.popSelectYearList=t||[],t.length>0&&!e.searchForm.gradeYear&&(e.searchForm.gradeYear=t[1].id)}catch{}})(),await(async()=>{try{const{data:r}=await j(),t=r||[];t.forEach((e=>{e.name=e.name+"级"})),t.unshift({id:"",name:"全部学级"}),e.popSelectLevelList=t||[],t.length>0&&!e.searchForm.gradeLevel&&(e.searchForm.gradeLevel=t[0].id)}catch{}})(),await J(),e.loading=!1})),()=>p("div",{class:G.listWrap},[p("div",{class:G.searchList},[p(h,{"label-placement":"left",inline:!0,ref:r},{default:()=>[p(k,null,{default:()=>[p(t,g({placeholder:"请输入作业标题关键词"},{class:G.searchInput,searchWord:e.searchForm.keyword,onChangeValue:r=>e.searchForm.keyword=r}),null)]}),p(k,null,{default:()=>[p(n,g({options:[{id:"",name:"作业对象"},{id:"PERSON",name:"个人"},{id:"CLASS",name:"班级"}],placeholder:"选择作业对象",clearable:!0,inline:!0,labelField:"name",valueField:"id"},{value:e.searchForm.homeworkObj,"onUpdate:value":r=>e.searchForm.homeworkObj=r}),null)]}),p(k,null,{default:()=>[p(n,g({options:e.popSelectYearList,placeholder:"选择学年",clearable:!0,inline:!0,labelField:"name",valueField:"id"},{value:e.searchForm.gradeYear,"onUpdate:value":r=>e.searchForm.gradeYear=r}),null)]}),p(k,null,{default:()=>[p(n,g({options:e.popSelectLevelList,placeholder:"选择学级",clearable:!0,inline:!0,labelField:"name",valueField:"id"},{value:e.searchForm.gradeLevel,"onUpdate:value":r=>e.searchForm.gradeLevel=r}),null)]}),p(k,null,{default:()=>[p(n,g({options:e.gradeNumList,placeholder:"选择年级",clearable:!0,inline:!0},{value:e.searchForm.currentGradeNum,"onUpdate:value":r=>e.searchForm.currentGradeNum=r}),null)]}),p(k,null,{default:()=>[p(n,g({options:I,placeholder:"选择班级",clearable:!0,inline:!0},{value:e.searchForm.currentClass,"onUpdate:value":r=>e.searchForm.currentClass=r}),null)]}),p(k,null,{default:()=>[p(n,g({options:[{value:"",label:"全部状态"},{value:0,label:"进行中"},{value:1,label:"已结束"}],placeholder:"选择状态",clearable:!0,inline:!0},{value:e.searchForm.status,"onUpdate:value":r=>e.searchForm.status=r}),null)]}),p(k,null,{default:()=>[p(a,{class:G.CDatePickerItem,separator:"-",type:"daterange",value:e.searchForm.timer,"onUpdate:value":r=>e.searchForm.timer=r,timerValue:e.searchForm.timer},null)]}),p(k,null,{default:()=>[p(w,{justify:"end"},{default:()=>[p(v,{type:"primary",class:"searchBtn",onClick:H},{default:()=>[q("搜索")]}),p(v,{type:"primary",ghost:!0,class:"resetBtn",onClick:K},{default:()=>[q("重置")]})]})]})]})]),p(v,{class:G.addBtn,type:"primary",onClick:()=>{e.workVisiable=!0,W.nextTick((()=>{U(document.querySelector("#model-homework-height"),(e=>{const r=e[0],{height:t}=r.contentRect;document.documentElement.style.setProperty("--window-page-lesson-height",t+"px")}))}))}},{default:()=>[q("布置作业")],icon:()=>p(f,null,[p(b,{class:G.addBtnIcon,previewDisabled:!0,src:i},null)])}),p("div",{class:G.tableWrap},[p(x,{show:e.loading},{default:()=>[p("div",{style:{minHeight:"40vh"}},[p("div",{class:G.listSection},[e.tableList.map((r=>p("div",{class:G.item,onClick:()=>{O.push({path:"/homework-record-detail",query:{id:r.id,name:r.name}})}},[p("div",{class:G.header},[p(y,{class:G.navatar,round:!0,src:r.teacherAvatar||P},null),p("div",{class:G.userInfo},[p("h2",null,[r.teacherName]),p("p",null,[q("布置时间:"),l(r.createTime).format("YYYY-MM-DD HH:mm"),p("span",null,[q(" | ")]),p("span",{style:{color:"#EA4132"}},[q("截止时间:"),l(r.expireDate).format("YYYY-MM-DD HH:mm")])])]),p("div",{class:r.status?G.over:G.ing},[r.status?"已结束":"进行中"])]),p("div",{class:G.content},[p("div",null,[p("div",{class:G.homeTitle},[r.name]),p("div",{class:G.homeContent},[p("span",{class:G.title},[q("作业对象:")]),p("span",{class:G.text},[r.homeworkObjName])]),p("div",{class:[G.homeContent,G.homeworkText]},[p("span",{class:G.title},[q("作业内容:")]),p("div",{class:G.pSection},[r.pTitle&&p("p",{class:[G.text,G.p1]},[r.pTitle]),r.eTitle&&p("p",{class:[G.text,G.p2]},[r.eTitle])])]),p("div",{class:G.homeSubmit},[p("span",{class:G.title},[q("已提交:")]),p("span",{class:G.text},[r.trainingNum||0,q("/"),r.expectNum||0,q("人")]),p(F,{vertical:!0},null),p("span",{class:G.title},[q("提交率:")]),p("span",{class:G.text},[r.trainingRate||0,q("%")]),p(F,{vertical:!0},null),p("span",{class:G.title},[q("合格人数:")]),p("span",{class:G.text},[r.standardNum||0,q("人")]),p(F,{vertical:!0},null),p("span",{class:G.title},[q("合格率:")]),p("span",{class:G.text},[r.qualifiedRate||0,q("%")])])]),!r.status&&p(v,{class:G.errorBtn,type:"error",color:"#F94D50",onClick:t=>{t.stopPropagation(),e.resetVisiable=!0,e.resetItem=r}},{default:()=>[q("撤回")]})])])))]),e.tableList.length<=0&&!e.loading&&p(D,{class:G.nowEmpty},null)])]}),e.tableList.length>0&&p(N,{page:e.pagination.page,"onUpdate:page":r=>e.pagination.page=r,pageSize:e.pagination.rows,"onUpdate:pageSize":r=>e.pagination.rows=r,pageTotal:e.pagination.pageTotal,"onUpdate:pageTotal":r=>e.pagination.pageTotal=r,onList:J,sync:!0},null)]),p(T,{show:e.resetVisiable,"onUpdate:show":r=>e.resetVisiable=r,preset:"card",class:["modalTitle",G.removeVisiable],title:"撤回作业"},{default:()=>[p("div",{class:G.studentRemove},[p("p",null,[q("撤回作业后,此条作业将被删除,是否确认撤回【"),e.resetItem.name,q("】?")]),p(w,{class:G.btnGroup,justify:"center"},{default:()=>[p(v,{round:!0,onClick:()=>e.resetVisiable=!1},{default:()=>[q("取消")]}),p(v,{round:!0,type:"primary",onClick:Q},{default:()=>[q("确定")]})]})])]}),p(T,{show:e.workVisiable,"onUpdate:show":r=>e.workVisiable=r,preset:"card",class:["modalTitle background",G.workVisiable],title:"作业详情"},{default:()=>[p("div",{id:"model-homework-height",class:G.workContainer},[p("div",{class:G.workTrain},[p(M,{lessonPreTraining:{title:l().format("YYYY年MM月DD日")+"-课后作业"},cardType:"homeworkRecord",onChange:r=>{e.workVisiable=r.status,J()}},null)]),p("div",{class:G.resourceMain},[p(R,{cardType:"homerowk-record"},null)])])]})])}}))}}}));
|