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/mulit-cert-detail.js
import{c as C,r as _,o as g,j as l,k as d,J as V,C as T,v as s,e as o,F as y,B as k,s as r,x as i,q as f,M,y as B,b5 as I,b6 as N,b7 as E}from"./base-lib.js?v=1777008528";import{cP as R}from"./utils-lib.js?v=1777008528";import{getCertDetail as Y}from"./site.js?v=1777008528";import"./__commonjsHelpers__.js?v=1777008528";const F={class:"p-[2rem]"},L={class:"max-w-[25rem] whitespace-pre-wrap"},S={class:"max-w-[25rem] whitespace-pre-wrap"},J=C({__name:"mulit-cert-detail",props:{compData:{default:()=>({})}},setup(D,{expose:b}){const c=D,u=_(!1),a=_({domain:"",purchaseYears:0,purchaseTime:"",currentCycle:0,remainingDays:0,nextRenewalTime:"",verificationMethod:"",hostname:"",recordValue:""}),x=_("red"),v=async()=>{var m,p,e;if(!(!c.compData.oid&&!c.compData.pid)){u.value=!0;try{const{data:n}=await Y({oid:c.compData.oid,pid:c.compData.pid});if(n.success&&n.res){const t=n.res;a.value={domain:t.domainName||[],purchaseYears:t.years||0,purchaseTime:t.purchase_date||"--",currentCycle:t.cycle_text||"--",remainingDays:t.remaining_text||"--",nextRenewalTime:t.renewal_text||"--",verificationMethod:((m=t.verifyInfo)==null?void 0:m.DCVdnsType)||"--",hostname:((p=t.verifyInfo)==null?void 0:p.DCVdnsHost)||"--",recordValue:((e=t.verifyInfo)==null?void 0:e.DCVdnsValue)||"--"}}}catch(n){}finally{u.value=!1}}};return g(()=>{v()}),b({refresh:v}),(m,p)=>{const e=I,n=N,t=R,w=E;return l(),d("div",F,[V((l(),T(n,{column:1,border:"",class:"table-descriptions"},{default:s(()=>[o(e,{label:"域名"},{default:s(()=>[(l(!0),d(y,null,k(a.value.domain,h=>(l(),d("div",{key:h},r(h),1))),128))]),_:1}),o(e,{label:"购买年限"},{default:s(()=>[i(r(a.value.purchaseYears),1)]),_:1}),o(e,{label:"购买时间"},{default:s(()=>[i(r(a.value.purchaseTime),1)]),_:1}),o(e,{label:"当前签发周期"},{default:s(()=>[i(r(a.value.currentCycle),1)]),_:1}),o(e,{label:"当前周期剩余时间"},{default:s(()=>[i(r(a.value.remainingDays),1)]),_:1}),o(e,{label:"下一次自动续签时间"},{default:s(()=>[f("span",{style:M({color:x.value})},r(a.value.nextRenewalTime),5)]),_:1}),o(e,{label:"验证方式"},{default:s(()=>[i(r(a.value.verificationMethod),1)]),_:1}),a.value.verificationMethod.includes("cname")?(l(),d(y,{key:0},[o(e,{label:"主机名"},{default:s(()=>[f("div",L,r(a.value.hostname),1)]),_:1}),o(e,{label:"记录值"},{default:s(()=>[f("div",S,r(a.value.recordValue),1)]),_:1})],64)):B("",!0)]),_:1})),[[w,u.value]]),o(t,{class:"mt-[1rem]",options:[{content:"请确保验证记录正确否则将无法自动续签成功"}]})])}}});export{J as default};