← Back
Editing: selected-cert-dialog.js
import{K as s,jD as a,M as t,h7 as e,l as r}from"./utils-lib.js?v=VERSION_NUMBER";import{u as i}from"./column.js?v=VERSION_NUMBER";import{c as l,k as o,p as n,G as c,q as m,v as d,H as p,x as u,e as b,ar as f}from"./base-lib.js?v=VERSION_NUMBER";import"./__commonjsHelpers__.js?v=VERSION_NUMBER";import"./index104.js?v=VERSION_NUMBER";const g={class:"p-[2rem]"},j=l({__name:"selected-cert-dialog",props:{compData:{default:()=>({})}},emits:["close"],setup(l,{emit:j}){const _=o({list:[],loading:!1}),h=l,{selectdCert:x}=h.compData,q=j,y=[{label:"域名",render:s=>s.dns.join(",")},{label:"到期时间",prop:"not_after",minWidth:100},{label:"品牌",prop:"info.issuer",minWidth:100},i([{onClick:async e=>{s({loading:"正在选择证书,请稍候...",request:a({cert_name:e.subject}),success:s=>{if(!s.status)return t.error(s.msg),!1;x(s.data),q("close")}})},title:"选择"}])];return n((async()=>{s({loading:f(_,"loading"),request:e(),data:[Array,f(_,"list")]})})),(s,a)=>{const t=r,e=c("bt-loading");return m(),d("div",g,[p(b(t,{ref:"certTable",column:y,"max-height":400,data:u(_).list,description:"证书列表为空"},null,8,["data"]),[[e,u(_).loading],[e,"正在加载证书列表,请稍后...","title"]])])}}});export{j as default};
Save File
Cancel