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/index8.js
import{_ as O}from"./index118.js?v=1777008528";import{r as b,c as A,o as $,j as u,k as x,q as e,e as s,v as n,p as t,x as p,s as i,y as m,C as G,bw as M,bM as H,aB as U,z,aX as X,bk as Z,aF as v,aW as J}from"./base-lib.js?v=1777008528";import K from"./index219.js?v=1777008528";import{e as Q,_ as Y,c as ee,da as te,M as se,R as g,cZ as ae}from"./utils-lib.js?v=1777008528";import{i as le,d as r,s as y,a as d,f as V,q as T,h as oe,g as ne}from"./useController24.js?v=1777008528";import"./__commonjsHelpers__.js?v=1777008528";import"./ai.js?v=1777008528";const P=b(null),ie=b(0),j=async(w=0,_)=>{ie.value=w;const c=await Q({title:"额度充值",area:80,btn:!1,showFooter:!1,compData:{remainQuota:w,callback:_},component:()=>Y(()=>import("./index493.js?v=1777008528"),__vite__mapDeps([]),import.meta.url),onCancel:()=>{P.value=null}});return P.value=c,c},re={class:"h-full flex flex-col overflow-hidden"},de={class:"flex flex-wrap gap-[1.2rem] mb-[1.2rem]"},pe={class:"module-ui p-[20px]"},ce={class:"flex justify-between items-start"},ue={class:"flex flex-col"},xe={class:"mt-[16px]"},me={class:"flex items-baseline mb-[10px]"},_e={class:"flex items-center gap-[15px] h-[16px]"},fe={key:0,class:"module-ui flex flex-col justify-between h-full flex-1 min-w-[280px]"},he={class:"flex justify-between items-start"},ve={class:"text-[12px] text-tertiary inline-flex items-center h-[2rem]"},ge={key:0,class:"tip-text ml-[1rem] bt-link !text-[1.2rem]"},ye={class:"flex items-center gap-[8px]"},be={class:"mt-[16px]"},we={class:"flex items-baseline mb-[10px]"},De={class:"text-[26px] text-default font-bold mr-[6px]"},ke={class:"text-[12px] text-tertiary"},Ee={class:"text-[12px] text-tertiary ml-[3rem]"},Ce={class:"flex items-center gap-[15px]"},Be={class:"text-[12px] text-secondary"},Fe={class:"module-ui p-[20px]"},Ae={class:"flex justify-between items-start"},Me={class:"flex flex-col"},Ve={class:"mt-[16px]"},Te={class:"flex items-baseline mb-[10px]"},Pe={class:"flex items-center gap-[15px] h-[16px]"},je={key:0,class:"module-ui flex flex-col justify-between h-full flex-1 min-w-[280px]"},Qe={class:"flex justify-between items-start"},Se={class:"text-[12px] text-tertiary h-[2rem]"},Ie={class:"flex"},Re={key:0,class:"tip-text ml-[1rem] bt-link !text-[1.2rem] mr-[2rem]"},We={class:"mt-[16px]"},qe={class:"flex items-baseline mb-[10px]"},Ne={class:"text-[26px] text-default font-bold mr-[6px]"},Le={class:"text-[12px] text-tertiary"},Oe={class:"flex items-center gap-[15px]"},$e={class:"text-[12px] text-secondary"},Ge={class:"flex-1 module-ui relative container-table-tab min-h-0 flex flex-col"},He=A({__name:"index",setup(w){const{mainHeight:_}=ee(),c=b([]),E={modifiers:[{name:"flip",enabled:!1}]},C=l=>l.getTime()>Date.now(),S=()=>{const l=b(c.value||[]);Q({title:"导出数据",area:40,btn:!0,component:A({setup(o,{expose:f}){return f({onConfirm:()=>!l.value||l.value.length!==2?(se.error("请选择日期范围"),!1):(oe({start_date:g(l.value[0],"yyyy-MM-dd"),end_date:g(l.value[1],"yyyy-MM-dd")}),!0)}),()=>v("div",{class:"p-[2.4rem]"},[v("div",{class:"text-[14px] text-default mb-[10px]"},"选择导出日期范围"),v(M,{modelValue:l.value,"onUpdate:modelValue":h=>{l.value=h},type:"daterange",rangeSeparator:":",startPlaceholder:"开始时间",endPlaceholder:"结束时间",placement:"bottom",popperOptions:E,disabledDate:C,class:"w-full"})])}})})},I=(l,a,o)=>s("div",null,[s("span",{class:"mr-[.5rem]"},[l]),s(J,{placement:"top"},{content:s(a,null,null),default:s("span",{class:"ml-4x bt-ico-ask"},["?"])})]),{BtTable:R,BtPage:W,refresh:q,param:N}=te({request:l=>{const[a,o]=c.value||[];return ne({...l,start_date:a?g(a,"yyyy-MM-dd"):"",end_date:o?g(o,"yyyy-MM-dd"):""})},columns:[{label:"时间",prop:"time",minWidth:160},{label:"工具",prop:"scenario",minWidth:150},{label:"模型",prop:"model",minWidth:100},{renderHeader:()=>I("消耗次数",s("div",null,[p("会话上下文大小和工具调用次数都会直接影响计费次数。"),s("br",null,null),p("控制上下文长度,避免在同一个会话中处理不同任务。")])),prop:"consume",minWidth:100,isCustom:!0,render:l=>v("span",{class:"text-warning"},"-".concat(l.consume,"次"))}]});return $(()=>{le(_,N)}),(l,a)=>{const o=H,f=K,h=U,D=z,B=X,F=Z,L=O;return u(),x("div",re,[e("div",de,[s(F,{loading:t(T),animated:"",class:"flex-1 min-w-[280px]"},{template:n(()=>[e("div",pe,[e("div",ce,[e("div",ue,[s(o,{variant:"h3",style:{width:"100px",height:"20px","margin-bottom":"8px"}}),s(o,{variant:"text",style:{width:"140px",height:"14px"}})]),s(o,{variant:"button",style:{width:"80px",height:"32px"}})]),e("div",xe,[e("div",me,[s(o,{variant:"h1",style:{width:"120px",height:"36px"}})]),e("div",_e,[s(o,{variant:"text",style:{width:"100%",height:"8px"}})])])])]),default:n(()=>[t(r).total>0||t(y)?(u(),x("div",fe,[e("div",he,[e("div",null,[a[4]||(a[4]=e("div",{class:"text-[14px] text-default font-bold mb-[6px]"},"每日免费额度",-1)),e("div",ve,[p(i(t(r).expire)+" ",1),s(h,{placement:"bottom","popper-style":{padding:"0"},teleported:!1,width:200,trigger:"hover"},{reference:n(()=>[t(y)?(u(),x("span",ge,[...a[3]||(a[3]=[e("span",{class:"svgtofont-el-service"},null,-1),p("联系客服加赠15天",-1)])])):m("",!0)]),default:n(()=>[s(f)]),_:1})])]),e("div",ye,[t(d).total===0?(u(),G(D,{key:0,type:"primary",onClick:a[0]||(a[0]=k=>t(j)(t(d).remain,t(V)))},{default:n(()=>[...a[5]||(a[5]=[p("额度充值",-1)])]),_:1})):m("",!0)])]),e("div",be,[e("div",we,[e("span",De,"剩"+i(t(r).remain)+"次",1),e("span",ke,"/总"+i(t(r).total)+"次",1),e("span",Ee,i(t(r).desc),1)]),e("div",Ce,[s(B,{class:"flex-1",percentage:t(r).percentage,"show-text":!1,color:"#20a53a","stroke-width":8},null,8,["percentage"]),e("span",Be,"剩余"+i(t(r).percentage)+"%",1)])])])):m("",!0)]),_:1},8,["loading"]),s(F,{loading:t(T),animated:"",class:"flex-1 min-w-[280px]"},{template:n(()=>[e("div",Fe,[e("div",Ae,[e("div",Me,[s(o,{variant:"h3",style:{width:"100px",height:"20px","margin-bottom":"8px"}}),s(o,{variant:"text",style:{width:"140px",height:"14px"}})]),s(o,{variant:"button",style:{width:"80px",height:"32px"}})]),e("div",Ve,[e("div",Te,[s(o,{variant:"h1",style:{width:"120px",height:"36px"}})]),e("div",Pe,[s(o,{variant:"text",style:{width:"100%",height:"8px"}})])])])]),default:n(()=>[t(d).total>0||t(r).total===0&&!t(y)?(u(),x("div",je,[e("div",Qe,[e("div",null,[a[6]||(a[6]=e("div",{class:"text-[14px] text-default font-bold mb-[6px]"},"资源包额度",-1)),e("div",Se,i(t(d).desc),1)]),e("div",Ie,[s(h,{placement:"bottom","popper-style":{padding:"0"},teleported:!1,width:200,trigger:"hover"},{reference:n(()=>[t(r).total===0&&!t(y)?(u(),x("span",Re,[...a[7]||(a[7]=[e("span",{class:"svgtofont-el-service"},null,-1),p("联系客服",-1)])])):m("",!0)]),default:n(()=>[s(f)]),_:1}),s(D,{type:"primary",onClick:a[1]||(a[1]=k=>t(j)(t(d).remain,t(V)))},{default:n(()=>[...a[8]||(a[8]=[p("额度充值",-1)])]),_:1})])]),e("div",We,[e("div",qe,[e("span",Ne,"剩 "+i(t(d).remain)+" 次",1),e("span",Le,"/总"+i(t(d).total)+"次",1)]),e("div",Oe,[s(B,{class:"flex-1 gradient-progress shiny-progress",percentage:t(d).percentage,"show-text":!1,"stroke-width":8},null,8,["percentage"]),e("span",$e,"剩余"+i(t(d).percentage)+"%",1)])])])):m("",!0)]),_:1},8,["loading"])]),e("div",Ge,[s(L,{class:"h-full flex-1 min-h-0 flex flex-col"},{"header-left":n(()=>[s(D,{type:"default",onClick:S},{default:n(()=>[...a[9]||(a[9]=[p("导出",-1)])]),_:1})]),"header-right":n(()=>[s(t(M),{modelValue:c.value,"onUpdate:modelValue":a[2]||(a[2]=k=>c.value=k),type:"daterange","range-separator":":","popper-options":E,"start-placeholder":"开始时间","end-placeholder":"结束时间",placement:"bottom",onChange:t(q),"disabled-date":C},null,8,["modelValue","onChange"])]),content:n(()=>[s(t(R),{key:"QuotaTable","max-height":t(_)-380},null,8,["max-height"])]),"footer-right":n(()=>[s(t(W))]),_:1})])])}}}),et=ae(He,[["__scopeId","data-v-5c4a4612"]]);export{et as default};
function __vite__mapDeps(indexes) {
  if (!__vite__mapDeps.viteFileDeps) {
    __vite__mapDeps.viteFileDeps = []
  }
  return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
}