import{P as a,W as t,O as e,l as o,$ as l}from"./utils-lib.js?v=1761009159";import{_ as s}from"./index105.js?v=1761009159";import{_ as n}from"./index114.js?v=1761009159";import{j as r,r as i,o as p,c,s as d,q as m,a6 as u,H as g,v as b,x as f,e as h,B as x,y as j,I as _}from"./base-lib.js?v=1761009159";import{ao as D}from"./files.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";const v=r("FILES-OPERATION-RECORD-STORE",()=>{const e=i(!1),o=i([]),l=p({loading:!1,content:"",total:0,limit:20,p:1,help:[{content:'清空当前日志可前往"日志->操作日志"中清空'}]}),s=i([{label:"操作时间",prop:"addtime",width:160},{label:"操作日志",prop:"log"}]),n=async()=>{await a({loading:e,request:D({content:l.content||"",p:l.p}),data:{data:[Array,o],page:t(l)}})};return{isLoading:e,tableColumn:s,tableData:o,recordTableData:l,searchSubmit:a=>{l.content=a,n()},getData:n,$reset:()=>{e.value=!1,Object.assign(l,{loading:!1,content:"",total:0,limit:20,p:1}),o.value=[]}}}),w={class:"flex flex-col p-16px"},O=c({__name:"index",setup(a){const t=v(),{isLoading:r,tableColumn:i,tableData:p,recordTableData:c}=d(t),{searchSubmit:D,getData:O,$reset:S}=t;return m(()=>{O()}),u(()=>{S()}),(a,t)=>{const d=e,m=o,u=n,v=s,S=l,y=g("bt-loading");return b(),f("div",w,[h(v,null,{"header-left":x(()=>t[4]||(t[4]=[])),"header-right":x(()=>[h(d,{modelValue:j(c).content,"onUpdate:modelValue":t[0]||(t[0]=a=>j(c).content=a),onSearch:j(D),placeholder:"请输入搜索关键字",class:"!w-[30rem]"},null,8,["modelValue","onSearch"])]),content:x(()=>[_(h(m,{ref:"favTable",height:"40rem",column:j(i),data:j(p),description:"列表为空"},null,8,["column","data"]),[[y,j(r)],[y,"正在加载列表，请稍后...","title"]])]),"footer-left":x(()=>t[5]||(t[5]=[])),"footer-right":x(()=>[h(u,{page:j(c).p,"onUpdate:page":t[1]||(t[1]=a=>j(c).p=a),row:j(c).limit,"onUpdate:row":t[2]||(t[2]=a=>j(c).limit=a),layout:"prev, pager, next, total",total:j(c).total,onChange:t[3]||(t[3]=a=>j(O)())},null,8,["page","row","total"])]),popup:x(()=>t[6]||(t[6]=[])),_:1}),h(S,{options:j(c).help,"list-style":"disc",class:"ml-24px"},null,8,["options"])])}}});export{O as default};
