index-1c210741.js 4.8 KB

12345
  1. <<<<<<<< HEAD:dist/assets/index-1c210741.js
  2. import{S as i,s as e,i as d}from"./skeleton-index-modal-661f60d4.js";import{M as p}from"./index-fbc0b234.js";import{d as m,O as f,o as h,g as s,R as v,h as t,I as g,T as C,N as I,W as N,a as y}from"./index-6ef77773.js";import{i as S}from"./icon-teacher-default-a5bec550.js";import{i as w}from"./icon-music-10132ef5.js";import{a as M}from"./constant-a400d214.js";import{C as D}from"./index-62b5de3e.js";import{C as u}from"./index-2ab268f1.js";import{I as F}from"./index-6cce5316.js";import{R as b,C as o}from"./index-5313f793.js";import"./index-54d65aa5.js";const P=m({name:"lesson-list",setup(){sessionStorage.removeItem("lesson-detail-tab-value");const n=I(),r=N(),l=f({classDate:r.query.classDate,loading:!0,dataShow:!0,list:[]}),c=async()=>{try{const{data:a}=await y.get("/api-web/schoolCourseSchedule/queryListClassesForDay",{params:{classDate:l.classDate}});l.list=a||[]}catch(a){}finally{l.loading=!1,l.dataShow=!!l.list.length}};return h(()=>{c()}),()=>s("div",null,[s(p,{position:"top"},{default:()=>[s(v,null,null)]}),s(i,{show:l.loading,"onUpdate:show":a=>l.loading=a},{default:()=>[l.dataShow?l.list.map(a=>s(D,{inset:!0,class:e.lessonCellGroup,onClick:()=>{n.push({path:"/lesson-detail",query:{courseId:a.courseId,teacherId:a.teacherId}})}},{default:()=>[s(u,{center:!0,class:e.timeCell},{title:()=>s("span",null,[a.classDate]),value:()=>s("span",null,[M[a.courseStatus]])}),s(u,{center:!0,border:!1},{icon:()=>s(F,{src:a.teacherAvatar||S,fit:"cover",class:e.iconStudent},null),title:()=>s("div",{class:e.userInfo},[s("p",{class:e.name},[a.teacherName]),s("p",{class:e.subject},[a.courseName])]),value:()=>s("div",{class:e.people},[s("img",{src:d,class:e.iconPeople},null),a.studentNum,t("人")])}),s(u,{center:!0,class:e.musicCell},{title:()=>s("div",{class:e.musicInfo},[s(g,{name:w,class:e.iconMusic},null),s("span",{class:"van-ellipsis"},[a.musicGroupName])]),label:()=>s(b,{class:e.rowGroup},{default:()=>[s(o,null,{default:()=>[t("正常出勤 "),s("span",null,[a.attendanceNormalNum])]}),s(o,null,{default:()=>[t("迟到"),s("span",{class:e.c},[a.attendanceLateNum])]}),s(o,null,{default:()=>[t("请假"),s("span",{class:e.q},[a.attendanceLeaveNum])]}),s(o,null,{default:()=>[t("旷课"),s("span",{class:e.k},[a.attendanceTruantNum])]})]})})]})):s(C,{style:{minHeight:"calc(100vh - var(--header-height))"},description:"暂无数据"},null)]})])}});export{P as default};
  3. ========
  4. import{S as i,s as e,i as d}from"./skeleton-index-modal-e15d9dd5.js";import{M as p}from"./index-8b3add60.js";import{d as m,O as f,o as h,g as s,R as v,h as t,I as g,T as C,N as I,W as N,a as y}from"./index-dbd58bee.js";import{i as S}from"./icon-teacher-default-a5bec550.js";import{i as w}from"./icon-music-10132ef5.js";import{a as M}from"./constant-a400d214.js";import{C as D}from"./index-372c1fbe.js";import{C as u}from"./index-56f3e976.js";import{I as F}from"./index-56f13818.js";import{R as b,C as o}from"./index-1c7ef11d.js";import"./index-8ef299c2.js";const P=m({name:"lesson-list",setup(){sessionStorage.removeItem("lesson-detail-tab-value");const n=I(),r=N(),l=f({classDate:r.query.classDate,loading:!0,dataShow:!0,list:[]}),c=async()=>{try{const{data:a}=await y.get("/api-web/schoolCourseSchedule/queryListClassesForDay",{params:{classDate:l.classDate}});l.list=a||[]}catch(a){}finally{l.loading=!1,l.dataShow=!!l.list.length}};return h(()=>{c()}),()=>s("div",null,[s(p,{position:"top"},{default:()=>[s(v,null,null)]}),s(i,{show:l.loading,"onUpdate:show":a=>l.loading=a},{default:()=>[l.dataShow?l.list.map(a=>s(D,{inset:!0,class:e.lessonCellGroup,onClick:()=>{n.push({path:"/lesson-detail",query:{courseId:a.courseId,teacherId:a.teacherId}})}},{default:()=>[s(u,{center:!0,class:e.timeCell},{title:()=>s("span",null,[a.classDate]),value:()=>s("span",null,[M[a.courseStatus]])}),s(u,{center:!0,border:!1},{icon:()=>s(F,{src:a.teacherAvatar||S,fit:"cover",class:e.iconStudent},null),title:()=>s("div",{class:e.userInfo},[s("p",{class:e.name},[a.teacherName]),s("p",{class:e.subject},[a.courseName])]),value:()=>s("div",{class:e.people},[s("img",{src:d,class:e.iconPeople},null),a.studentNum,t("人")])}),s(u,{center:!0,class:e.musicCell},{title:()=>s("div",{class:e.musicInfo},[s(g,{name:w,class:e.iconMusic},null),s("span",{class:"van-ellipsis"},[a.musicGroupName])]),label:()=>s(b,{class:e.rowGroup},{default:()=>[s(o,null,{default:()=>[t("正常出勤 "),s("span",null,[a.attendanceNormalNum])]}),s(o,null,{default:()=>[t("迟到"),s("span",{class:e.c},[a.attendanceLateNum])]}),s(o,null,{default:()=>[t("请假"),s("span",{class:e.q},[a.attendanceLeaveNum])]}),s(o,null,{default:()=>[t("旷课"),s("span",{class:e.k},[a.attendanceTruantNum])]})]})})]})):s(C,{style:{minHeight:"calc(100vh - var(--header-height))"},description:"暂无数据"},null)]})])}});export{P as default};
  5. >>>>>>>> 87d4d1b1 (更新):dist/assets/index-8ffa650d.js