var a;import{P as o,W as e,x as s,b as t,l as r,e as n,$ as i}from"./utils-lib.js?v=1761009159";import{_ as l}from"./index105.js?v=1761009159";import{_ as p}from"./index114.js?v=1761009159";import{C as d,i as m,o as c}from"./index14.js?v=1761009159";import{D as u,E as _}from"./useController3.js?v=1761009159";import{s as f,r as w,o as j,V as x,c as b,q as g,H as h,v,x as y,e as C,B as k,I as D,y as U,C as q,D as H}from"./base-lib.js?v=1761009159";import{u as I}from"./column.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";import"./index119.js?v=1761009159";import"./index126.js?v=1761009159";import"./index127.js?v=1761009159";import"./validator.js?v=1761009159";import"./index106.js?v=1761009159";const O=t(),T=d(),{rowData:z}=f(T),A=w(!1),B=w([]),E=w(0),P=j({cron_id:(null==(a=z.value)?void 0:a.id)||0,p:1,rows:10}),R=x([{label:"文件名称",prop:"name",showOverflowTooltip:!0},{label:"备份时间",prop:"addtime"},{label:"备份到",prop:"filename",showOverflowTooltip:!0},{label:"文件大小",render:a=>s(a.size)},I([{onClick:async a=>{try{const o=await _({cron_id:a.cron_id,filename:a.filename});o.status?o.data.is_loacl?window.open("/download?filename="+encodeURIComponent(o.data.path),"_blank","noopener,noreferrer"):window.open(o.data.path,"_blank","noopener,noreferrer"):O.error(o.msg)}catch(o){}},title:"下载"}])]),V=async()=>{try{await o({loading:A,request:u({...P,cron_id:z.value.id}),data:{data:[Array,B],page:e(E)}})}catch(a){}},W={class:"p-[20px]"},$={key:0},F=b({__name:"index",emits:["close"],setup(a,{emit:o}){const e=o,s=()=>{e("close")};return g(()=>V()),(a,o)=>{const e=r,t=p,d=l,u=n,_=i,f=h("bt-loading");return v(),y("div",W,[C(d,null,{content:k(()=>[D(C(e,{"max-height":400,column:U(R),data:U(B)},null,8,["column","data"]),[[f,U(A)],[f,"正在加载中，请稍候...","title"]])]),"footer-right":k(()=>[C(t,{total:U(E),page:U(P).p,"onUpdate:page":o[0]||(o[0]=a=>U(P).p=a),row:U(P).rows,"onUpdate:row":o[1]||(o[1]=a=>U(P).rows=a),onChange:U(V)},null,8,["total","page","row","onChange"])]),_:1}),C(_,{"list-style":"disc",class:"mt-[1rem]"},{default:k(()=>[U(m)?(v(),y("li",$,[C(u,{onClick:o[2]||(o[2]=a=>U(c)(s))},{default:k(()=>o[3]||(o[3]=[q("一键跳转至本地备份目录",-1)])),_:1,__:[3]})])):H("",!0)]),_:1})])}}});export{F as default};
