1 |
- import{d as S,ag as C,aV as N,r as R,$ as w,c as s,F as p,q as r,ai as d,P as E,m as A,k as V}from"./index.ffe80dbe.js";import{O as I}from"./index.a0ef77e4.js";import{s as e}from"./index.module.b9eeb1f8.js";import{i as q}from"./icon_teacher.df08d662.js";import{i as b}from"./icon-muit-message.0a72e92d.js";import{C as m}from"./index.914765a1.js";import{C as h}from"./index.ea031708.js";import{I as o}from"./index.7e972106.js";import{T as U}from"./index.55ba7429.js";import{G as B,a as u}from"./index.72ca63b9.js";import{L as y}from"./index.cafcb8b5.js";import{P as K}from"./index.777c6c1a.js";import"./index.1d5c6f70.js";import"./use-tab-status.5a3cd090.js";import"./index.466e527a.js";import"./index.b4b77b5a.js";import"./index.02edecb1.js";var L="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFoAAABaCAYAAAA4qEECAAAAAXNSR0IArs4c6QAACRdJREFUeF7tnUtsU1cax7/v2nFCMK+UEErEK2AecZAC5SXeqN2guKPRjGZmW6mbdjUjNl10O5vZVO2q3VTqtq0qjYaAWMwovCQCUqCQODwMQTwDISFDMCHx45zqb8VVcn3te+zY5zrJ+STLUnLuPff87nfP9zjfuWYyooUAa+nFdEIGtCYlMKANaE0ENHVjNHqug5ZSvk9EXxDRx0S0lohqNI1JdzdJInpMRKeI6F/MPOh0ARXRaCnlISL6NxG9p3vUHvc3QkR/ZOZL9usoO+gpTe5dgJCzbAF7h12zKwH6ayL6u8ea5XX33zDzP6ZfRCVA3yeiFq9H6nH/A8y8qdKgE/PY8KnevyQzByoNWqpezXxux8wzZotKTB0GNBEZ0JoeIwO62kCfPXu2QQhxUgjxpykvolbTNVZFN5ZlUX19Pa1evZo2btxIgcAM2+Z6jUoaffr06XYpZScRNbuecQE0qK2tpb1799LSpUuVR+sKGpqcSqVuGsgzmQL2kSNHlDXbFfSZM2f+KYT4UvnWLaCGmzdvpq1btyqN2BV0Z2dnPxFtVzrbAmsUDAbp6NGjSqNWAT1BRAvK8CmRIyIYyBMnTig1VwF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3q0vLz8fnx8/E8ReBzHplQqPZZ0wFq77mELppN0kuTtbPs1rmByrnERhT9xHB+OougjgD1FgUhKUtla+2qVcCNrAKYdlQr2NF/Fq6CnAYSLYm/+AElvjGlInM262+DrHqMUKI7jo8EYAM5mwP+WSqUTIyMjX1MCURSF7IMKHY2Wz3EWqVarlVdWVq5IGpTkK5XK3ex6arw2SrBE8huA8PQmm36QdJROrhxFJmwHr+tvwhS83TbciMyWCbSTZas9OwR6rsA/1URHgBIvXhAAAAAASUVORK5CYII=",_=S({name:"my-orchestra",setup(){const n=C();N();const t=R({isLoading:!1,list:[],listState:{dataShow:!0,loading:!1,finished:!1},params:{page:1,rows:20},orchestraStatus:!1,orchestraList:[],selectOrchestra:{}}),g=()=>{t.params.page=1,t.list=[],t.listState.dataShow=!0,t.listState.loading=!1,t.listState.finished=!1,i()},i=async()=>{try{if(t.isLoading)return;t.isLoading=!0;const a=await A.post("/api-student/orchestraPhotoAlbum/page",{data:{...t.params,orchestraId:t.selectOrchestra.orchestraId}});t.listState.loading=!1;const l=a.data||{};if(t.list.length>0&&l.current===1)return;const c=l.rows||[];t.list=t.list.concat(c),t.listState.finished=l.current>=l.pages,t.params.page=l.current+1,t.listState.dataShow=t.list.length>0,t.isLoading=!1}catch{t.listState.dataShow=!1,t.listState.finished=!0,t.isLoading=!1}},f=a=>{n.push({path:"/photo-detail",query:{photoId:a.id,name:a.name}})},v=async()=>{try{const{data:a}=await A.post("/api-student/orchestra/studentOrchestra",{});console.log(a),t.orchestraList=a||[],a&&a.length>0&&(t.selectOrchestra=a[0],console.log(t.selectOrchestra),await i())}catch{}},O=async a=>{console.log(a),V({api:"joinChatGroup",content:{type:"multi",id:a.imGroupId}})};return w(async()=>{await v()}),()=>s("div",{class:e.myOrchestra},[s(I,null,{right:()=>s(p,null,[(t.selectOrchestra.status==="REGISTER"||t.selectOrchestra.status==="LEARNING")&&s("span",{onClick:()=>{n.push({path:"/apply-withdrawal",query:{id:t.selectOrchestra.orchestraId}})}},[r("\u7533\u8BF7\u9000\u56E2")]),t.selectOrchestra.status==="AUTH"&&s("span",{style:{color:"red"}},[r("\u7533\u8BF7\u9000\u56E2\u4E2D")])])}),t.orchestraList.length>0?s(p,null,[s(m,{inset:!0,class:e.oList},{default:()=>[s(h,{center:!0,clickable:!0},{title:()=>s("div",{class:e.orchestra},[s("i",null,null),s("span",{class:"van-ellipsis"},[t.selectOrchestra.orchestraName])]),value:()=>t.selectOrchestra.classGroupIdList&&t.selectOrchestra.classGroupIdList.length>0&&s("div",{class:e.iconChange,onClick:()=>{t.orchestraStatus=!0}},[r("\u5207\u6362\u4E50\u56E2 "),s(o,{src:Z,class:e.img},null)])})]}),s("div",{class:[e.gridContainer,e.gridClass]},[t.selectOrchestra.classGroupIdList&&t.selectOrchestra.classGroupIdList.map(a=>s(m,{class:e.classCellGroup},{default:()=>[s(h,{center:!0,titleStyle:{flex:"0 auto"},valueClass:e.classCheckbox,border:!1,style:{paddingBottom:"0"}},{icon:()=>s(o,{src:a.teacherAvatar||q,class:e.img,fit:"cover"},null),title:()=>s("div",{class:e.content},[s("div",{class:e.teacherName},[s("span",{class:[e.name,"van-ellipsis"]},[a.teacherName]),s(U,{type:"primary",size:"medium"},{default:()=>[a.classGroupName]})])]),value:()=>s(o,{class:e.messageImg,src:b,onClick:()=>O(a)},null)}),s(B,{border:!1,columnNum:3},{default:()=>[s(u,null,{default:()=>[s("p",{class:e.title},[a.completeCourseNum||0,r("/"),a.totalCourseNum||0]),s("p",{class:e.name},[r("\u8BFE\u7A0B")])]}),s(u,null,{default:()=>[s("p",{class:[e.title]},[a.completeTrainingNum||0,r("/"),a.totalTrainingNum||0]),s("p",{class:e.name},[r("\u8BFE\u540E\u7EC3\u4E60")])]}),s(u,null,{default:()=>[s("p",{class:e.title},[a.completeUnitTestNum||0,r("/"),a.totalUnitTestNum||0]),s("p",{class:e.name},[r("\u5355\u5143\u6D4B\u8BD5")])]})]})]}))]),s("div",{class:e.title},[s("i",null,null),r("\u8BAD\u7EC3\u7167\u7247")]),t.listState.dataShow?s(y,{finished:t.listState.finished,finishedText:" ",onLoad:i,immediateCheck:!1},{default:()=>[s("div",{class:e.phoneContainer},[t.list.map(a=>s("div",{class:e.item,onClick:()=>f(a)},[a.coverUrl?s(o,{class:e.img,src:a.coverUrl,fit:"cover"},null):s("div",{class:[e.img,e.default]},[s(o,{src:L,class:e.defaultImg,fit:"cover"},null)]),s("p",{class:[e.name,"van-ellipsis"]},[a.name]),s("p",{class:e.num},[a.photoCount,r("\u5F20")])]))])]}):s(d,{btnStatus:!1,tips:"\u6682\u65E0\u8BAD\u7EC3\u76F8\u7247"},null)]):s(d,{btnStatus:!1,tips:"\u6682\u65E0\u4E50\u56E2"},null),s(E,{show:t.orchestraStatus,"onUpdate:show":a=>t.orchestraStatus=a,position:"bottom",round:!0,class:"popupBottomSearch"},{default:()=>[s(K,{columns:t.orchestraList,columnsFieldNames:{text:"orchestraName",value:"orchestraId"},onCancel:()=>t.orchestraStatus=!1,onConfirm:a=>{const l=a.selectedValues[0];if(l===t.selectOrchestra.orchestraId){t.orchestraStatus=!1;return}t.orchestraList.forEach(c=>{c.orchestraId===l&&(t.selectOrchestra=c)}),t.orchestraStatus=!1,g()}},null)]})])}});export{_ as default};
|