import{_ as a}from"./index105.js?v=1761009159";import{c as t,o as e,a7 as o,v as s,x as l,e as r,B as p,y as n,C as i,aj as d,ah as m}from"./base-lib.js?v=1761009159";import{an as c,i$ as u,_ as h,j0 as _,n as f}from"./utils-lib.js?v=1761009159";import{u as w}from"./column.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";import"./index106.js?v=1761009159";const y={class:"p-20px"},b=h(t({__name:"details",props:{compData:{}},setup(t){const i=t,d=e({task_id:i.compData.id,type:i.compData.type,value:"domain"===i.compData.type?i.compData.row.domain:i.compData.row.status,page:1,size:10}),{BtTable:m,BtPage:h,BtRefresh:_,BtTableCategory:f,BtRecommendSearch:w,BtColumn:b,BtBatch:B,BtErrorMask:g,refresh:D}=c({request:async a=>{let t={p:a.p,size:a.limit};Object.assign(o(d),t);const{data:e}=await u(o(d));return{data:e.data||[],total:e.total||0}},columns:[{prop:"domain"===d.type?"domain":"status",label:"domain"===d.type?"域名":"状态",width:"domain"===d.type?120:100,showOverflowTooltip:!0},{prop:"recipient",label:"收件人",width:160,showOverflowTooltip:!0},{prop:"dsn",label:"Dsn",width:60},{prop:"delays",label:"延迟",width:150},{prop:"relay",label:"中继",width:200,showOverflowTooltip:!0},{prop:"err_info",label:"错误信息",showOverflowTooltip:!0}]});return(t,e)=>{const o=a;return s(),l("div",y,[r(o,null,{content:p(()=>[r(n(m))]),"footer-right":p(()=>[r(n(h))]),_:1})])}}}),[["__scopeId","data-v-e052bccd"]]),B={class:"p-20px"},g=t({__name:"index",props:{compData:{}},setup(t){const u=t,h=e({task_id:u.compData.row.id,type:"domain"}),{BtTable:y,BtPage:g,BtRefresh:D,BtTableCategory:j,BtRecommendSearch:v,BtColumn:x,BtBatch:C,BtErrorMask:T,refresh:k}=c({request:async a=>{const{data:t}=await _(o(h));return{data:t||[],total:t.length||0}},columns:[{prop:"domain",label:"domain"===h.type?"域名":"状态",render:a=>"domain"===h.type?a.domain:a.status},{prop:"count",label:"数量"},w(a=>[{title:"详情",onClick:()=>{(a=>{f({title:"详情",area:98,component:b,compData:{row:a,id:u.compData.row.id,type:h.type}})})(a)}}])]});return(t,e)=>{const o=d,c=m,u=a;return s(),l("div",B,[r(u,null,{"header-left":p(()=>[r(c,{size:"default",modelValue:n(h).type,"onUpdate:modelValue":e[0]||(e[0]=a=>n(h).type=a),onChange:n(k)},{default:p(()=>[r(o,{label:"domain"},{default:p(()=>e[1]||(e[1]=[i("域名",-1)])),_:1,__:[1]}),r(o,{label:"status"},{default:p(()=>e[2]||(e[2]=[i("状态",-1)])),_:1,__:[2]})]),_:1},8,["modelValue","onChange"])]),content:p(()=>[r(n(y),{"max-height":340})]),_:1})])}}});export{g as default};
