import{W as a,X as t}from"./ssl.js?v=1761009159";import{an as s,P as e}from"./utils-lib.js?v=1761009159";import{c as r,t as o,e as n,v as i,x as l,y as m}from"./base-lib.js?v=1761009159";import{g as c}from"./useStore10.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";const d={class:"p-[16px]"},p=r({__name:"index",props:{compData:{type:Object,default:()=>({})}},setup(r){const{refs:{isRefreshDomainList:p}}=c(),u=r,{row:_}=o(u.compData),{BtTable:f,BtPage:y,BtRefresh:B,BtTableCategory:b,BtRecommendSearch:g,BtColumn:h,BtBatch:j,BtErrorMask:x,refresh:v}=s({request:async a=>{try{const{data:a}=await t({fun_name:"get_domain_list",dns_id:_.value.id});return{data:a.data,total:a.total}}catch(s){return{data:[],total:0}}},columns:[{label:"域名",prop:"name"},{label:"操作",align:"right",width:55,render:a=>n("span",{class:a.sync?"text-primary cursor-pointer":"text-tertiary cursor-not-allowed",onClick:()=>a.sync&&w(a)},[a.sync?"同步":"已同步"])}]}),w=async t=>{e({loading:"同步中...",request:a({dns_id:_.value.id,domain_name:t.name}),message:!0,success:()=>{v(),p.value=!0}})};return(a,t)=>(i(),l("div",d,[n(m(f))]))}});export{p as default};
