1 |
- import{c as X}from"./clock-icon.6fd57365.js";import{s as m,e as p}from"./success-icon.245b8694.js";import{d as Z}from"./default-icon.11fd2315.js";import{d as tt,ag as at,ah as ot,R as d,g as st,$ as et,c as t,aj as nt,ai as i,q as e,a5 as _,F as g,e as v,o as q,m as it}from"./index.3b0304e1.js";import{m as lt}from"./msg-icon.adf37f7b.js";import{t as G}from"./index.b28db9f5.js";import{A as ut}from"./index.5fdd5242.js";const ct="_itemWrap_1yhd9_1",rt="_itemWrapTopCard_1yhd9_5",mt="_itemWrapTop_1yhd9_5",pt="_itemWrapTopLeft_1yhd9_19",dt="_clockWrap_1yhd9_24",gt="_leftTimer_1yhd9_34",_t="_itemWrapTopRight_1yhd9_40",vt="_itemWrapBottom_1yhd9_44",ht="_msgIcon_1yhd9_51",ft="_courseInfo_1yhd9_58",It="_headImgs_1yhd9_63",Tt="_infoMsg_1yhd9_70",Lt="_infoMsgMain_1yhd9_70",Wt="_infoMsgSub_1yhd9_76",yt="_infoMsgSubTeacher_1yhd9_87",Mt="_attBackInfo_1yhd9_90",bt="_attInfo_1yhd9_93",At="_attInfoDot_1yhd9_99",Dt="_attInfoDotTitle_1yhd9_104",St="_signTime_1yhd9_117",Rt="_textWidth_1yhd9_126",Bt="_attRang_1yhd9_135",Ct="_locP_1yhd9_145",Ot="_passWrap_1yhd9_150",Nt="_goWrap_1yhd9_153",Ft="_error_1yhd9_156",kt="_pass_1yhd9_150",Ht="_itemBottomMain_1yhd9_172",Pt="_itemBottomSub_1yhd9_180",wt="_bottomTitle_1yhd9_193",Et="_bottomTitleLeft_1yhd9_207",xt="_cross_1yhd9_220",Yt="_bottomConent_1yhd9_223",$t="_bottomImgWrap_1yhd9_229",jt="_bottomConentLeft_1yhd9_238",qt="_bottomConentRight_1yhd9_239";var a={itemWrap:ct,itemWrapTopCard:rt,itemWrapTop:mt,itemWrapTopLeft:pt,clockWrap:dt,leftTimer:gt,itemWrapTopRight:_t,itemWrapBottom:vt,msgIcon:ht,courseInfo:ft,headImgs:It,infoMsg:Tt,infoMsgMain:Lt,infoMsgSub:Wt,infoMsgSubTeacher:yt,attBackInfo:Mt,attInfo:bt,attInfoDot:At,attInfoDotTitle:Dt,signTime:St,textWidth:Rt,attRang:Bt,locP:Ct,passWrap:Ot,goWrap:Nt,error:Ft,pass:kt,itemBottomMain:Ht,itemBottomSub:Pt,bottomTitle:wt,bottomTitleLeft:Et,cross:xt,bottomConent:Yt,bottomImgWrap:$t,bottomConentLeft:jt,bottomConentRight:qt},Gt="./assets/sendmsg-icon.359ba703.png",Ut="./assets/phone-icon.95930842.png",aa=tt({props:["item"],name:"teacher-attendDetail",setup(Vt){at();const U=ot(),V=()=>{};d(0);const o=d({}),u=d(st.platformApi);console.log(u.value);const c=d(!1),z=()=>{c.value=!0},l=()=>{c.value=!1},J=async()=>{try{await v({api:"joinChatGroup",content:{type:"single",id:o.value.imUserId}}),l()}catch{q("\u53D1\u8D77\u804A\u5929\u5931\u8D25"),l()}},K=async()=>{try{await v({api:"callPhone",content:{phone:o.value.teacherPhone}}),l()}catch{q("\u62E8\u53F7\u5931\u8D25"),l()}},Q=async()=>{try{const n=await it.post(`${u.value}/courseSchedule/teacherAttendance/course/${U.query.courseScheduleId}`,{});o.value=n.data}catch(n){console.log(n)}};et(()=>{Q()});const h=async n=>{if(!!n)try{await v({api:"sourseMapApi",content:{type:"display",orginPoint:o.value.schoolLongitudeLatitude,myPoint:n,limitDistance:o.value.scopeOfAttendance}})}catch(r){console.log(r)}};return()=>{var n,r,f,I,T,L,W,y,M,b,A,D,S,R,B,C,O,N,F,k,H,P,w,E,x,Y,$,j;return t(g,null,[t(nt,null,null),t("div",{class:a.itemWrap,onClick:V},[t("div",{class:a.itemWrapTopCard},[t("div",{class:a.itemWrapTop},[t("div",{class:a.itemWrapTopLeft},[t("div",{class:a.clockWrap},[t("img",{src:X,alt:""},null)]),t("p",{class:a.leftTimer},[i((n=o.value)==null?void 0:n.startTime).format("YYYY-MM-DD HH:mm"),"~",i((r=o.value)==null?void 0:r.endTime).format("HH:mm")])]),t("div",{class:a.itemWrapTopRight},null)]),t("div",{class:a.itemWrapBottom},[t("div",{class:a.courseInfo},[t("img",{class:a.headImgs,src:o.value.teacherAvatar?o.value.teacherAvatar:Z,alt:""},null),t("div",{class:a.infoMsg},[t("p",{class:a.infoMsgMain},[(f=o.value)==null?void 0:f.classGroupName,e("-"),(I=o.value)==null?void 0:I.teacherName]),t("p",{class:[a.infoMsgSub,u.value=="/api-teacher"?a.infoMsgSubTeacher:""]},[(T=o.value)==null?void 0:T.orchestraName])])]),u.value=="/api-teacher"?null:t("div",{class:a.msgIcon,onClick:s=>{s.stopPropagation(),s.preventDefault(),z()}},[t("img",{src:lt,alt:""},null)])])]),t("div",{class:a.attInfo},[t("div",{class:((L=o.value)==null?void 0:L.signInStatus)==="NORMAL"?a.passWrap:a.goWrap},[t("div",{class:a.attInfoDot},[t("div",{class:a.attInfoDotTitle},[t("span",null,[e("\u4E0A\u8BFE\u65F6\u95F4 "),t("span",null,[i((W=o.value)==null?void 0:W.startTime).format("HH:mm")])]),t("img",{src:((y=o.value)==null?void 0:y.signInStatus)==="NORMAL"?m:p,alt:""},null)]),t("p",{class:a.signTime},[(M=o.value)!=null&&M.signInTime?t("div",{class:a.textWidth},[((b=o.value)==null?void 0:b.signInStatus)==="NORMAL"?"\u7B7E\u5230\u65F6\u95F4":G[(A=o.value)==null?void 0:A.signInStatus]]):"",(D=o.value)!=null&&D.signInTime?t("span",null,[i((S=o.value)==null?void 0:S.signInTime).format("HH:mm:ss")]):"\u672A\u7B7E\u5230"])])]),t("div",{class:((R=o.value)==null?void 0:R.signInLongitudeLatitudeStatus)==="NORMAL"?a.passWrap:a.goWrap},[t("div",{class:a.attInfoDot},[t("div",{class:a.attInfoDotTitle},[t("span",null,[e("\u7B7E\u5230\u5B9A\u4F4D")]),t("img",{src:((B=o.value)==null?void 0:B.signInLongitudeLatitudeStatus)==="NORMAL"?m:p,alt:""},null)]),t("div",{class:a.attRang,onClick:()=>{h(o.value.signInLongitudeLatitude)}},[o.value.signInLongitudeLatitude?t("p",null,[((C=o.value)==null?void 0:C.signInLongitudeLatitudeStatus)==="NORMAL"?"\u8003\u52E4\u8303\u56F4\u5185":"\u8003\u52E4\u8303\u56F4\u5916"]):t("p",null,[e("\u6682\u65E0\u5B9A\u4F4D")]),o.value.signInLongitudeLatitude?t("p",{class:[a.locP,((O=o.value)==null?void 0:O.signInLongitudeLatitudeStatus)==="NORMAL"?a.pass:a.error]},[e("\u67E5\u770B\u5B9A\u4F4D"),t(_,{name:"arrow",class:a.arrow},null)]):null])])])]),t("div",{class:[a.attInfo,a.attBackInfo]},[t("div",{class:((N=o.value)==null?void 0:N.signOutStatus)==="NORMAL"?a.passWrap:a.goWrap},[t("div",{class:a.attInfoDot},[t("div",{class:a.attInfoDotTitle},[t("p",null,[e("\u4E0B\u8BFE\u65F6\u95F4 "),t("span",null,[i((F=o.value)==null?void 0:F.endTime).format("HH:mm")])]),t("img",{src:((k=o.value)==null?void 0:k.signOutStatus)==="NORMAL"?m:p,alt:""},null)]),t("p",{class:a.signTime},[(H=o.value)!=null&&H.signOutTime?t(g,null,[t("div",{class:a.textWidth},[((P=o.value)==null?void 0:P.signOutStatus)==="NORMAL"?"\u7B7E\u9000\u65F6\u95F4":G[(w=o.value)==null?void 0:w.signOutStatus]]),t("span",null,[i((E=o.value)==null?void 0:E.signOutTime).format("HH:mm:ss")])]):"\u672A\u7B7E\u9000"])])]),t("div",{class:((x=o.value)==null?void 0:x.signOutLongitudeLatitudeStatus)==="NORMAL"?a.passWrap:a.goWrap},[t("div",{class:a.attInfoDot},[t("div",{class:a.attInfoDotTitle},[t("span",null,[e("\u7B7E\u9000\u5B9A\u4F4D")]),t("img",{src:((Y=o.value)==null?void 0:Y.signOutLongitudeLatitudeStatus)==="NORMAL"?m:p,alt:""},null)]),t("div",{class:a.attRang,onClick:()=>{h(o.value.signOutLongitudeLatitude)}},[o.value.signOutLongitudeLatitude?t(g,null,[t("p",null,[" ",(($=o.value)==null?void 0:$.signOutLongitudeLatitudeStatus)==="NORMAL"?"\u8003\u52E4\u8303\u56F4\u5185":"\u8003\u52E4\u8303\u56F4\u5916"]),t("p",{class:[a.locP,((j=o.value)==null?void 0:j.signOutLongitudeLatitudeStatus)==="NORMAL"?a.pass:a.error]},[e("\u67E5\u770B\u5B9A\u4F4D"),t(_,{name:"arrow",class:a.arrow},null)])]):t(g,null,[t("p",null,[e("\u6682\u65E0\u5B9A\u4F4D")]),t("p",null,null)])])])])]),t(ut,{class:"bottomSheet",show:c.value,"onUpdate:show":s=>c.value=s},{default:()=>[t("div",{class:a.bottomConent},[t("div",{class:a.bottomConentLeft,onClick:s=>{s.stopPropagation(),s.preventDefault(),J()}},[t("div",{class:a.bottomImgWrap},[t("img",{src:Gt,alt:""},null)]),t("p",null,[e("\u53D1\u9001\u6D88\u606F")])]),t("div",{class:a.bottomConentRight,onClick:s=>{s.stopPropagation(),s.preventDefault(),K()}},[t("div",{class:a.bottomImgWrap},[t("img",{src:Ut,alt:""},null)]),t("p",null,[e("\u62E8\u6253\u7535\u8BDD")])])])],description:()=>t("div",{class:a.bottomTitle},[t("div",{class:a.bottomTitleLeft},[t("span",null,null),t("p",null,[e("\u8054\u7CFB\u65B9\u5F0F")])]),t("div",{class:a.bottomTitleRight,onClick:s=>{s.stopPropagation(),s.preventDefault(),l()}},[t(_,{class:a.cross,name:"cross"},null)])])})])])}}});export{aa as default};
|