import{r as y,Q as l,x as k,k as w,al as u,y as N,H as Z,I as t,M as p,u as a,L as A}from"./vendor-6ae0c374-1783405707921v=1.0.0.js";import{u as V}from"./useTable-ad933c16-1783405707921v=1.0.0.js";import{u as U}from"./useHandleData-17459d42-1783405707921v=1.0.0.js";import{u as $,P as R,b as q,_ as G}from"./index-71d7b18c-1783405707921v=1.0.0.js";import{u as K}from"./useGetCollage-bc6bc4bb-1783405707921v=1.0.0.js";import{b as Q,d as j}from"./accountPermissionManageApi-6b6d66fe-1783405707921v=1.0.0.js";import"./eleVendor-d42abce8-1783405707921v=1.0.0.js";import"./collageManageApi-e21931eb-1783405707921v=1.0.0.js";const J=()=>{const f=$(),{getCollageList:m,collageList:c,getPageCollageList:d}=K(),g=y([{prop:"collegeId",label:"\u5B66\u9662\u540D\u79F0",isFilterEnum:!0,enum:c,search:{render:({searchParam:n})=>l(R,{ref:"pageSelectRef",value:n.collegeId,"onUpdate:value":i=>n.collegeId=i,"remote-method":d},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"}}]),_=y([{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(i=>{}),n),paramCallBack:n=>n}},O=J,W=k({name:"staffManageIndex"}),X=k({...W,setup(f){const m=q(),{tableColumns:c,columns:d,dataCallBack:g,paramCallBack:_}=O(),{tableData:C,pageable:s,baseParam:n,searchParam:i,totalParam:Y,pageParam:ee,handleSizeChange:x,handleCurrentChange:P,getTableList:b,search:v,reset:B,loading:z}=V(Q,g,_);w(async()=>{n.value.tsManageType="biz",await b()});const S=()=>{m.push({name:"accountPermissionManageAdd"})},F=o=>{m.push({name:"accountPermissionManageEdit",query:{role_id:o.role_id,mp_id:o.mp_id,personnel_id:o.personnelId,tsId:o.tsId}})},I=async o=>{let e="\u5220\u9664\u5F53\u524D\u6570\u636E";await U(j,{tsId:o.tsId},e),b()};return(o,e)=>{const M=u("HZSearchForm"),E=u("el-button"),h=u("el-link"),L=u("HZProTable"),H=u("el-pagination"),D=u("HZPageLayout");return N(),Z(D,null,{title:t(()=>e[2]||(e[2]=[p(" \u8D26\u53F7\u6743\u9650\u7BA1\u7406 ",-1)])),searchForm:t(()=>[l(M,{"search-param":a(i),columns:a(d),search:a(v),reset:a(B)},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(P)},null,8,["current-page","page-size","total","onSizeChange","onCurrentChange"])]),dialog:t(()=>e[7]||(e[7]=[])),default:t(()=>[l(L,{columns:a(c),data:a(C),isFlex:!1,loading:a(z)},{tableHeader:t(()=>e[3]||(e[3]=[])),toolButton:t(()=>[l(E,{type:"primary",onClick:S},{default:t(()=>e[4]||(e[4]=[p(" \u65B0\u589E\u8D26\u53F7 ",-1)])),_:1,__:[4]})]),operation:t(r=>[A(' <el-link type="primary" @click="handleView(scope.row)"> \u67E5\u770B </el-link> '),l(h,{type:"primary",onClick:T=>F(r.row)},{default:t(()=>e[5]||(e[5]=[p(" \u7F16\u8F91 ",-1)])),_:2,__:[5]},1032,["onClick"]),l(h,{type:"danger",onClick:T=>I(r.row)},{default:t(()=>e[6]||(e[6]=[p(" \u5220\u9664 ",-1)])),_:2,__:[6]},1032,["onClick"])]),_:1},8,["columns","data","loading"])]),_:1})}}});const ie=G(X,[["__scopeId","data-v-83122b00"],["__file","D:/desktop/huaZhong/huazhong-common/apps/vue-admin/src/views/accountPermissionManage/index.vue"]]);export{ie as default};
