← Back
Editing: ssl-expire-configure.js
import{c as e,g as s,e as l,B as a,T as t,q as r,M as o,x as m}from"./base-lib.js?v=VERSION_NUMBER";import{G as p,k as i,bg as u,bV as n}from"./utils-lib.js?v=VERSION_NUMBER";import{aI as d}from"./validator.js?v=VERSION_NUMBER";import{i as c,o as j}from"./useController13.js?v=VERSION_NUMBER";import"./__commonjsHelpers__.js?v=VERSION_NUMBER";import"./index104.js?v=VERSION_NUMBER";import"./column.js?v=VERSION_NUMBER";import"./site.js?v=VERSION_NUMBER";import"./index103.js?v=VERSION_NUMBER";import"./useStore12.js?v=VERSION_NUMBER";import"./useStore4.js?v=VERSION_NUMBER";import"./useController6.js?v=VERSION_NUMBER";import"./useController5.js?v=VERSION_NUMBER";import"./useMethod5.js?v=VERSION_NUMBER";import"./useController4.js?v=VERSION_NUMBER";import"./useStore10.js?v=VERSION_NUMBER";const b=e({__name:"ssl-expire-configure",setup(e,{expose:b}){const{BtForm:x,submit:y}=p({data:()=>{const{data:e}=c();return e||{id:0,dueAlarm:!1,domainName:"",cycle:30,allSsl:!1,push:[]}},options:e=>s((()=>[{type:"switch",label:"到期提醒",key:"dueAlarm"},{type:"input",label:"设置站点",key:"domainName",attrs:{width:"28rem",disabled:!0}},{type:"custom",render:()=>l(u,{label:"证书有效期",prop:"cycle"},{default:()=>[l("div",{class:"text-[1.2rem] flex"},[l("span",{class:"mr-4px"},[a("小于")]),l(i,{modelValue:e.value.cycle,"onUpdate:modelValue":s=>e.value.cycle=s,class:"!w-[10rem]",type:"number"},null),l("span",{class:"ml-4px"},[a("天,将每天发送1次提醒。")])])]}),rules:{cycle:[n({message:"请输入证书到期提示时间"}),{validator:(e,s,l)=>{/^[1-9]\d*$/.test(s)?l():l(new Error("请输入大于0的整数"))},trigger:["blur","change","input"]}]}},d("通知方式","push",{rules:{push:[n({message:"请选择通知方式"})]}}),{type:"custom",render:()=>l(u,{label:"应用配置"},{default:()=>[l(t,{modelValue:e.value.allSsl,"onUpdate:modelValue":s=>e.value.allSsl=s,name:"type"},{default:()=>[a("将当前配置应用到所有"),l("span",{class:"text-danger"},[a("未设置过的站点")])]})]})}])),submit:j});return b({onConfirm:y}),(e,s)=>(r(),o(m(x),{class:"p-[16px]","label-width":"100px"}))}});export{b as default};
Save File
Cancel