Files

2 lines
6.2 KiB
JavaScript
Raw Permalink Normal View History

2026-04-07 02:04:22 +05:30
import{_ as Q}from"./index-BRQskX9P.js?v=1773287522785";import{_ as W}from"./index.vue_vue_type_script_setup_true_lang-DgjjuUjT.js?v=1773287522785";import{_ as X}from"./index.vue_vue_type_script_setup_true_lang-C5hb-Th7.js?v=1773287522785";import{_ as Z}from"./index.vue_vue_type_script_setup_true_lang-BeO8Hyma.js?v=1773287522785";import{_ as H}from"./index.vue_vue_type_script_setup_true_lang-D2Bk83Ev.js?v=1773287522785";import{u as K}from"./useTableData-BmkIKQ_R.js?v=1773287522785";import{u as C}from"./useLoading-CZ2gSAW7.js?v=1773287522785";import{l as Y,Q as tt,c as F,t as et,i as S,ap as nt}from"./index-BTglIPU2.js?v=1773287522785";import{a2 as q,B as P,m as ot,k as T,a3 as st,ag as at,a6 as lt}from"./naive-ui--dJnpVcV.js?v=1773287522785";import{k as h,r as L,$ as v,a8 as x,a9 as i,_ as l,aa as f,a0 as s,j as U,Z as it,F as _t,P as ct,L as rt,S as t,a6 as pt,R as M,e as ut,X as mt}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import{m as dt,n as gt,o as ft}from"./logs-CbT7wTGd.js?v=1773287522785";import{e as bt,f as vt}from"./ftp-SrpKmV1S.js?v=1773287522785";import{_ as V}from"./index-lEMZglLp.js?v=1773287522785";import"./index.vue_vue_type_script_setup_true_lang-B7YvCBmY.js?v=1773287522785";import"./data-BVsViUMm.js?v=1773287522785";import"./prismjs-BZPoR7_J.js?v=1773287522785";const xt="/static/vite/images/ftp-logs-Ja4u8IDv.png",yt={class:"pt-40px pb-40px"},ht={class:"mb-24px text-center text-22px font-bold"},Lt={class:"mb-16px"},kt={class:"ul-style"},$t={class:"ml-4px"},St={class:"text-center text-14px color-desc"},wt={class:"text-center my-24px"},Ct={class:"flex justify-center"},Ft={class:"item"},Pt=["onClick"],Tt=h({__name:"conversion",setup(k){const r=L(0),_=["FTP logs"],p=()=>{tt({source:220})};return(e,a)=>{const b=Y,m=P,d=ot,u=q;return v(),x(u,null,{default:i(()=>[l("div",yt,[l("div",ht,f(e.$t("Logs.Conversion.index_4")),1),l("div",Lt,[l("ul",kt,[l("li",null,[s(b,{name:"base-chakan",size:"22"}),l("span",$t,f(e.$t("Logs.Conversion.index_5")),1)])])]),l("div",St,f(e.$t("Logs.Conversion.index_6")),1),l("div",wt,[s(m,{type:"primary",class:"h-36px text-14px",onClick:p},{default:i(()=>[U(f(e.$t("WP.Transition.index_7")),1)]),_:1})]),l("div",Ct,[l("div",Ft,[l("ul",null,[(v(),it(_t,null,ct(_,($,n)=>l("li",{class:rt({active:t(r)==n}),key:n,onClick:B=>r.value=n},f($),11,Pt)),64))])]),s(d,{width:"100%",src:t(xt)},null,8,["src"])])])]),_:1})}}}),Ut=F(Tt,[["__scopeId","data-v-050bcdc7"]]),Bt={class:"whitespace-nowrap"},Rt=h({__name:"index",setup(k,{expose:r}){const _=et(),{isPro:p}=pt(_),{t:e}=M(),a=[{key:"ip",title:e("Logs.Soft.index_2")},{key:"file",title:e("Logs.Soft.index_3")},{key:"type",title:e("Ftp.Table.index_13")},{key:"time",align:"right",title:e("Logs.Panel.index_7")}],b=[{key:"user",title:e("Ftp.Analysis.Index_27")},{key:"ip",title:e("Ftp.Label.index_7")},{key:"status",title:e("Ftp.Label.index_9"),render:o=>s("div",null,[s("span",{class:o.status==="Success"?"color-primary":"color-error"},[o.status])])},{key:"in_time",title:e("Logs.Soft.index_4")},{key:"out_time",align:"right",title:e("Ftp.Label.index_10")}],m=L(),{keys:d,table:u,columns:$}=K(b),n=ut({p:1,limit:10,search:"",user_name:"",type:""}),B=o=>{n.type=o,n.search="",n.p=1,$.value=o?a:b,y()},{loading:R,setLoading:w}=C(),y=async()=>{try{w(!0);const{message:o}=n.type?await bt(n):await vt(n);S(o)&&(u.data=o.data,u.total=nt(o.page))}catch(o){u.data=[]}finally{d.value=[],w(!1)}},j=async()=>{w(!0);const{message:o}=await dt();if(S(o)){if(!o.data.length)return;n.user_name=o.data[0].name,m.value=o.data.map(c=>({label:c.name,value:c.name}))}},N=async()=>{await j(),await y()};return N(),r({getList:N}),(o,c)=>{const D=lt,I=T,E=H,z=at,O=st,A=Z,G=X,J=W;return t(p)?(v(),x(J,{key:0,feedback:!1},{toolsLeft:i(()=>[s(I,{class:"flex-nowrap! items-center w-250px"},{default:i(()=>[l("div",Bt,f(o.$t("Logs.Soft.index_1"))+"",1),s(D,{value:t(n).user_name,"onUpdate:value":[c[0]||(c[0]=g=>t(n).user_name=g),y],options:t(m),loading:t(R)},null,8,["value","options","loading"])]),_:1})]),toolsRight:i(()=>[s(I,{class:"flex-nowrap! items-center"},{default:i(()=>[s(E,{value:t(n).search,