import{r as y,x as C,c as j,k as $,al as s,y as q,H as R,I as t,Q as l,u as a,M as c}from"./vendor-6ae0c374-1783405707921v=1.0.0.js";import{u as U}from"./useTable-ad933c16-1783405707921v=1.0.0.js";import{u as V}from"./useHandleData-17459d42-1783405707921v=1.0.0.js";import{u as f,b as K,a as Q,_ as G}from"./index-71d7b18c-1783405707921v=1.0.0.js";import{g as J,d as O}from"./managerManageApi-d2a7b827-1783405707921v=1.0.0.js";import"./eleVendor-d42abce8-1783405707921v=1.0.0.js";const W=()=>{const m=f(),p=y([{label:"\u5B66\u5DE5\u53F7",prop:"tsNo",search:{el:"input",placeholder:"\u8BF7\u8F93\u5165\u5B66\u5DE5\u53F7"}}]),g=y([{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=C({name:"managerManageIndex"}),ee=C({...Y,props:{type:{type:String,default:"school"}},setup(m){const p=K(),g=Q();f();const i=m,{tableColumns:d,columns:o,dataCallBack:_,paramCallBack:M}=X(),{tableData:k,pageable:u,baseParam:B,searchParam:x,totalParam:ae,pageParam:te,handleSizeChange:v,handleCurrentChange:z,getTableList:b,search:E,reset:T,loading:F}=U(J,_,M),H=j(()=>d.value.filter(n=>n.rights?n.rights.includes(i.type):!0));$(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 V(O,{id:n.managerAccountAuthId},e),b()};return(n,e)=>{const I=s("HZSearchForm"),w=s("el-button"),h=s("el-link"),A=s("HZProTable"),Z=s("el-pagination"),D=s("HZPageLayout");return q(),R(D,{title:a(g).meta.title},{searchForm:t(()=>[l(I,{"search-param":a(x),columns:a(o),search:a(E),reset:a(T)},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(v),onCurrentChange:a(z)},null,8,["current-page","page-size","total","onSizeChange","onCurrentChange"])]),dialog:t(()=>e[7]||(e[7]=[])),default:t(()=>[l(A,{columns:a(H),data:a(k),isFlex:!1,loading:a(F)},{tableHeader:t(()=>e[3]||(e[3]=[])),toolButton:t(()=>[l(w,{type:"primary",onClick:N},{default:t(()=>e[4]||(e[4]=[c(" \u65B0\u589E ",-1)])),_:1,__:[4]})]),operation:t(r=>[l(h,{type:"primary",onClick:L=>P(r.row)},{default:t(()=>e[5]||(e[5]=[c("\u7F16\u8F91",-1)])),_:2,__:[5]},1032,["onClick"]),l(h,{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=G(ee,[["__scopeId","data-v-c184e30d"],["__file","D:/desktop/huaZhong/huazhong-common/apps/vue-admin/src/views/managerManage/managerManage/baseIndex.vue"]]);export{pe as default};
