import{x as a,l as e,M as s,z as l,q as t}from"./utils-lib.js?v=20260328163632";import{B as i}from"./index118.js?v=20260328163632";import{u as o}from"./index92.js?v=20260328163632";import{u as n,b as c,c as u,d as p}from"./index9.js?v=20260328163632";import{r,k as m,o as d,J as v,V as x,W as j,O as g,a3 as b,Y as f,N as _}from"./base-lib.js?v=20260328163632";import{au as y}from"./naive-ui.js?v=20260328163632";import"./__commonjsHelpers__.js?v=20260328163632";import"./env-lib.js?v=20260328163632";import"./index95.js?v=20260328163632";import"./index84.js?v=20260328163632";import"./index91.js?v=20260328163632";const{rowData:w}=n(),h=r(""),k=r(""),V=r({count:0,limit:99999,log_end:!0,maxPage:200,page:1}),q=async(e="")=>{""===e&&(V.value.page=1);const{page:s,limit:l}=V.value;a({request:c({id:w.value.id,p:s,limit:l,search:h.value,orderby:!0}),success:a=>{const{data:s,page:l}=a.data;k.value=e+s.join("\n"),V.value=l}})},{BtOperation:C}=o({options:[{label:e("刷新日志"),active:!0,onClick:async()=>{await q(),s.success(e("刷新成功"))}},{label:e("清空日志"),onClick:async()=>{await l({title:e("提示"),content:e("确定清空日志吗？")}),a({loading:e("正在清空日志，请稍后..."),request:u({id:w.value.id}),message:!0,success:()=>q()})}},{type:"divider"},{label:e("执行任务"),onClick:async()=>{await p(!1,!0),q()}}]}),O=()=>{B(),q()},B=()=>{h.value="",k.value="",Object.assign(V.value,{count:0,limit:99999,log_end:!0,maxPage:200,page:1})},P={class:"p-20px"},S=m({__name:"index",setup:a=>(d(O),v(B),(a,s)=>{const l=y;return x(),j("div",P,[g(l,{justify:"space-between"},{default:b((()=>[g(f(C),{class:"gap-10px"}),g(f(t),{modelValue:f(h),"onUpdate:modelValue":s[0]||(s[0]=a=>_(h)?h.value=a:null),placeholder:f(e)("请搜索日志"),class:"!w-[220px]",onSearch:s[1]||(s[1]=()=>f(q)())},null,8,["modelValue","placeholder"])])),_:1}),g(i,{class:"mt-10px !h-[480px]",content:f(k),autoScroll:!0},null,8,["content"])])})});export{S as default};
