import{l as E,a as _,d as F,ah as l,ap as L,m as p,M as c,O as a,P as h,U as t,u as e,V as U,S as m,Q as V,T as q}from"./vendor-98154105-1779868775780v=1.0.0.js";import{u as H}from"./useTable-7f617eef-1779868775780v=1.0.0.js";import{B as O,a as Q}from"./systemManage-d67b09c0-1779868775780v=1.0.0.js";import{a as $}from"./index-0f3e2c06-1779868775780v=1.0.0.js";import"./eleVendor-dbf96bf3-1779868775780v=1.0.0.js";const Z=E({__name:"index",setup(j){const b=_(!0),d=_([{prop:"mpId",label:"",enum:[],fieldNames:{label:"mpName",value:"mpId"},search:{el:"select",placeholder:"\u8BF7\u9009\u62E9\u5E94\u7528"}}]),{tableData:f,pageable:s,searchParam:y,handleSizeChange:C,handleCurrentChange:z,getTableList:v,search:w,reset:x,renderEmpty:S,loading:P}=H(O),k=async()=>{const r=await Q({page:1,size:200});d.value[0].enum=r.data.listData},u=$(),I=()=>{u.push({name:"systemRoleAdd"})},D=i=>{u.push({name:"systemRoleEdit",query:{roleId:i.roleId}})};return F(()=>{k(),v()}),(i,r)=>{const N=l("PaSearchForm"),g=l("el-button"),o=l("el-table-column"),B=l("el-tag"),M=l("el-table"),R=l("el-pagination"),T=l("PaIndexPage"),A=L("loading");return p(),c(T,null,{searchForm:a(()=>[h(t(N,{"search-param":e(y),columns:e(d),search:e(w),reset:e(x)},null,8,["search-param","columns","search","reset"]),[[U,e(b)]])]),tableHeader:a(()=>[]),toolButton:a(()=>[t(g,{type:"primary",onClick:I},{default:a(()=>[m(" \u65B0\u589E ")]),_:1})]),pagination:a(()=>[t(R,{"current-page":e(s).page,"onUpdate:currentPage":r[0]||(r[0]=n=>e(s).page=n),"page-size":e(s).size,"onUpdate:pageSize":r[1]||(r[1]=n=>e(s).size=n),"page-sizes":[10,20,50,100],background:"",layout:"total, sizes, prev, pager, next",total:e(s).count,onSizeChange:e(C),onCurrentChange:e(z)},null,8,["current-page","page-size","total","onSizeChange","onCurrentChange"])]),default:a(()=>[h((p(),c(M,{data:e(f),size:"small",border:"",style:{width:"100%"}},{empty:a(()=>[(p(),c(V(e(S))))]),default:a(()=>[t(o,{label:"\u5E8F\u53F7",type:"index",align:"center",width:"60px"}),t(o,{label:"\u89D2\u8272\u7F16\u53F7",prop:"roleId",align:"center"}),t(o,{label:"\u6240\u5C5E\u5E94\u7528",prop:"mpName",align:"center"}),t(o,{label:"\u89D2\u8272\u540D\u79F0",prop:"name",align:"center"}),t(o,{label:"\u89D2\u8272\u63CF\u8FF0",prop:"remark",align:"center"}),t(o,{label:"\u72B6\u6001",align:"center"},{default:a(n=>[t(B,{type:n.row.status=="\u542F\u7528"?"success":"danger","disable-transitions":""},{default:a(()=>[m(q(n.row.status),1)]),_:2},1032,["type"])]),_:1}),t(o,{label:"\u64CD\u4F5C",align:"center",width:"150",fixed:"right"},{default:a(n=>[t(g,{link:"",type:"primary",size:"small",onClick:G=>D(n.row)},{default:a(()=>[m(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[A,e(P)]])]),_:1})}}});export{Z as default};
