import{r as _,x as h,k as w,al as r,y as D,H as F,I as t,Q as p,u as e,M as b}from"./vendor-6ae0c374-1783405707921v=1.0.0.js";import{u as T}from"./useTable-ad933c16-1783405707921v=1.0.0.js";import{u as C,b as L,_ as N}from"./index-71d7b18c-1783405707921v=1.0.0.js";import{a as V}from"./staffManageApi-119a99cf-1783405707921v=1.0.0.js";import"./eleVendor-d42abce8-1783405707921v=1.0.0.js";const U=()=>{const u=C(),c=_([{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=_([{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=L(),o=C(),{tableColumns:i,columns:m,dataCallBack:n,paramCallBack:d}=$(),{tableData:k,pageable:s,baseParam:x,searchParam:g,totalParam:K,pageParam:O,handleSizeChange:y,handleCurrentChange:v,getTableList:B,search:S,reset:z,loading:I}=T(V,n,d);w(async()=>{x.value.tsType="tch",g.value={schoolYearId:o.schoolYearId,semester:o.semester},await B()});const M=f=>{c.push({name:"staffManageDetail",query:{id:f.tsId}})};return(f,a)=>{const P=r("HZSearchForm"),H=r("el-link"),E=r("HZProTable"),Y=r("el-pagination"),Z=r("HZPageLayout");return D(),F(Z,null,{searchForm:t(()=>[p(P,{"search-param":e(g),columns:e(m),search:e(S),reset:()=>{e(z)(null,{schoolYearId:e(o).schoolYearId,semester:e(o).semester})}},null,8,["search-param","columns","search","reset"])]),title:t(()=>a[2]||(a[2]=[b(" \u6559\u804C\u5DE5\u7BA1\u7406 ",-1)])),pagination:t(()=>[p(Y,{"current-page":e(s).page,"onUpdate:currentPage":a[0]||(a[0]=l=>e(s).page=l),"page-size":e(s).size,"onUpdate:pageSize":a[1]||(a[1]=l=>e(s).size=l),"page-sizes":[10,20,50,100],background:"",layout:"total, sizes, prev, pager, next",total:e(s).count,onSizeChange:e(y),onCurrentChange:e(v)},null,8,["current-page","page-size","total","onSizeChange","onCurrentChange"])]),dialog:t(()=>a[6]||(a[6]=[])),default:t(()=>[p(E,{columns:e(i),data:e(k),isFlex:!1,loading:e(I)},{tableHeader:t(()=>a[3]||(a[3]=[])),toolButton:t(()=>a[4]||(a[4]=[])),operation:t(l=>[p(H,{type:"primary",onClick:Q=>M(l.row)},{default:t(()=>a[5]||(a[5]=[b(" \u67E5\u770B ",-1)])),_:2,__:[5]},1032,["onClick"])]),_:1},8,["columns","data","loading"])]),_:1})}}});const X=N(A,[["__scopeId","data-v-67bc3a8c"],["__file","D:/desktop/huaZhong/huazhong-common/apps/vue-admin/src/views/baseManage/staffManage/index.vue"]]);export{X as default};
