25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
1.9KB

  1. import{c as g}from"./projectStore.94f188d8.js";import{N as w}from"./index.3de4dfbb.js";import{d as D,r as E,o as N,c as d,e as a,I as f,i as _,f as p,F as k,J as j,h as m,j as A,t as R,g as u}from"./index.121be81f.js";const U={key:0,class:"accessory text-primary flex items-center"},B=["onClick"],F=["onClick"],I=u("span",null,"\u4E0B\u8F7D",-1),L={key:1},O=D({name:"trialRunInfo"}),M=Object.assign(O,{props:{detailData:Object},setup(y){const n=y,l=E([]),h=()=>{var o,t,s,c;l.value=[],(t=(o=n==null?void 0:n.detailData)==null?void 0:o.projectApplications)!=null&&t.filter(e=>e.relatedExistsApplicationCode||e.appCode).length&&((c=(s=n==null?void 0:n.detailData)==null?void 0:s.projectApplications)==null||c.filter(e=>e.relatedExistsApplicationCode||e.appCode).forEach(async e=>{const i=await g(e.relatedExistsApplicationCode||e.appCode);l.value.push({name:e.relatedExistsApplication||e.applicationName,ossUrl:i.data})}))},v=o=>{window.open(o,"_blank")},C=o=>{const t=document.createElement("a");t.style.display="none",t.href=o,t.download=n.fileName,document.body.appendChild(t),t.click(),document.body.removeChild(t),window.URL.revokeObjectURL(o)};return N(()=>{h()}),(o,t)=>{var i;const s=d("el-descriptions-item"),c=d("svg-icon"),e=d("el-descriptions");return(i=l.value)!=null&&i.length?(a(),f(e,{key:0,column:2,border:""},{default:_(()=>[(a(!0),p(k,null,j(l.value,(r,x)=>(a(),p(k,{key:x},[m(s,{label:"\u5E94\u7528\u540D\u79F0"},{default:_(()=>[A(R(r.name||"-"),1)]),_:2},1024),m(s,{label:"\u8BD5\u8FD0\u884C\u62A5\u544A"},{default:_(()=>[r.ossUrl?(a(),p("div",U,[u("span",{class:"cursor-pointer",onClick:b=>v(r.ossUrl)},"\u8BD5\u8FD0\u884C\u62A5\u544A.pdf",8,B),u("p",{class:"ml-24 flex items-center text-primary btn cursor-pointer",onClick:b=>C(r.ossUrl)},[m(c,{name:"down-icon",class:"mr-4 text-14"}),I],8,F)])):(a(),p("span",L,"-"))]),_:2},1024)],64))),128))]),_:1})):(a(),f(w,{key:1}))}}});export{M as default};