Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

2 Zeilen
1.9KB

  1. import{c as g}from"./projectStore.e90636d8.js";import{N as w}from"./index.555a865f.js";import{d as D,r as E,o as N,c as d,e as a,G as f,i as _,f as p,F as k,H as j,h as m,j as A,t as R,g as u}from"./index.e8b71da7.js";const U={key:0,class:"accessory text-primary flex items-center"},B=["onClick"],F=["onClick"],L={key:1},O=D({name:"trialRunInfo"}),G=Object.assign(O,{props:{detailData:Object},setup(y){const n=y,l=E([]),v=()=>{var o,e,s,i;l.value=[],(e=(o=n==null?void 0:n.detailData)==null?void 0:o.projectApplications)!=null&&e.filter(t=>t.relatedExistsApplicationCode||t.appCode).length&&((i=(s=n==null?void 0:n.detailData)==null?void 0:s.projectApplications)==null||i.filter(t=>t.relatedExistsApplicationCode||t.appCode).forEach(async t=>{const c=await g(t.relatedExistsApplicationCode||t.appCode);l.value.push({name:t.relatedExistsApplication||t.applicationName,ossUrl:c.data})}))},C=o=>{window.open(o,"_blank")},x=o=>{const e=document.createElement("a");e.style.display="none",e.href=o,e.download=n.fileName,document.body.appendChild(e),e.click(),document.body.removeChild(e),window.URL.revokeObjectURL(o)};return N(()=>{v()}),(o,e)=>{var c;const s=d("el-descriptions-item"),i=d("svg-icon"),t=d("el-descriptions");return(c=l.value)!=null&&c.length?(a(),f(t,{key:0,column:2,border:""},{default:_(()=>[(a(!0),p(k,null,j(l.value,(r,h)=>(a(),p(k,{key:h},[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=>C(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=>x(r.ossUrl)},[m(i,{name:"down-icon",class:"mr-4 text-14"}),e[0]||(e[0]=u("span",null,"\u4E0B\u8F7D",-1))],8,F)])):(a(),p("span",L,"-"))]),_:2},1024)],64))),128))]),_:1})):(a(),f(w,{key:1}))}}});export{G as default};