← Back
Editing: dns-verification.js
import{i as e,a3 as a,_ as s}from"./public.js?v=1749179669910";import{_ as l}from"./index.vue_vue_type_script_setup_true_lang.js?v=1749179669910";import{c as t,m as n,o}from"./page_layout.js?v=1749179669910";import{_ as r,T as i,cj as u,bU as d}from"./naive.js?v=1749179669910";import{d as _,O as c,af as p,j as m,n as v,a3 as f,R as y,S as x,U as S,P as h,a1 as C,c as b,a2 as B,V as $}from"./vue.js?v=1749179669910";import"./common.js?v=1749179669910";import"./__commonjsHelpers__.js?v=1749179669910";const j={class:"p-40px",show:!1},D={class:"text-14px mb-20px!"},L=_({__name:"dns-verification",props:{uc_id:{},verify:{},request:{type:Boolean},onRefresh:{type:Function}},emits:["close"],setup(_,{emit:L}){const{t:w}=c(),V=_,{uc_id:k,verify:g,request:U}=p(V),A=L,P=m({host_record:"",record_type:"",record_value:"",domain_name:""}),H=async()=>{const{message:e}=await a({uc_id:k.value});t(e)&&("PENDING"===e.certStatus?n.success(w("SSL.Business.index_23")):V.onRefresh(),P.host_record=e.data.DCVdnsHost,P.record_type=e.data.DCVdnsType,P.record_value=e.data.DCVdnsValue)},M=()=>{A("close")};v((()=>{U.value?H():N()}));const N=()=>{P.host_record=g.value.DCVdnsHost,P.record_type=g.value.DCVdnsType,P.record_value=g.value.DCVdnsValue,P.domain_name=g.value.dcvList[0].domainName};return(a,t)=>{const n=o,_=f("i18n-t"),c=r,p=i,m=u,v=d,L=l,w=s;return y(),x("div",j,[S("div",D,[h(_,{keypath:"SSL.Business.index_15",scope:"global"},{a:C((()=>[h(n,null,{default:C((()=>[b(B($(P).domain_name),1)])),_:1})])),b:C((()=>[b(B($(P).record_type),1)])),_:1})]),h(L,{model:$(P),"label-width":"100px"},{default:C((()=>[h(m,{label:a.$t("Mail.Domain.index_37")},{default:C((()=>[h(c,{class:"w-380px!",value:$(P).host_record,"onUpdate:value":t[0]||(t[0]=e=>$(P).host_record=e),readonly:""},null,8,["value"]),h(p,{class:"ml-10px!",type:"primary",onClick:t[1]||(t[1]=a=>$(e)($(P).host_record))},{default:C((()=>[b(B(a.$t("Public.Btn.Copy")),1)])),_:1})])),_:1},8,["label"]),h(m,{label:a.$t("Mail.Domain.index_36")},{default:C((()=>[h(c,{class:"w-380px!",value:$(P).record_type,"onUpdate:value":t[2]||(t[2]=e=>$(P).record_type=e),readonly:""},null,8,["value"])])),_:1},8,["label"]),h(m,{label:a.$t("Mail.Domain.index_38")},{default:C((()=>[h(v,null,{default:C((()=>[h(c,{type:"textarea",class:"w-380px!",value:$(P).record_value,"onUpdate:value":t[3]||(t[3]=e=>$(P).record_value=e),readonly:""},null,8,["value"]),h(p,{type:"primary",onClick:t[4]||(t[4]=a=>$(e)($(P).record_value))},{default:C((()=>[b(B(a.$t("Public.Btn.Copy")),1)])),_:1})])),_:1})])),_:1},8,["label"])])),_:1},8,["model"]),h(w,null,{default:C((()=>[t[5]||(t[5]=S("li",null,"Check for the existence of CAA records, and if they exist, please remove the relevant CAA records.",-1)),S("li",null,B(a.$t("SSL.Business.index_16")),1),S("li",null,B(a.$t("SSL.Business.index_17")),1),S("li",null,B(a.$t("SSL.Business.index_18")),1),S("li",null,B(a.$t("SSL.Business.index_19")),1),S("li",null,[h(n,{href:"https://www.aapanel.com/docs/Function/BusinessCertificate.html",target:"_blank"},{default:C((()=>[b(B(a.$t("SSL.Business.index_20")),1)])),_:1})])])),_:1}),h(v,{class:"mt-20px!"},{default:C((()=>[h(p,{type:"primary",onClick:H},{default:C((()=>[b(B(a.$t("SSL.Business.index_21")),1)])),_:1}),h(p,{onClick:M},{default:C((()=>[b(B(a.$t("SSL.Business.index_22")),1)])),_:1})])),_:1})])}}});export{L as default};
Save File
Cancel