import{d,r as c,aw as f,c as r,o as s,w as h,h as g,l as o,j as y,aH as k,cC as v,X as w,gI as x}from"./index-9PRMimni.js";import{a as B}from"./jobPlanDetails-5wu16ZE_.js";const C={key:0,class:"w-[50%]"},j=d({__name:"index",props:{data:{}},setup(_){const i=_,n=c(!1),e=c([]);async function p(){try{n.value=!0;const a=await B({...i.data}).then(l=>x(l,t=>({name:t.attachmentName,url:t.fileUrl,status:"finished"})));e.value=a}catch(a){console.error("加载数据失败:",a),e.value=[]}finally{n.value=!1}}return f(()=>{p()}),(a,l)=>{const t=k,u=v,m=w;return s(),r(m,{loading:o(n)},{default:h(()=>[o(e).length?(s(),g("div",C,[y(t,{disabled:"","file-list":o(e),class:"mt-[-30px]"},null,8,["file-list"])])):(s(),r(u,{key:1,size:"huge",class:"p-10"}))]),_:1},8,["loading"])}}});export{j as default};
