import{u as N}from"./useTable-2ca1782f-1782468512657v=1.0.0.js";import{u as w}from"./useHandleData-2745be0e-1782468512657v=1.0.0.js";import{u as Z,f as A,b as V,_ as $}from"./index-c87bcfde-1782468512657v=1.0.0.js";import{u as U}from"./useGetCollage-3b0599a7-1782468512657v=1.0.0.js";import{r as k,Q as l,x as h,k as R,al as u,y as q,H as G,I as t,M as i,u as a,L as K}from"./vendor-27e23c1b-1782468512657v=1.0.0.js";import{b as Q,d as j}from"./accountPermissionManageApi-2cda4906-1782468512657v=1.0.0.js";import"./eleVendor-12a75a9a-1782468512657v=1.0.0.js";import"./collageManageApi-6fb2328f-1782468512657v=1.0.0.js";const J=()=>{const f=Z(),{getCollageList:m,collageList:d,getPageCollageList:c}=U(),g=k([{prop:"collegeId",label:"\u5B66\u9662\u540D\u79F0",isFilterEnum:!0,enum:d,search:{render:({searchParam:n})=>l(A,{ref:"pageSelectRef",value:n.collegeId,"onUpdate:value":p=>n.collegeId=p,"remote-method":c},null)}},{label:"\u59D3\u540D",prop:"name",search:{el:"input",placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D"}},{label:"\u5B66\u5DE5\u53F7",prop:"tsNo",search:{el:"input",placeholder:"\u8BF7\u8F93\u5165\u5B66\u5DE5\u53F7"}}]),_=k([{type:"index",label:"\u5E8F\u53F7",width:70,fixed:"left"},{label:"\u8D26\u53F7\u540D\u79F0",prop:"name"},{label:"\u5B66\u5DE5\u53F7",prop:"tsNo"},{label:"\u5B66\u9662\u540D\u79F0",prop:"collegeName"},{label:"\u6743\u9650\u7EA7\u522B",prop:"schoolLevelCn"},{label:"\u7528\u6237\u8EAB\u4EFD",prop:"tsType",isFilterEnum:!0,enum:f.getEnumListByKey("tsType")},{label:"\u73ED\u7EA7\u540D\u79F0",prop:"className"},{label:"\u64CD\u4F5C",prop:"operation",fixed:"right",width:200}]);return{columns:g,tableColumns:_,dataCallBack:n=>(n.listData.forEach(p=>{}),n),paramCallBack:n=>n}},O=J,W=h({name:"staffManageIndex"}),X=h({...W,setup(f){const m=V(),{tableColumns:d,columns:c,dataCallBack:g,paramCallBack:_}=O(),{tableData:C,pageable:s,baseParam:n,searchParam:p,totalParam:Y,pageParam:ee,handleSizeChange:x,handleCurrentChange:B,getTableList:b,search:P,reset:v,loading:z}=N(Q,g,_);R(async()=>{n.value.tsManageType="biz",await b()});const F=()=>{m.push({name:"accountPermissionManageAdd"})},I=o=>{m.push({name:"accountPermissionManageEdit",query:{role_id:o.role_id,mp_id:o.mp_id,personnel_id:o.personnelId,tsId:o.tsId}})},S=async o=>{let e="\u5220\u9664\u5F53\u524D\u6570\u636E";await w(j,{tsId:o.tsId},e),b()};return(o,e)=>{const E=u("HZSearchForm"),L=u("el-button"),y=u("el-link"),M=u("HZProTable"),H=u("el-pagination"),T=u("HZPageLayout");return q(),G(T,null,{title:t(()=>e[2]||(e[2]=[i(" \u8D26\u53F7\u6743\u9650\u7BA1\u7406 ",-1)])),searchForm:t(()=>[l(E,{"search-param":a(p),columns:a(c),search:a(P),reset:a(v)},null,8,["search-param","columns","search","reset"])]),pagination:t(()=>[l(H,{"current-page":a(s).page,"onUpdate:currentPage":e[0]||(e[0]=r=>a(s).page=r),"page-size":a(s).size,"onUpdate:pageSize":e[1]||(e[1]=r=>a(s).size=r),"page-sizes":[10,20,50,100],background:"",layout:"total, sizes, prev, pager, next",total:a(s).count,onSizeChange:a(x),onCurrentChange:a(B)},null,8,["current-page","page-size","total","onSizeChange","onCurrentChange"])]),dialog:t(()=>e[7]||(e[7]=[])),default:t(()=>[l(M,{columns:a(d),data:a(C),isFlex:!1,loading:a(z)},{tableHeader:t(()=>e[3]||(e[3]=[])),toolButton:t(()=>[l(L,{type:"primary",onClick:F},{default:t(()=>e[4]||(e[4]=[i(" \u65B0\u589E\u8D26\u53F7 ",-1)])),_:1,__:[4]})]),operation:t(r=>[K(' <el-link type="primary" @click="handleView(scope.row)"> \u67E5\u770B </el-link> '),l(y,{type:"primary",onClick:D=>I(r.row)},{default:t(()=>e[5]||(e[5]=[i(" \u7F16\u8F91 ",-1)])),_:2,__:[5]},1032,["onClick"]),l(y,{type:"danger",onClick:D=>S(r.row)},{default:t(()=>e[6]||(e[6]=[i(" \u5220\u9664 ",-1)])),_:2,__:[6]},1032,["onClick"])]),_:1},8,["columns","data","loading"])]),_:1})}}});const pe=$(X,[["__scopeId","data-v-193f60ea"]]);export{pe as default};
