import{S as m,C as r}from"./index-5eda53bd.js";import{P as y}from"./index-f0a69f48.js";import{d as f,e as N,f as e,N as h,g as u,I as o,Q as d,j as l,k as s,O as C}from"./index-9cbc925f.js";const v="_listWrap_1jk25_1",T="_addBtnIcon_1jk25_7",B="_addBtn_1jk25_7",n={listWrap:v,addBtnIcon:T,addBtn:B},_=f({name:"class-classList",setup(S,{emit:b}){const a=N({searchWord:"",orchestraType:null,courseTypeCode:null,loading:!1,pagination:{page:1,rows:10,pageTotal:6},tableList:[{className:"三年级1班",studentNum:"36",lastStudy:"人教版二年级上册 | 第一单元 |【歌表演】如愿"},{className:"三年级2班",studentNum:"43",lastStudy:"人教版二年级上册 | 第一单元 |【歌表演】欢乐颂"},{className:"三年级3班",studentNum:"56",lastStudy:"人教版二年级上册 | 第一单元 |【歌表演】我和我的祖国"},{className:"三年级4班",studentNum:"35",lastStudy:"人教版二年级上册 | 第一单元 |【歌表演】孤勇者"},{className:"三年级5班",studentNum:"42",lastStudy:"人教版二年级上册 | 第一单元 |【歌表演】大雁"},{className:"三年级1班",studentNum:"38",lastStudy:"人教版二年级上册 | 第一单元 |【歌表演】暗香"}]}),i=()=>{console.log("search",a)},c=()=>{console.log("search")},p=()=>{console.log("getList")},g=()=>[{title:"班级名称",key:"className"},{title:"学生人数",key:"studentNum"},{title:"上次学习",key:"lastStudy"},{title:"操作",key:"id",render(t){return e("div",null,[e(d,null,{default:()=>[e(l,{type:"primary",text:!0},{default:()=>[s("详情")]}),e(l,{type:"primary",text:!0},{default:()=>[s("修改")]}),e(l,{type:"primary",text:!0},{default:()=>[s("学生调整")]}),e(l,{type:"primary",text:!0},{default:()=>[s("开始上课")]}),e(l,{type:"primary",text:!0,textColor:"#EA4132"},{default:()=>[s("删除")]})]})])}}];return()=>e("div",{class:n.listWrap},[e("div",{class:n.searchList},[e(h,{"label-placement":"left",inline:!0},{default:()=>[e(u,null,{default:()=>[e(m,o({placeholder:"请输入班级名称"},{class:n.searchInput,searchWord:a.searchWord,onChangeValue:t=>a.searchWord=t}),null)]}),e(u,null,{default:()=>[e(r,o({options:[{label:"一年级",value:"song0"},{label:"二年级",value:"song1"}],placeholder:"全部年级",clearable:!0,inline:!0},{value:a.orchestraType,"onUpdate:value":t=>a.orchestraType=t}),null)]}),e(u,null,{default:()=>[e(r,o({options:[{label:"1班",value:"song0"},{label:"2班",value:"song1"}],placeholder:"全部班级",clearable:!0,inline:!0},{value:a.courseTypeCode,"onUpdate:value":t=>a.courseTypeCode=t}),null)]}),e(u,null,{default:()=>[e(d,{justify:"end"},{default:()=>[e(l,{type:"primary",class:"searchBtn",onClick:i},{default:()=>[s("搜索")]}),e(l,{type:"primary",ghost:!0,class:"resetBtn",onClick:c},{default:()=>[s("重置")]})]})]})]})]),e("div",{class:n.tableWrap},[e(C,{class:n.classTable,loading:a.loading,columns:g(),data:a.tableList},null),e(y,{page:a.pagination.page,"onUpdate:page":t=>a.pagination.page=t,pageSize:a.pagination.rows,"onUpdate:pageSize":t=>a.pagination.rows=t,pageTotal:a.pagination.pageTotal,"onUpdate:pageTotal":t=>a.pagination.pageTotal=t,onList:p,sync:!0,saveKey:"orchestraRegistration-key"},null)])])}});export{_ as default};
