approval-item.524d7e4d.js 6.0 KB

1
  1. import{c}from"./clock-icon.6fd57365.js";import{d as A}from"./default-icon.11fd2315.js";import{s as m}from"./student-icon.30fb072d.js";import{m as g}from"./msg-icon.adf37f7b.js";import{d as l,ag as p,c as a,ai as r,a5 as n,q as t,F as u,e as f,o as I}from"./index.1c621181.js";const d="_itemWrap_gkn7m_1",R="_itemWrapTop_gkn7m_7",T="_itemWrapTopLeft_gkn7m_15",k="_clockWrap_gkn7m_20",M="_leftTimer_gkn7m_29",W="_itemWrapTopRight_gkn7m_35",E="_passLabel_gkn7m_40",_="_unpassLabel_gkn7m_46",B="_invalidLabel_gkn7m_52",y="_passIcon_gkn7m_58",h="_msgIcon_gkn7m_62",v="_itemWrapBottom_gkn7m_65",w="_courseInfo_gkn7m_68",L="_courseInfoLeft_gkn7m_74",S="_headImgs_gkn7m_79",C="_infoMsg_gkn7m_86",D="_infoMsgMain_gkn7m_86",Q="_infoMsgSub_gkn7m_92",N="_student_gkn7m_103",U="_teacher_gkn7m_106",b="_courseInfoRight_gkn7m_109",H="_approvalType_gkn7m_114",O="_icons_gkn7m_120";var s={itemWrap:d,itemWrapTop:R,itemWrapTopLeft:T,clockWrap:k,leftTimer:M,itemWrapTopRight:W,passLabel:E,unpassLabel:_,invalidLabel:B,passIcon:y,msgIcon:h,itemWrapBottom:v,courseInfo:w,courseInfoLeft:L,headImgs:S,infoMsg:C,infoMsgMain:D,infoMsgSub:Q,student:N,teacher:U,courseInfoRight:b,approvalType:H,icons:O},F="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAA6NJREFUWEfFV1lsjFEU/u7sW6cdNbrY1RJbSOggXkoInUaiNMGLJ0QiadQDT8TStCEyGmJpLYkH60MlojNdooqIEsKkK4pm2iIaO91M/yv37z/135kx85fK3Md7zznfd8+957vnEigcGbeOW4x9P7NUgrCUEswBxSQAVsn9KwheEQqvoFJVd+u0ZTVLtn1XEppEM1p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zKu5Swj7/01Vd0RkQfAxbPs8/8HqvpWRHadc9//t2YlwGAw2BqPx89F5AlwoWTgZbMjVd1rtVrPOp3O4Wk+TgXw3kfAe+B2xcDLy/aBe8650fKPEwDe+xtWQ+DKhoLP3Py0HnLOfS36XQDId/75HIIXIW4VMzEHsJpPJpOPZdMeRRHtdjtzPBwOGY1OZHdVAvebzeadWU/MAZIk2RWRp2XT3u12aTQamfl0OqXft6qV+1T1RRzHO2adAdhRA76t0+29Xm8hWpqm5aIfWx0B1+2IZgBJkrwWkYfreKgJYOL1Jo7jR5IrnBWwrMhknHUBgAMgMoAYeLfO7jcEYG7uG8BL4HEggFcGYCq1HQjgkwH8Ai4HAvgtaZr+VdWtEAAichgeIHgJqjZhHSkulDtrwkrHsMZlVGy37BhWEqJ1m3aFfSZENmyuLcUbADiW4qqXUd0SzC+jqtdxzSZcvI7zLIQbSAwg+EiWl8LG8TBD6ayrg47lBYhwD5MZRNCnWVFkgj1Ol5XuvJ7n/wAYLi9qo/yCzAAAAABJRU5ErkJggg==",j=l({props:["item","type"],name:"approval-item",setup(e){p();const o=()=>{},i=async()=>{console.log(e.item);try{await f({api:"joinChatGroup",content:{type:"single",id:e.item.imUserId}})}catch{I("\u53D1\u8D77\u804A\u5929\u5931\u8D25")}};return()=>a(u,null,[a("div",{class:s.itemWrap,onClick:o},[a("div",{class:s.itemWrapTop},[a("div",{class:s.itemWrapTopLeft},[a("div",{class:s.clockWrap},[a("img",{src:c,alt:""},null)]),a("p",{class:s.leftTimer},[r(e.item.createTime).format("YYYY-MM-DD HH:mm")])]),e.type=="end"&&e.item.status=="PASS"?a("div",{class:s.itemWrapTopRight},[a(n,{class:s.passIcon,name:F},null),a("p",{class:s.passLabel},[t("\u901A\u8FC7")])]):null,e.type=="end"&&e.item.status=="UNPASS"?a("div",{class:s.itemWrapTopRight},[a(n,{class:s.passIcon,name:Y},null),a("p",{class:s.unpassLabel},[t("\u62D2\u7EDD")])]):null,e.type=="end"&&e.item.status=="INVALID"?a("div",{class:s.itemWrapTopRight},[a(n,{class:s.passIcon,name:G},null),a("p",{class:s.invalidLabel},[t("\u5931\u6548")])]):null,e.type=="doing"&&e.item.status=="DOING"?a("div",{class:s.itemWrapTopRight,onClick:i},[a(n,{class:s.msgIcon,name:g},null)]):null]),a("div",{class:s.itemWrapBottom},[a("div",{class:s.courseInfo},[a("div",{class:s.courseInfoLeft},[e.item.clientType=="STUDENT"?a("img",{class:s.headImgs,src:m,alt:""},null):a("img",{class:s.headImgs,src:A,alt:""},null),a("div",{class:s.infoMsg},[a("p",{class:s.infoMsgMain},[e.item.nickName]),e.item.clientType=="STUDENT"?a("p",{class:[s.infoMsgSub,s.student]},[t("\u5B66\u5458")]):a("p",{class:[s.infoMsgSub,s.teacher]},[t("\u8001\u5E08")])])]),a("div",{class:s.courseInfoRight},[e.item.approveType=="LEAVE"?a("p",{class:s.approvalType},[t("\u8BF7\u5047")]):null,e.item.approveType=="ORCHESTRA"?a("p",{class:s.approvalType},[t("\u9000\u56E2")]):null,e.type!="doing"?a(n,{class:s.icons,name:"arrow"},null):null])])])])])}});export{j as A};