index-76088284.js 6.8 KB

1
  1. import{i as _}from"./icon-timer-ac089c62.js";import{i as b}from"./icon-student-default-4c78efb2.js";import{d,J as T,g as e,h as i,M as g,O as h,o as D,R as I,F as B,B as A,W as F,f as o}from"./index-e362c2e8.js";import{C as p}from"./index-5c45ec33.js";import{I as S}from"./index-85ccd873.js";import{M as k}from"./index-cf657a5b.js";import{a as n,b as y,S as c}from"./index-5276fe86.js";import{a as G,b as P,c as R}from"./api-61d62335.js";import{S as j}from"./constant-a400d214.js";import{F as w}from"./index-6c6fed8e.js";const C="_detail_7e8bl_1",M="_listItem_7e8bl_4",z="_itemTop_7e8bl_10",Y="_icon_7e8bl_17",L="_timeTitle_7e8bl_22",x="_time_7e8bl_22",E="_timeBtn_7e8bl_29",J="_success_7e8bl_33",W="_iconIm_7e8bl_36",N="_cellTitle_7e8bl_41",K="_iconTeacher_7e8bl_46",Q="_item_box_7e8bl_57",U="_iconResult_7e8bl_60",O="_item_7e8bl_10",V="_info_7e8bl_73",X="_itemTitleDes_7e8bl_82",H="_line_7e8bl_88",q="_btns_7e8bl_95",Z="_cancelBtn_7e8bl_104",$="_skeleton_7e8bl_118",t={detail:C,listItem:M,itemTop:z,icon:Y,timeTitle:L,time:x,timeBtn:E,success:J,iconIm:W,cellTitle:N,iconTeacher:K,item_box:Q,iconResult:U,item:O,info:V,itemTitleDes:X,line:H,btns:q,cancelBtn:Z,skeleton:$},ee="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAABLpJREFUWEfdmF1sVEUUx/9nLhqrpGijAcSYRl9M5aOd2W3TRAyIYuAJSQSR+MCLLyQaE0k0+mY0Gl7URF9MjIkJFhJFHpTwITai0fbeM3eBug8GtTFBBKEKRWsrd46Zm7vN7bKFanc3yLzsx8zO+e1/zv3PmSFc5Y2ucj78/wGLxeKCJEk6lFLzAcypk+IXnXOngiAoh2H4y+XmnFbBYrG43jm3TUS6iUjVCWzKNCLiiG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aiRwBcP1P1iShMkmSdf3Lzv6l5cF+xYsWc0dHRJwFsA9A+TZDnmfnVfF+hUFjrz9T+6DBTMADD2f7+Ti3nuOLdTFdX1zKl1L0iMnn1QUTeDnbkJ8xuIvoAVJbTH8D9SnwnIhergC8S0Snn3LdxHKeF8nTtioAzUaIG3L4gCDYPDg6encnvGwpYA27P2NjYhnK5PDFbuEts5t9OWAsOwKP13IX+8xIbY7zT78rl3J56w81GwcmDfqZ6Q+BmA+gL1xhAZ/akbqznsl7RB2eSi8YYX/ncw8wetFG3X9fAHfVM1GzkmH8AYoBuR+SdLKgAAAAASUVORK5CYII=",te=""+new URL("icon-cancel-02ac7bdd.png",import.meta.url).href,le=""+new URL("icon-comfirm-8af03703.png",import.meta.url).href,se=d({name:"schedule-manage-list-item",props:{item:{type:Object,default:()=>({})}},emits:["goto"],setup(u,{emit:l}){const{item:s}=T(u),m=()=>{g({api:"joinChatGroup",content:{type:"single",id:s.value.studentId}})};return()=>e("div",{class:t.item_box},[e("div",{class:t.listItem},[e("div",{class:t.itemTop},[e("img",{class:t.icon,src:_},null),e("span",{class:t.timeTitle},[i("审批时间:")]),e("span",{class:t.time},[s.value.createTime])]),e(p,{center:!0,label:s.value.subjectName},{icon:()=>e(S,{src:s.value.studentAvatar||b,class:t.iconTeacher,fit:"cover",round:!0},null),title:()=>e("div",{class:t.cellTitle},[e("span",null,[s.value.studentName]),e("img",{class:t.iconIm,src:ee,onClick:()=>m()},null)])})]),s.value.status==="PASS"&&e("img",{class:t.iconResult,src:le},null),s.value.status==="REJECT"&&e("img",{class:t.iconResult,src:te},null)])}}),ne=d({name:"schedule-manage-list-item",props:{status:{type:String,default:""},item:{type:Object,default:()=>({})}},emits:["goto"],setup(u,{emit:l}){const s=u.item;return()=>e("div",{class:t.listItem},[e("div",{class:t.itemTop},[e(n,null,null)]),e(p,{center:!0,label:s.subjectName||"长笛"},{icon:()=>e(y,{avatarSize:"1.28rem"},null),title:()=>e(n,{rowWidth:"50%"},null),label:()=>e(n,{rowWidth:"30%"},null)})])}}),fe=d({name:"schedule-manage-detail",setup(){const u=F(),l=h({student:{},skeleton:!0,reason:"",musicGroupQuitId:u.query.musicGroupQuitId}),s=async()=>{const a=l.musicGroupQuitId;G(a).then(r=>{const v=(r==null?void 0:r.data)||{};l.student=v}).finally(()=>{l.skeleton=!1})},m=async()=>{if(!l.reason)return o("请填写审核意见");if(l.reason.length<2)return o("审核意见最少2个字");const a=await P(l.musicGroupQuitId,l.reason);o("操作成功"),a.code===200&&s()},f=async()=>{if(!l.reason)return o("请填写审核意见");if(l.reason.length<2)return o("审核意见最少2个字");const a=await R(l.musicGroupQuitId,l.reason);o("操作成功"),a.code===200&&s()};return D(()=>{s()}),()=>e("div",{class:t.detail},[e(k,{position:"top"},{default:()=>[e(I,null,null)]}),e(c,{loading:l.skeleton},{template:()=>e("div",{style:{width:"100%"}},[e(ne,null,null)]),default:()=>e(se,{item:l.student},null)}),e("div",{class:t.item},[e("div",{class:t.itemTitleDes},[e("div",{class:t.line},null),e("div",null,[i("乐团名称")])]),e(c,{class:t.skeleton,loading:l.skeleton},{template:()=>e("div",{class:t.info},[e(n,null,null),e(n,null,null)]),default:()=>e("div",{class:t.info,style:{margin:0}},[l.student.musicGroupName])})]),e("div",{class:t.item},[e("div",{class:t.itemTitleDes},[e("div",{class:t.line},null),e("div",null,[i("退团原因")])]),e(c,{class:t.skeleton,loading:l.skeleton},{template:()=>e("div",{class:t.info},[e(n,null,null),e(n,null,null)]),default:()=>e("div",{class:t.info},[j[l.student.reasonEnum]])}),e("div",{class:t.itemTitleDes},[e("div",{class:t.line},null),e("div",null,[i("具体原因")])]),e(c,{class:t.skeleton,loading:l.skeleton},{template:()=>e("div",{class:t.info},[e(n,null,null),e(n,null,null)]),default:()=>e("div",{class:t.info},[l.student.userComment])})]),e("div",{class:t.item},[e("div",{class:t.itemTitleDes},[e("div",{class:t.line},null),e("div",null,[i("审批意见 "),e("span",{style:{color:"red"}},[i("*")])])]),e(c,{class:t.skeleton,loading:l.skeleton},{template:()=>e("div",{class:t.info},[e(n,null,null),e(n,null,null)]),default:()=>e(B,null,[l.student.status==="ING"?e(w,{class:t.info,required:!0,rows:2,type:"textarea",placeholder:"请输入审批意见...",border:!1,modelValue:l.reason,"onUpdate:modelValue":a=>l.reason=a,maxlength:35},null):e("div",{class:t.info},[l.student.schoolStaffAuditReason])])})]),!l.skeleton&&l.student.status==="ING"&&e("div",{class:[t.btns,"van-safe-area-bottom"]},[e(A,{class:t.cancelBtn,round:!0,block:!0,onClick:f},{default:()=>[i("拒绝")]}),e(A,{type:"primary",round:!0,block:!0,onClick:m},{default:()=>[i("通过")]})])])}});export{fe as default};