import{G as U}from"./el-button-7b435908.js";import{v as L}from"./el-loading-ede28941.js";import{E as M}from"./el-pagination-15a74695.js";import{E as j}from"./el-input-5a355fec.js";import"./el-tag-6bb7020c.js";import"./el-select-e0ea5220.js";import"./el-scrollbar-654ee4cf.js";import{E as q,a as A}from"./el-table-column-32453fe2.js";import"./el-tooltip-4ed993c7.js";import{a as G,b as Q,E as F}from"./el-breadcrumb-item-0c010d2b.js";import{E as H,a as J}from"./el-col-d9239890.js";import{c as K}from"./adminuser-652b8d41.js";import{v as O,a3 as W,q as u,z as X,o as x,f as C,M as o,Q as e,w as a,N as _,a as d,D as Y,a6 as w}from"./index-11843334.js";import"./index-58150f7d.js";import"./index-804a1997.js";import"./strings-c810e853.js";import"./aria-60e0cdc6.js";import"./request-79887494.js";const Z={class:"main"},$={class:"breadcrumb-section"},ee=o("div",null,null,-1),te={class:"search-section"},ae={style:{padding:"0 5px"}},oe={class:"pagination-block"},we={__name:"index",setup(le){const l=O({search:{keyword:""},page:1,pageSize:10}),{page:p,pageSize:c,search:g}=W(l),f=u(0),m=u(!1),v=u([]);X(()=>{n()});const y=()=>{n()},n=async()=>{m.value=!0;let t=await K(l);t.code===200&&(v.value=t.data.list,f.value=t.data.total),m.value=!1},k=t=>{l.pageSize=t,n()},z=t=>{l.page=t,n()},S=t=>{l.page=t,n()},B=t=>{l.page=t,n()};return(t,s)=>{const b=G,N=Q,V=j,h=H,P=U,D=J,E=F,r=q,T=A,I=M,R=L;return x(),C("div",Z,[o("div",$,[o("div",null,[e(N,{separator:"/"},{default:a(()=>[e(b,null,{default:a(()=>[_(" 權限管理 ")]),_:1}),e(b,null,{default:a(()=>[_("管理員紀錄")]),_:1})]),_:1})]),ee]),e(E,{style:{"margin-bottom":"5px"}},{default:a(()=>[o("div",te,[e(D,null,{default:a(()=>[e(h,{xs:12,sm:12,md:4,lg:4,xl:4},{default:a(()=>[o("div",null,[e(V,{modelValue:d(g).keyword,"onUpdate:modelValue":s[0]||(s[0]=i=>d(g).keyword=i),clearable:""},null,8,["modelValue"])])]),_:1}),e(h,{xs:12,sm:12,md:4,lg:4,xl:4},{default:a(()=>[o("div",ae,[e(P,{type:"primary",onClick:y},{default:a(()=>[_("搜尋")]),_:1})])]),_:1})]),_:1})])]),_:1}),e(E,{"body-style":{padding:"0px"}},{default:a(()=>[Y((x(),C("div",null,[e(T,{data:v.value,style:{width:"100%"}},{default:a(()=>[e(r,{prop:"id",label:"#",width:"50"}),e(r,{prop:"admin_name",label:"操作者",width:"180"}),e(r,{prop:"time",label:"操作日期",width:"180"}),e(r,{prop:"ip",label:"IP地址",width:"180"}),e(r,{prop:"content",label:"操作紀錄"})]),_:1},8,["data"]),o("div",oe,[e(I,{"current-page":d(p),"onUpdate:currentPage":s[1]||(s[1]=i=>w(p)?p.value=i:null),"page-size":d(c),"onUpdate:pageSize":s[2]||(s[2]=i=>w(c)?c.value=i:null),"page-sizes":[10,20,50,100],layout:"->,total, sizes, prev, pager, next, jumper",total:f.value,onSizeChange:k,onCurrentChange:z,onPrevClick:S,onNextClick:B},null,8,["current-page","page-size","total"])])])),[[R,m.value]])]),_:1})])}}};export{we as default};
