import{l as a}from"./utils-lib.js?v=1761009159";import{c as t,r as l,e,g as s,aI as r,v as n,x as o,z as u,F as m,C as i,A as c,y as p}from"./base-lib.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";const d={class:"p-[2rem] pt-[1rem]"},v={class:"flex items-center mb-[0.8rem]"},D={class:"text-base ml-[1.2rem]"},g=t({__name:"index",props:{compData:{default:()=>({resultData:[]})}},setup(t){const g=t,x=l([{label:"名称",prop:"name"},{label:"结果",align:"right",render:a=>{const t=a;return e("span",{class:"".concat(t.status?"text-primary":"text-danger"),innerHTML:t.status?(null==t?void 0:t.msg)||"操作成功":(null==t?void 0:t.msg)||"操作失败"},null)}}]),f=l("操作"),b=s(()=>{var a,t;return(null==(t=null==(a=g.compData)?void 0:a.resultData)?void 0:t.filter(a=>a.status).length)||0}),h=s(()=>{var a,t;return(null==(t=null==(a=g.compData)?void 0:a.resultData)?void 0:t.filter(a=>!a.status).length)||0});return r(()=>{var a,t;(null==(a=g.compData)?void 0:a.resultColumn)&&(x.value=g.compData.resultColumn),(null==(t=g.compData)?void 0:t.resultTitle)&&(f.value=g.compData.resultTitle)}),(t,l)=>{var s;const r=a;return n(),o("div",d,[u("div",v,[l[0]||(l[0]=u("span",{class:"!text-primary !text-titleLarge svgtofont-el-circle-check-filled"},null,-1)),u("span",D,[t.compData.autoTitle?(n(),o(m,{key:0},[i(c(null==(s=t.compData)?void 0:s.autoTitle),1)],64)):(n(),o(m,{key:1},[i(" 批量"+c(p(f))+"完成！共"+c(t.compData.resultData.length)+"项，成功"+c(p(b))+"项，失败"+c(p(h))+"项。 ",1)],64))])]),e(r,{column:p(x),data:t.compData.resultData||[],"max-height":"360"},null,8,["column","data"])])}}});export{g as default};
