File: /www/server/panel/BTPanel/static/js/index154.js
import{e as f,_ as D,f as _,cZ as w}from"./utils-lib.js?v=1777008528";import{c as v,r as x,o as g,j as M,k as Y,x as V,e as y,p as L,Q as b,bw as k}from"./base-lib.js?v=1777008528";import{Q as E}from"./ssl.js?v=1777008528";import{g as T}from"./useStore7.js?v=1777008528";import"./__commonjsHelpers__.js?v=1777008528";const h={class:"p-[2rem] flex items-center w-full"},A=v({__name:"index",props:{compData:{default:()=>{}}},setup(d,{expose:c}){const n=_(),{refs:{isRefreshDomainList:p}}=T(),t=d,a=x(t.compData.row.endtime||""),u=o=>o.getTime()<Date.now();return c({onConfirm:async o=>{var r;if(!a.value)return n.error("请选择到期时间"),!1;let e,s;try{e=n.load("正在设置到期时间,请稍后...");let i=[t.compData.row.id];(r=t.compData)!=null&&r.rowList&&t.compData.rowList.length&&(i=t.compData.rowList.map(l=>l.id));const m=await E({ids:JSON.stringify(i),endtime:a.value});n.request(m),m.status&&(p.value=!0,a.value="",o&&o()),s=t.compData.rowList.map(l=>({name:l.domain,status:!0})),f({isAsync:!0,title:"批量设置结果",area:42,component:()=>D(()=>import("./index127.js?v=1777008528"),__vite__mapDeps([]),import.meta.url),compData:{resultData:s,resultTitle:"设置结果"}})}catch(i){}finally{e&&e.close()}}}),g(()=>{t.compData.row.endtime===0&&(a.value="")}),(o,e)=>{const s=k;return M(),Y("div",h,[e[1]||(e[1]=V("到期时间:",-1)),y(s,{modelValue:L(a),"onUpdate:modelValue":e[0]||(e[0]=r=>b(a)?a.value=r:null),class:"!w-[33rem]","disabled-date":u,type:"date",format:"YYYY/MM/DD","value-format":"YYYY-MM-DD",placeholder:"选择日期"},null,8,["modelValue"])])}}}),I=w(A,[["__scopeId","data-v-9ab0bf69"]]);export{I as default};
function __vite__mapDeps(indexes) {
if (!__vite__mapDeps.viteFileDeps) {
__vite__mapDeps.viteFileDeps = []
}
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
}