1 |
- import{d as C,ag as W,c as e,q as v,a5 as S,F,r as B,ai as p,R as n,$ as R,Z as E,ak as N,P as g,b2 as O,al as V,m as d,g as Y,o as f}from"./index.5f7ffb46.js";import{O as X}from"./index.1d6ac2c5.js";import{c as M}from"./clock-icon.6fd57365.js";import{c as T}from"./index.b28db9f5.js";import{L as q}from"./index.9ef28852.js";import{D as K}from"./index.af85409e.js";import{P as b}from"./index.de1f78a6.js";const G="_itemWrap_qnjru_1",z="_itemWrapTop_qnjru_7",x="_itemWrapTopLeft_qnjru_15",L="_clockWrap_qnjru_20",Z="_leftTimer_qnjru_29",J="_itemWrapTopRight_qnjru_35",_="_itemWrapBottom_qnjru_39",$="_passWrap_qnjru_46",ee="_goWrap_qnjru_47",te="_itemBottomMain_qnjru_56",ae="_itemBottomSub_qnjru_65";var r={itemWrap:G,itemWrapTop:z,itemWrapTopLeft:x,clockWrap:L,leftTimer:Z,itemWrapTopRight:J,itemWrapBottom:_,passWrap:$,goWrap:ee,itemBottomMain:te,itemBottomSub:ae},oe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAAAXNSR0IArs4c6QAADepJREFUeF7tnXmQF8UVxz8NrisKqKiIkMKoiGIUjERco8YiZWmpqSSm8E5CNAlaeMQoahITE83hfcQbYjR44YGIoCBGJYpGWK+AFom6agiJKJcoIpcyqbe/maV//euenpn9zeIUM//s0dM9Pe/b737TrajDFQRBT2Ao0ATsBuwKbAV0Axrr8IjP0xCrgeXAMuBN4HVgJjBdKbWwvRNVWQcIgqAHcDzwPWAIkHmsrHP4nPULgGbgTmCcUmpplvmlJmIQBDsAo4BTgC2yPHQj6LMCGA1cqZRakOZ9EwMSBEEDcBZwIdA1zUM24ns/Bi4GrlVKrU1Ch0SABEHQD7gf+HKSQct7aijwCnCMUqrFRxsvIEEQfBsYC3T3DVa2x1LgI2C4Umpi3F2xgARBMAK4CehcErsuFPgMGKmUGuMazQlICMYtpfVUFyD0QcQaO9UFihW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ERaR0xKmCNyd2ANkRSLbvjkjJIhyWe/tuB5Rkg/siUDrCFNrg/khjjBZuSY+M/dTdby3LUrf9JGDrWYE4AgVidMhm4BxjzGT/PQUC4nCKllEYmWzJWnQY5ZFfbYwZHTRzKCAeUFTQlHBKcXARZ3QLA0OXyAmIA4rE1+NArPaXKw59qnQW6YxLgsRUXh3iv03LsqTo/66uvCp9hOpzMVlTnYwxSgbmHHk5xKPoZRKrQ7IvEK9tafI9Zfl+l9M3ALjPGLMxym1EBsQDjDz6nsBVQN0oF9kGj1FsahQwxBjzVSHPXzAgHmAUkDxfXXpA6yj6qJAb2wqPlfWk/u0ngPHGmBWVeYZKA+K9mJPkageoWUOdnNI5OwOq94z3WhaFU209sBpQB6t0gvr1ZgLTjTFLC58u84z/A8s6fMNbQci+AAAAAElFTkSuQmCC",re=C({props:["item"],name:"studentAtt-item",setup(s){const w=W(),t=()=>{w.push({path:"/student-att-day",query:{time:s.item.time}})};return()=>e(F,null,[e("div",{class:r.itemWrap,onClick:t},[e("div",{class:r.itemWrapTop},[e("div",{class:r.itemWrapTopLeft},[e("div",{class:r.clockWrap},[e("img",{src:M,alt:""},null)]),e("p",{class:r.leftTimer},[s.item.time,v(" ")])]),e("div",{class:r.itemWrapTopRight},[e(S,{name:"arrow"},null)])]),e("div",{class:r.itemWrapBottom},[e("div",{class:r.passWrap},[e("img",{src:oe,alt:""},null),e("div",null,[e("p",{class:r.itemBottomMain},[s.item.leaveNum]),e("p",{class:r.itemBottomSub},[v("\u8BF7\u5047\u4EBA\u6570")])])]),e("div",{class:r.goWrap},[e("img",{src:se,alt:""},null),e("div",null,[e("p",{class:r.itemBottomMain},[s.item.truancyNum]),e("p",{class:r.itemBottomSub},[v("\u65F7\u8BFE\u4EBA\u6570")])])])])])])}});function ce(s){return typeof s=="function"||Object.prototype.toString.call(s)==="[object Object]"&&!V(s)}var he=C({name:"attend-student",props:{toHeight:{type:Number,default:0},type:{type:String,default:""}},setup(s,{emit:w}){W();const t=B({showPopoverTime:!1,showPopoverOrchestra:!1,showPopoverSubject:!1,isClick:!1,actions:[],subjects:[],currentDate:[p().format("YYYY"),p().format("MM")]}),c=B({time:t.currentDate[0]+""+t.currentDate[1],timeName:t.currentDate[0]+"\u5E74"+t.currentDate[1]+"\u6708",orchestraId:"",orchestraName:"\u5168\u90E8\u4E50\u56E2",courseType:"",courseTypeName:"\u5168\u90E8\u8BFE\u7A0B\u7C7B\u578B",page:1,rows:20}),j=n(s.toHeight),I=n(new Date(p().subtract(10,"year").format("YYYY-MM-DD"))),Q=n(new Date(p().add(10,"year").format("YYYY-MM-DD"))),H=n(["year","month"]),i=n(!1),A=n(!1),m=n(!1),h=n(!1),l=n([]),u=async()=>{if(!t.isClick){t.isClick=!0,A.value=!0;try{i.value&&(l.value=[],i.value=!1);const o=await d.post(`${Y.platformApi}/courseScheduleStudentAttendance/studentAttendance`,{data:{...c}});if(l.value.length>0&&o.data.pages===1)return;l.value=o.data,h.value=l.value.length>0,A.value=!1,m.value=!0}catch(o){const a=o.message;f(a),h.value=!1,m.value=!0}t.isClick=!1}},y=o=>{c.time=o.selectedValues[0]+o.selectedValues[1],c.timeName=o.selectedValues[0]+"\u5E74"+o.selectedValues[1]+"\u6708",t.showPopoverTime=!1,u()},P=o=>{const a=o.selectedOptions[0]||{};c.orchestraId=a.value,c.orchestraName=a.name,t.showPopoverOrchestra=!1,i.value=!0,u()},D=o=>{const a=o.selectedOptions[0]||{};c.courseType=a.value,c.courseTypeName=a.name,t.showPopoverSubject=!1,i.value=!0,u()},U=async()=>{try{const o=await d.post("/api-teacher/orchestra/page",{data:{page:1,rows:9999,status:"DONE"}});t.actions=o.data.rows.map(a=>({name:a.name,value:a.id})),t.actions.unshift({name:"\u5168\u90E8\u4E50\u56E2",value:""})}catch(o){const a=o.message;f(a)}};R(()=>{t.subjects.push({name:"\u5168\u90E8\u8BFE\u7A0B\u7C7B\u578B",value:""}),Object.keys(T).forEach(o=>{t.subjects.push({name:T[o],value:o})}),U(),u()}),E(()=>s.toHeight,o=>{j.value=o});const k=()=>{m.value=!1,A.value=!0,u()};return()=>{let o;return e("div",null,[e("div",{class:"searchGroup"},[e("div",{class:["searchItem",t.showPopoverTime&&"searchItem-active"],onClick:()=>{t.showPopoverTime=!0}},[c.timeName,e("i",{class:"arrow"},null)]),e("div",{class:["searchItem",t.showPopoverOrchestra&&"searchItem-active"],onClick:()=>{t.showPopoverOrchestra=!0}},[e("span",null,[c.orchestraName]),e("i",{class:"arrow"},null)]),e("div",{class:["searchItem",t.showPopoverSubject&&"searchItem-active"],onClick:()=>{t.showPopoverSubject=!0}},[c.courseTypeName,e("i",{class:"arrow"},null)])]),e("div",{style:{overflowY:"auto",height:s.type==="teacher"?"calc(100vh - 1.17333rem)":"calc(100vh - var(--van-tabs-line-height) - var(--header-height) - 1.17333rem)"}},[h.value?e(X,{modelValue:i.value,"onUpdate:modelValue":a=>i.value=a,onRefresh:k,style:{minHeight:s.type==="teacher"?"calc(100vh - 1.17333rem)":"calc(100vh - var(--van-tabs-line-height) - var(--header-height) - 1.17333rem)"}},{default:()=>[e(q,{"loading-text":" ",finished:m.value,"finished-text":" ",style:{paddingTop:"12px"},onLoad:u},ce(o=l.value.map(a=>e(re,{item:a},null)))?o:{default:()=>[o]})]}):e(N,{tips:"\u6682\u65E0\u8003\u52E4"},null)]),e(g,{show:t.showPopoverTime,"onUpdate:show":a=>t.showPopoverTime=a,position:"bottom",round:!0,teleport:"body",class:"popupBottomSearch"},{default:()=>[e(K,{onCancel:()=>{t.showPopoverTime=!1},onConfirm:y,modelValue:t.currentDate,"onUpdate:modelValue":a=>t.currentDate=a,formatter:O,minDate:I.value,maxDate:Q.value,columnsType:H.value},null)]}),e(g,{show:t.showPopoverOrchestra,"onUpdate:show":a=>t.showPopoverOrchestra=a,position:"bottom",round:!0,teleport:"body",class:"popupBottomSearch"},{default:()=>[e(b,{columns:t.actions,onCancel:()=>t.showPopoverOrchestra=!1,onConfirm:a=>P(a),columnsFieldNames:{text:"name",value:"value"}},null)]}),e(g,{show:t.showPopoverSubject,"onUpdate:show":a=>t.showPopoverSubject=a,position:"bottom",round:!0,teleport:"body",class:"popupBottomSearch"},{default:()=>[e(b,{columns:t.subjects,onCancel:()=>t.showPopoverSubject=!1,onConfirm:a=>D(a),columnsFieldNames:{text:"name",value:"value"}},null)]})])}}});export{he as A};
|