import{u as T}from"./useTable-2ca1782f-1782468512657v=1.0.0.js";import{u as C,b as Z,_ as w}from"./index-c87bcfde-1782468512657v=1.0.0.js";import{r as f,x as h,k as D,al as r,y as L,H as N,I as t,Q as p,u as e,M as _}from"./vendor-27e23c1b-1782468512657v=1.0.0.js";import{a as V}from"./staffManageApi-23e00b5a-1782468512657v=1.0.0.js";import"./eleVendor-12a75a9a-1782468512657v=1.0.0.js";const U=()=>{const u=C(),c=f([{label:"\u5B66\u5E74",prop:"schoolYearId",isFilterEnum:!0,enum:u.academicYearOptions,search:{el:"select",placeholder:"\u8BF7\u9009\u62E9\u5B66\u5E74",props:{clearable:!1}}},{prop:"semester",label:"\u5B66\u671F",isFilterEnum:!0,enum:u.getEnumListByKey("semesterDev"),search:{el:"select",placeholder:"\u8BF7\u9009\u62E9\u5B66\u671F",props:{clearable:!1}}},{label:"\u5B66\u5DE5\u53F7",prop:"tsNo",search:{el:"input",placeholder:"\u8BF7\u8F93\u5165\u5B66\u53F7"}}]),o=f([{type:"index",label:"\u5E8F\u53F7",width:70,fixed:"left"},{label:"\u5B66\u5E74",prop:"schoolYearIdCn"},{label:"\u5B66\u671F",prop:"semesterCn"},{label:"\u5B66\u53F7",prop:"tsNo"},{label:"\u59D3\u540D",prop:"name"},{label:"\u5355\u4F4D",prop:"collegeName"},{label:"\u6027\u522B",prop:"genderCn"}]);return{columns:c,tableColumns:o,dataCallBack:n=>(n.listData.forEach(d=>{}),n),paramCallBack:n=>n}},$=U,q=h({name:"staffManageIndex"}),A=h({...q,setup(u){const c=Z(),o=C(),{tableColumns:i,columns:m,dataCallBack:n,paramCallBack:d}=$(),{tableData:k,pageable:l,baseParam:x,searchParam:g,totalParam:K,pageParam:O,handleSizeChange:y,handleCurrentChange:B,getTableList:S,search:z,reset:I,loading:v}=T(V,n,d);D(async()=>{x.value.tsType="tch",g.value={schoolYearId:o.schoolYearId,semester:o.semester},await S()});const P=b=>{c.push({name:"staffManageDetail",query:{id:b.tsId}})};return(b,a)=>{const H=r("HZSearchForm"),E=r("el-link"),M=r("HZProTable"),Y=r("el-pagination"),F=r("HZPageLayout");return L(),N(F,null,{searchForm:t(()=>[p(H,{"search-param":e(g),columns:e(m),search:e(z),reset:()=>{e(I)(null,{schoolYearId:e(o).schoolYearId,semester:e(o).semester})}},null,8,["search-param","columns","search","reset"])]),title:t(()=>a[2]||(a[2]=[_(" \u6559\u804C\u5DE5\u7BA1\u7406 ",-1)])),pagination:t(()=>[p(Y,{"current-page":e(l).page,"onUpdate:currentPage":a[0]||(a[0]=s=>e(l).page=s),"page-size":e(l).size,"onUpdate:pageSize":a[1]||(a[1]=s=>e(l).size=s),"page-sizes":[10,20,50,100],background:"",layout:"total, sizes, prev, pager, next",total:e(l).count,onSizeChange:e(y),onCurrentChange:e(B)},null,8,["current-page","page-size","total","onSizeChange","onCurrentChange"])]),dialog:t(()=>a[6]||(a[6]=[])),default:t(()=>[p(M,{columns:e(i),data:e(k),isFlex:!1,loading:e(v)},{tableHeader:t(()=>a[3]||(a[3]=[])),toolButton:t(()=>a[4]||(a[4]=[])),operation:t(s=>[p(E,{type:"primary",onClick:Q=>P(s.row)},{default:t(()=>a[5]||(a[5]=[_(" \u67E5\u770B ",-1)])),_:2,__:[5]},1032,["onClick"])]),_:1},8,["columns","data","loading"])]),_:1})}}});const X=w(A,[["__scopeId","data-v-5ab9bc7b"]]);export{X as default};
