import{r as _,Q as l,M as x,al as u,x as h,k as R,y as Z,H as D,I as t,u as o,L as I}from"./vendor-6ae0c374-1783405707921v=1.0.0.js";import{u as M}from"./useTable-ad933c16-1783405707921v=1.0.0.js";import{u as B,b as N,c as V,_ as F}from"./index-71d7b18c-1783405707921v=1.0.0.js";import{a as k}from"./roleConfApi-83d611e3-1783405707921v=1.0.0.js";import"./eleVendor-d42abce8-1783405707921v=1.0.0.js";const U=()=>{B();const C=_([]),c=_([{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,x("\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=h({name:"roleConfIndex"}),q=h({...j,setup(C){const c=N(),v=B(),b=V(),{tableColumns:n,columns:i,dataCallBack:m,paramCallBack:g}=$(),{tableData:p,pageable:s,baseParam:y,searchParam:K,totalParam:O,pageParam:Q,handleSizeChange:z,handleCurrentChange:L,getTableList:A,search:G,reset:J,loading:w}=M(k,m,g),f=_([]),P=async()=>{const a=await k(y.value);a.code===200&&(p.value=f.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)};R(async()=>{b.userInfo,f.value=v.getEnumListByKey("schManagerType"),y.value={identity_codes:f.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:t(()=>[l(E,{"current-page":o(s).page,"onUpdate:currentPage":e[0]||(e[0]=r=>o(s).page=r),"page-size":o(s).size,"onUpdate:pageSize":e[1]||(e[1]=r=>o(s).size=r),"page-sizes":[10,20,50,100],background:"",layout:"total, sizes, prev, pager, next",total:o(s).count,onSizeChange:o(z),onCurrentChange:o(L)},null,8,["current-page","page-size","total","onSizeChange","onCurrentChange"])]),dialog:t(()=>e[5]||(e[5]=[])),default:t(()=>[l(T,{columns:o(n),data:o(p),isFlex:!1,loading:o(w)},{tableHeader:t(()=>e[2]||(e[2]=[])),toolButton:t(()=>e[3]||(e[3]=[])),operation:t(r=>[I(' <el-link type="primary" @click="handleView(scope.row)"> \u67E5\u770B </el-link> '),l(d,{type:"primary",onClick:W=>S(r.row)},{default:t(()=>e[4]||(e[4]=[x(" \u7F16\u8F91 ",-1)])),_:2,__:[4]},1032,["onClick"])]),_:1},8,["columns","data","loading"])]),_:1})}}});const ne=F(q,[["__scopeId","data-v-b153f0b5"],["__file","D:/desktop/huaZhong/huazhong-common/apps/vue-admin/src/views/roleConf/roleConf/index.vue"]]);export{ne as default};
