import{u as j}from"./useTable-2ca1782f-1782468512657v=1.0.0.js";import{u as $}from"./useHandleData-2745be0e-1782468512657v=1.0.0.js";import{u as C,b as q,a as R,_ as U}from"./index-c87bcfde-1782468512657v=1.0.0.js";import{r as h,x as f,c as V,k as K,al as s,y as Q,H as G,I as t,Q as l,u as a,M as c}from"./vendor-27e23c1b-1782468512657v=1.0.0.js";import{g as J,d as O}from"./managerManageApi-3f76fe12-1782468512657v=1.0.0.js";import"./eleVendor-12a75a9a-1782468512657v=1.0.0.js";const W=()=>{const m=C(),p=h([{label:"\u5B66\u5DE5\u53F7",prop:"tsNo",search:{el:"input",placeholder:"\u8BF7\u8F93\u5165\u5B66\u5DE5\u53F7"}}]),g=h([{type:"index",label:"\u5E8F\u53F7",width:70,fixed:"left"},{label:"\u7BA1\u7406\u5458\u7C7B\u578B",prop:"schManagerType",isFilterEnum:!0,enum:m.getEnumListByKey("schManagerType")},{label:"\u5B66\u5DE5\u53F7",prop:"tsNo"},{label:"\u540D\u79F0",prop:"tsName"},{label:"\u6240\u5C5E\u5B66\u9662",prop:"collegeNames",rights:["major","class","club","college"]},{label:"\u6240\u5C5E\u4E13\u4E1A",prop:"majorNames",rights:["major","class"]},{label:"\u6240\u5C5E\u4FF1\u4E50\u90E8",prop:"clubNames",rights:["club"]},{label:"\u6240\u5C5E\u73ED\u7EA7",prop:"classNames",rights:["class"]},{label:"\u64CD\u4F5C",prop:"operation"}]);return{columns:p,tableColumns:g,dataCallBack:o=>(o.listData.forEach(_=>{}),o),paramCallBack:o=>o}},X=W,Y=f({name:"managerManageIndex"}),ee=f({...Y,props:{type:{type:String,default:"school"}},setup(m){const p=q(),g=R();C();const i=m,{tableColumns:d,columns:o,dataCallBack:_,paramCallBack:k}=X(),{tableData:M,pageable:u,baseParam:B,searchParam:x,totalParam:ae,pageParam:te,handleSizeChange:z,handleCurrentChange:E,getTableList:b,search:T,reset:v,loading:F}=j(J,_,k),H=V(()=>d.value.filter(n=>n.rights?n.rights.includes(i.type):!0));K(async()=>{B.value.schManagerType=i.type||"school",await b()});const N=()=>{p.push({name:"managerManageAdd",query:{schManagerType:i.type}})},P=n=>{p.push({name:"managerManageEdit",query:{id:n.managerAccountAuthId}})},S=async n=>{let e="\u5220\u9664\u5F53\u524D\u6570\u636E";await $(O,{id:n.managerAccountAuthId},e),b()};return(n,e)=>{const A=s("HZSearchForm"),I=s("el-button"),y=s("el-link"),w=s("HZProTable"),Z=s("el-pagination"),D=s("HZPageLayout");return Q(),G(D,{title:a(g).meta.title},{searchForm:t(()=>[l(A,{"search-param":a(x),columns:a(o),search:a(T),reset:a(v)},null,8,["search-param","columns","search","reset"])]),title:t(()=>e[2]||(e[2]=[c(" \u7BA1\u7406\u5458\u8BBE\u7F6E ",-1)])),pagination:t(()=>[l(Z,{"current-page":a(u).page,"onUpdate:currentPage":e[0]||(e[0]=r=>a(u).page=r),"page-size":a(u).size,"onUpdate:pageSize":e[1]||(e[1]=r=>a(u).size=r),"page-sizes":[10,20,50,100],background:"",layout:"total, sizes, prev, pager, next",total:a(u).count,onSizeChange:a(z),onCurrentChange:a(E)},null,8,["current-page","page-size","total","onSizeChange","onCurrentChange"])]),dialog:t(()=>e[7]||(e[7]=[])),default:t(()=>[l(w,{columns:a(H),data:a(M),isFlex:!1,loading:a(F)},{tableHeader:t(()=>e[3]||(e[3]=[])),toolButton:t(()=>[l(I,{type:"primary",onClick:N},{default:t(()=>e[4]||(e[4]=[c(" \u65B0\u589E ",-1)])),_:1,__:[4]})]),operation:t(r=>[l(y,{type:"primary",onClick:L=>P(r.row)},{default:t(()=>e[5]||(e[5]=[c("\u7F16\u8F91",-1)])),_:2,__:[5]},1032,["onClick"]),l(y,{type:"danger",onClick:L=>S(r.row)},{default:t(()=>e[6]||(e[6]=[c("\u5220\u9664",-1)])),_:2,__:[6]},1032,["onClick"])]),_:1},8,["columns","data","loading"])]),_:1},8,["title"])}}});const pe=U(ee,[["__scopeId","data-v-ab9da170"]]);export{pe as default};
