import{S as A,C as d}from"./index-49cf9693.js";import{P as m}from"./index-5b95534b.js";import{d as y,e as T,f as e,N as h,g as s,I as n,Q as N,j as o,k as u,F as r,o as b,O as f}from"./index-d4a54385.js";const v="_listWrap_10dtj_1",C="_addBtnIcon_10dtj_7",I="_addBtn_10dtj_7",l={listWrap:v,addBtnIcon:C,addBtn:I},B="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAiCAYAAAA+stv/AAAAAXNSR0IArs4c6QAAAIlJREFUWEftl8ENgCAUQ9s9dCAXYSgXcSDZo8YEE+KxGvFQ7v0tj0P5xOBD11/SAmBt+kJyc2Y9CbADmJppJTl/HUC9IUnrMpboNJaUACEQAiEQAu8Q6FrtKhanUxxNBVAoqW81Z9ATTf1FgOtjMeYJXH6p4xAIgRAIgRC41fiQ5XTseu626F13AEfpiG9yJa5UAAAAAElFTkSuQmCC",S=y({name:"student-studentList",setup(x,{emit:U}){const t=T({searchWord:"",orchestraType:null,courseTypeCode:null,subjectId:null,classId:null,studentType:null,loading:!1,pagination:{page:1,rows:10,pageTotal:4},tableList:[{studentName:"胡小小",phone:"17625367893",sex:"0",className:"一年级3班",classType:"normal",studentType:"member"},{studentName:"丁曼蓉",phone:"14677789334",sex:"1",className:"一年级3班",classType:"normal",studentType:""},{studentName:"李书意",phone:"13467857893",sex:"1",className:"一年级3班",classType:"graduate",studentType:"member"},{studentName:"夏小满",phone:"13925367893",sex:"0",className:"一年级3班",classType:"none",studentType:""}]}),p=()=>{console.log("search",t)},c=()=>{console.log("search")},i=()=>{console.log("getList")},g=()=>[{title:"姓名",key:"studentName"},{title:"手机号",key:"phone"},{title:"性别",key:"sex",render(a){return e(r,null,[a.sex=="0"?"女":"男"])}},{title:"班级",key:"className",render(a){return e(r,null,[e("div",null,[a.classType=="none"?e("p",{style:{color:"#EA4132"}},["未在班级"]):null,a.classType=="graduate"?e("p",{style:{color:"#AAAAAA"}},["毕业"]):null,a.classType=="normal"?e("p",null,[a.className]):null])])}},{title:"学生类型",key:"studentType",render(a){return e(r,null,[a.studentType=="member"?"会员":"普通"])}},{title:"操作",key:"id",render(a){return e(o,{text:!0,type:"primary"},{default:()=>[u("详情")]})}}];return()=>e("div",{class:l.listWrap},[e("div",{class:l.searchList},[e(h,{"label-placement":"left",inline:!0},{default:()=>[e(s,null,{default:()=>[e(A,n({placeholder:"请输入学生姓名"},{class:l.searchInput,searchWord:t.searchWord,onChangeValue:a=>t.searchWord=a}),null)]}),e(s,null,{default:()=>[e(d,n({options:[{label:"竖笛",value:"song0"},{label:"葫芦丝",value:"song1"}],placeholder:"学生声部",clearable:!0,inline:!0},{value:t.subjectId,"onUpdate:value":a=>t.subjectId=a}),null)]}),e(s,null,{default:()=>[e(d,n({options:[{label:"一年级2班",value:"song0"},{label:"一年级3班",value:"song1"}],placeholder:"年级班级",clearable:!0,inline:!0},{value:t.classId,"onUpdate:value":a=>t.classId=a}),null)]}),e(s,null,{default:()=>[e(d,n({options:[{label:"会员",value:"song0"},{label:"普通",value:"song1"}],placeholder:"学生类型",clearable:!0,inline:!0},{value:t.studentType,"onUpdate:value":a=>t.studentType=a}),null)]}),e(s,null,{default:()=>[e(N,{justify:"end"},{default:()=>[e(o,{type:"primary",class:"searchBtn",onClick:p},{default:()=>[u("搜索")]}),e(o,{type:"primary",ghost:!0,class:"resetBtn",onClick:c},{default:()=>[u("重置")]})]})]})]})]),e(o,{class:l.addBtn,type:"primary"},{default:()=>[u("新增学生")],icon:()=>e(r,null,[e(b,{class:l.addBtnIcon,src:B},null)])}),e("div",{class:l.tableWrap},[e(f,{class:l.classTable,loading:t.loading,columns:g(),data:t.tableList},null),e(m,{page:t.pagination.page,"onUpdate:page":a=>t.pagination.page=a,pageSize:t.pagination.rows,"onUpdate:pageSize":a=>t.pagination.rows=a,pageTotal:t.pagination.pageTotal,"onUpdate:pageTotal":a=>t.pagination.pageTotal=a,onList:i,sync:!0,saveKey:"orchestraRegistration-key"},null)])])}});export{S as default};
