import{P as p}from"./index-5b95534b.js";import{C as f}from"./index-174a8f16.js";import{T as _}from"./index-d84289ef.js";import{d as b,e as m,f as a,Q as d,j as l,k as s,N as E,g as T,m as C,n as c}from"./index-d4a54385.js";import{l as q}from"./data-c15517db.js";import"./index-81a5ad3c.js";const S="_listWrap_efqon_1",z="_list_efqon_1",N="_searchGroup_efqon_45",A="_btnType_efqon_49",B="_inputSearch_efqon_83",U="_searchCatatory_efqon_106",F="_addTrain_efqon_113",u={listWrap:S,list:z,searchGroup:N,btnType:A,inputSearch:B,searchCatatory:U,addTrain:F},L=""+new URL("icon-add-540d8f63.svg",import.meta.url).href,g=b({name:"search-group",setup(){return m({search:""}),()=>a("div",{class:u.searchGroup},[a("div",{class:u.searchCatatory},[a(d,{size:"small",class:u.btnType},{default:()=>[a(l,{type:"primary",round:!0,size:"small",focusable:!1},{default:()=>[s("全部")]}),a(l,{secondary:!0,round:!0,size:"small",focusable:!1},{default:()=>[s("乐谱")]}),a(l,{secondary:!0,round:!0,size:"small",focusable:!1},{default:()=>[s("图片")]}),a(l,{secondary:!0,round:!0,size:"small",focusable:!1},{default:()=>[s("音频")]}),a(l,{secondary:!0,round:!0,size:"small",focusable:!1},{default:()=>[s("视频")]})]}),a(l,{type:"primary",class:u.addTrain,focusable:!1,strong:!0},{default:()=>[a("img",{src:L},null),s("添加自定义教材")]})]),a(E,{labelAlign:"left",labelPlacement:"left"},{default:()=>[a(T,{label:"教材："},{default:()=>[a(d,null,{default:()=>[a(l,{secondary:!0,strong:!0,type:"primary",focusable:!1},{default:()=>[s("全部")]}),a(l,{quaternary:!0,focusable:!1},{default:()=>[s("人教版")]}),a(l,{quaternary:!0,focusable:!1},{default:()=>[s("声部训练")]}),a(l,{quaternary:!0,focusable:!1},{default:()=>[s("小曲目")]}),a(l,{quaternary:!0,focusable:!1},{default:()=>[s("考级曲目")]})]})]}),a(T,{label:"乐器："},{default:()=>[a(d,null,{default:()=>[a(l,{secondary:!0,strong:!0,type:"primary"},{default:()=>[s("全部")]}),a(l,{quaternary:!0,focusable:!1,type:"default"},{default:()=>[s("竖笛")]}),a(l,{quaternary:!0,focusable:!1,type:"default"},{default:()=>[s("排萧")]}),a(l,{quaternary:!0,focusable:!1,type:"default"},{default:()=>[s("口风琴")]}),a(l,{quaternary:!0,focusable:!1,type:"default"},{default:()=>[s("陶笛")]}),a(l,{quaternary:!0,focusable:!1,type:"default"},{default:()=>[s("葫芦丝")]})]})]}),a(_,{class:u.inputSearch,round:!0},null)]})])}}),R=b({name:"student-studentList",setup(){const t=m({searchWord:"",loading:!1,pagination:{page:1,rows:10,pageTotal:0},tableList:[]}),n=m({list:[],height:"100%"}),h=()=>{const e=q.rows||[];console.log(e);const o=[];e.forEach((r,y)=>{o.push({id:r.id,type:"SONG",title:r.musicSheetName,url:r.fixedTone?r.fixedTone.split(",")[0]:"",isCollect:!(y%3),isSelected:!(y%4)})}),n.list=o||[],t.pagination.pageTotal=o.length,t.pagination.rows=o.length},i=()=>{console.log("getList")};return h(),()=>a("div",{class:u.listWrap},[a(C,{defaultValue:"shareResources",paneClass:u.paneTitle,justifyContent:"center",paneWrapperClass:u.paneWrapperContainer},{default:()=>[a(c,{name:"shareResources",tab:"共享资源"},{default:()=>[a(g,null,null),a("div",{class:u.list},[n.list.map(e=>a(f,{item:e},null))]),a(p,{page:t.pagination.page,"onUpdate:page":e=>t.pagination.page=e,pageSize:t.pagination.rows,"onUpdate:pageSize":e=>t.pagination.rows=e,pageTotal:t.pagination.pageTotal,"onUpdate:pageTotal":e=>t.pagination.pageTotal=e,onList:i},null)]}),a(c,{name:"myResources",tab:"我的资源"},{default:()=>[a(g,null,null),a("div",{class:u.list},[n.list.map(e=>a(f,{item:e},null))]),a(p,{page:t.pagination.page,"onUpdate:page":e=>t.pagination.page=e,pageSize:t.pagination.rows,"onUpdate:pageSize":e=>t.pagination.rows=e,pageTotal:t.pagination.pageTotal,"onUpdate:pageTotal":e=>t.pagination.pageTotal=e,onList:i},null)]}),a(c,{name:"myCollect",tab:"我的收藏"},{default:()=>[a(g,null,null),a("div",{class:u.list},[n.list.map(e=>a(f,{item:e},null))]),a(p,{page:t.pagination.page,"onUpdate:page":e=>t.pagination.page=e,pageSize:t.pagination.rows,"onUpdate:pageSize":e=>t.pagination.rows=e,pageTotal:t.pagination.pageTotal,"onUpdate:pageTotal":e=>t.pagination.pageTotal=e,onList:i},null)]})]})])}});export{R as default};
