import{u as R}from"./useTable-2ca1782f-1782468512657v=1.0.0.js";import{u as x,b as I,c as M,_ as N}from"./index-c87bcfde-1782468512657v=1.0.0.js";import{r as f,Q as l,M as h,al as u,x as B,k as V,y as Z,H as D,I as o,u as t,L as F}from"./vendor-27e23c1b-1782468512657v=1.0.0.js";import{a as k}from"./roleConfApi-7f23e6c4-1782468512657v=1.0.0.js";import"./eleVendor-12a75a9a-1782468512657v=1.0.0.js";const U=()=>{x();const C=f([]),c=f([{type:"index",label:"\u5E8F\u53F7",width:70,fixed:"left"},{label:"\u7BA1\u7406\u5458\u7C7B\u578B",prop:"label",width:120},{label:"\u6388\u6743\u89D2\u8272",prop:"roleList",render:n=>l("div",null,[n.row.mpList.length>0?n.row.mpList.map((i,m)=>l("div",{className:"flexBox"},[l("div",null,[m+1,h("\u3001"),i.mp_name]),i.roles.map(g=>l(u("el-tag"),null,{default:()=>[g.role_name]}))])):"-"])},{label:"\u64CD\u4F5C",prop:"operation",fixed:"right",width:200}]);return{columns:C,tableColumns:c,dataCallBack:n=>(n.listData.forEach(i=>{}),n),paramCallBack:n=>n}},$=U,j=B({name:"roleConfIndex"}),q=B({...j,setup(C){const c=I(),v=x(),y=M(),{tableColumns:n,columns:i,dataCallBack:m,paramCallBack:g}=$(),{tableData:p,pageable:s,baseParam:b,searchParam:K,totalParam:O,pageParam:Q,handleSizeChange:L,handleCurrentChange:z,getTableList:A,search:G,reset:J,loading:w}=R(k,m,g),_=f([]),P=async()=>{const a=await k(b.value);a.code===200&&(p.value=_.value.map(e=>{let d=[];return a.data[e.value]&&a.data[e.value].length>0&&(d=a.data[e.value]),{...e,mpList:d}}),s.value.count=p.value.length,p.value)};V(async()=>{y.userInfo,_.value=v.getEnumListByKey("schManagerType"),b.value={identity_codes:_.value.map(a=>a.value).join(",")},P()});const S=a=>{c.push({name:"roleConfEdit",query:{identity_code:a.value,identity_name:a.label}})};return(a,e)=>{const d=u("el-link"),T=u("HZProTable"),E=u("el-pagination"),H=u("HZPageLayout");return Z(),D(H,null,{pagination:o(()=>[l(E,{"current-page":t(s).page,"onUpdate:currentPage":e[0]||(e[0]=r=>t(s).page=r),"page-size":t(s).size,"onUpdate:pageSize":e[1]||(e[1]=r=>t(s).size=r),"page-sizes":[10,20,50,100],background:"",layout:"total, sizes, prev, pager, next",total:t(s).count,onSizeChange:t(L),onCurrentChange:t(z)},null,8,["current-page","page-size","total","onSizeChange","onCurrentChange"])]),dialog:o(()=>e[5]||(e[5]=[])),default:o(()=>[l(T,{columns:t(n),data:t(p),isFlex:!1,loading:t(w)},{tableHeader:o(()=>e[2]||(e[2]=[])),toolButton:o(()=>e[3]||(e[3]=[])),operation:o(r=>[F(' <el-link type="primary" @click="handleView(scope.row)"> \u67E5\u770B </el-link> '),l(d,{type:"primary",onClick:W=>S(r.row)},{default:o(()=>e[4]||(e[4]=[h(" \u7F16\u8F91 ",-1)])),_:2,__:[4]},1032,["onClick"])]),_:1},8,["columns","data","loading"])]),_:1})}}});const ne=N(q,[["__scopeId","data-v-3965196a"]]);export{ne as default};
