import{d as z,b as C,r as P,o as B,p as E,cr as g,cN as k,_ as $,c as l,at as w,e as f,f as b,g as p,h as e,i as a,F as N,w as A,m as u}from"./index.0308b213.js";import{P as V,u as q}from"./index.9e8820cd.js";import{P as I}from"./index.35b8c9ab.js";const R=z({components:{Pagination:V,Popup:I},setup(){const t=C({page:1,limit:10,id:0,name:"",desc:"",create_time:"",num:0}),s=P(0),{pager:c,requestApi:r}=q({callback:g,params:t}),d=_=>{k({id:_}).then(o=>{console.log("res",o),r(),s.value=o.count}).catch(o=>{console.log("err",o)})};return B(()=>{r()}),E(()=>[t.page,t.limit],()=>{r()}),{formData:t,count:s,apiRoleLists:g,handleDelete:d,pager:c,requestApi:r}}});const U={class:"role"},j=u("\u65B0\u589E\u89D2\u8272"),x={class:"m-t-15"},L={class:"m-t-15"},M=u("\u7F16\u8F91"),T=u("\u5220\u9664"),G={class:"pagination"};function H(t,s,c,r,d,_){const o=l("el-button"),m=l("router-link"),n=l("el-table-column"),v=l("popup"),D=l("el-table"),h=l("el-card"),F=l("el-pagination"),y=w("loading");return f(),b(N,null,[p("div",U,[e(h,{shadow:"never"},{default:a(()=>[e(m,{to:"/saas/permission/role/edit"},{default:a(()=>[e(o,{type:"primary",size:"small"},{default:a(()=>[j]),_:1})]),_:1}),A((f(),b("div",x,[p("div",L,[e(D,{data:t.pager.lists,size:"medium"},{default:a(()=>[e(n,{prop:"id",label:"ID"}),e(n,{prop:"name",label:"\u540D\u79F0"}),e(n,{prop:"uniacid_name",label:"\u5E73\u53F0\u540D\u79F0"}),e(n,{prop:"desc",label:"\u5907\u6CE8"}),e(n,{prop:"num",label:"\u4F7F\u7528\u4EBA\u6570"}),e(n,{prop:"create_time",label:"\u521B\u5EFA\u65F6\u95F4"}),e(n,{prop:"",label:"\u64CD\u4F5C"},{default:a(({row:i})=>[e(m,{class:"m-r-10",to:{path:"/saas/permission/role/edit",query:{id:i.id}}},{default:a(()=>[e(o,{type:"primary",size:"small"},{default:a(()=>[M]),_:1})]),_:2},1032,["to"]),e(v,{class:"m-r-10 inline",onConfirm:J=>t.handleDelete(i.id)},{trigger:a(()=>[e(o,{type:"primary",size:"small"},{default:a(()=>[T]),_:1})]),_:2},1032,["onConfirm"])]),_:1})]),_:1},8,["data"])])])),[[y,t.pager.loading]])]),_:1})]),p("div",G,[e(F,{currentPage:t.formData.page,"onUpdate:currentPage":s[0]||(s[0]=i=>t.formData.page=i),"page-size":t.formData.limit,"onUpdate:page-size":s[1]||(s[1]=i=>t.formData.limit=i),"page-sizes":[10,20,30,40],layout:"total, sizes, prev, pager, next, jumper",total:t.pager.count},null,8,["currentPage","page-size","total"])])],64)}const S=$(R,[["render",H],["__scopeId","data-v-3be29be5"]]);export{S as default};
