import{_ as e}from"./index.vue_vue_type_script_setup_true_lang5.js?v=1764830988434";import{_ as a}from"./index.vue_vue_type_script_setup_true_lang7.js?v=1764830988434";import{d as t,a as s,h as o}from"./public.js?v=1764830988434";import{_ as n}from"./index.vue_vue_type_script_setup_true_lang8.js?v=1764830988434";import{c as i,a as l}from"./index101.js?v=1764830988434";import{Z as r,P as p,a0 as u,k as _,R as c,V as d,W as m,a3 as g,U as v,ak as h,j as f,a4 as j}from"./vue.js?v=1764830988434";import{aa as x,d as y,ab as k}from"./page_layout.js?v=1764830988434";import{aC as b,dS as w}from"./naive.js?v=1764830988434";import"./index.vue_vue_type_script_setup_true_lang6.js?v=1764830988434";import"./common.js?v=1764830988434";import"./__commonjsHelpers__.js?v=1764830988434";import"./accountState.js?v=1764830988434";import"./index.vue_vue_type_script_setup_true_lang.js?v=1764830988434";import"./quota.js?v=1764830988434";import"./disk.js?v=1764830988434";const L=r("logsStore",()=>{const{t:e}=p(),{search:a,table:o}=u(i()),n=async()=>{try{r(!0);const{message:e}=await x(a.value);y(e)&&(o.value.data=e.list,o.value.total=e.page.count)}finally{r(!1)}},{loading:l,setLoading:r}=t();return{init:n,setLoading:r,loading:l,onClear:()=>{s({title:e("Logs.Panel.index_5"),content:e("Logs.Panel.index_15"),onConfirm:async()=>{await k(),n()}})}}}),C=_({__name:"index",setup(t){const{logs:s}=l(),{init:i,onClear:r,loading:p}=L();i();const{table:u,search:_,keys:x,columns:y}=s;return(t,s)=>{const l=b,k=n,L=o,C=a,R=e,S=w;return d(),c("div",null,[m(S,{class:"p-16px mb-16px"},{default:g(()=>[m(R,{feedback:!0,email:!0},{toolsLeft:g(()=>[m(l,{onClick:v(r)},{default:g(()=>[f(j(t.$t("Logs.Panel.index_5")),1)]),_:1},8,["onClick"])]),toolsRight:g(()=>[m(k,{value:v(_).search,"onUpdate:value":s[0]||(s[0]=e=>v(_).search=e),placeholder:t.$t("Logs.Panel.index_4"),onSearch:v(i)},null,8,["value","placeholder","onSearch"])]),table:g(()=>[m(L,{"checked-row-keys":v(x),"onUpdate:checkedRowKeys":s[1]||(s[1]=e=>h(x)?x.value=e:null),"max-height":800,loading:v(p),data:v(u).data,columns:v(y)},null,8,["checked-row-keys","loading","data","columns"])]),pageRight:g(()=>[m(C,{page:v(_).p,"onUpdate:page":s[2]||(s[2]=e=>v(_).p=e),"page-size":v(_).rows,"onUpdate:pageSize":s[3]||(s[3]=e=>v(_).rows=e),"item-count":v(u).total,onRefresh:v(i)},null,8,["page","page-size","item-count","onRefresh"])]),_:1})]),_:1})])}}});export{C as default};
