HEX
Server: nginx/1.28.3
System: Linux ip-172-31-12-242 6.17.0-1007-aws #7~24.04.1-Ubuntu SMP Thu Jan 22 21:04:49 UTC 2026 x86_64
User: root (0)
PHP: 7.4.33
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/server/panel/BTPanel/static/js/index275.js
import{_ as w}from"./index118.js?v=1777008528";import{w as x,k as a,d3 as H,d4 as q,f as B}from"./utils-lib.js?v=1777008528";import{e as E,g as M,W as O,X as _,Y as D,b as F}from"./index3.js?v=1777008528";import{c as L,r as m,aF as f,o as R,j as S,k as T,e as n,v as d,p as o}from"./base-lib.js?v=1777008528";import"./__commonjsHelpers__.js?v=1777008528";import"./index119.js?v=1777008528";import"./index116.js?v=1777008528";const j={class:"pb-[1rem] px-16px"},G=L({__name:"index",setup(A){const i=B(),r=m(),l=m([]),b=async e=>{await x({title:"恢复历史文件",content:"是否恢复历史文件 ".concat(e.time,"?恢复历史文件后,当前文件内容将会被替换!")}),a({loading:"正在恢复历史文件,请稍后...",request:O({filename:e.filepath,history:e.historys[0]}),success:t=>{t.status?(i.success("恢复成功"),s()):i.error("恢复失败")}})},h=async e=>{await a({loading:"正在删除历史文件,请稍后...",request:_({id:e.id}),message:!0,success:s})},y=()=>[{label:"删除",value:"delete",event:async(e,t,c,p,u)=>{const C=async v=>await _({id:v.id});await e({title:"批量删除",content:"批量删除选中,是否继续操作?",column:[{prop:"filepath",label:"文件路径"},F()],onConfirm:async()=>(await t(C),s(),!1)})}}],g=[E(),{label:"操作时间",prop:"time",width:180,render(e){return f("span",{},e.time)}},{label:"文件路径",prop:"filepath",render(e){return f("span",{},e.filepath)}},M([{title:"恢复",isHide:e=>{var t;return((t=e.historys)==null?void 0:t.length)===0},onClick:b},{title:"删除",onClick:h}])],s=async()=>{await a({request:D(),data:[Array,l]})},k=y();return R(()=>{s()}),(e,t)=>{const c=H,p=q,u=w;return S(),T("div",j,[n(u,null,{content:d(()=>[n(c,{ref_key:"fileTableRef",ref:r,height:"40rem",column:g,description:"列表为空",data:o(l)},null,8,["data"])]),"footer-left":d(()=>[n(p,{"table-ref":o(r),options:o(k)},null,8,["table-ref","options"])]),_:1})])}}});export{G as default};