import{d as v,a,o,c as u,f as d,b as n,e as s,t as h,j as p,E as C,_ as E,r as b,i as _,h as k,F as f,g as x,n as V,k as D,u as I}from"./index-8184dd63-1780045603901v=1.0.0.js";import{g as B}from"./base64-db2ecc3a-1780045603901v=1.0.0.js";const N={key:0,class:"file_container"},S={class:"left flex"},P={class:"right"},L={key:1},j=v({name:"FileViewItem"}),z=v({...j,props:{name:String,url:String},setup(e){const l=e,w=async()=>{l.url?window.open("http://14.17.80.135:28012/onlinePreview?url="+encodeURIComponent(B.encode(l.url))):C.warning("\u9884\u89C8\u5730\u5740\u65E0\u6548")},y=()=>{const i=document.createElement("a");i.href=l.url,i.download=l.name?l.name:"exportdata",i.click()};return(i,r)=>{const m=a("Document"),t=a("el-icon"),c=a("View"),g=a("el-link"),F=a("Download");return e.url?(o(),u("div",N,[d("div",S,[n(t,{class:"mr5"},{default:s(()=>[n(m)]),_:1}),d("span",null,h(e.name),1)]),d("div",P,[n(g,{type:"primary",onClick:w,class:"mr10"},{default:s(()=>[n(t,{class:"mr5"},{default:s(()=>[n(c)]),_:1}),r[0]||(r[0]=p("\u9884\u89C8",-1))]),_:1}),n(g,{type:"primary",onClick:y,target:"_blank"},{default:s(()=>[n(t,{class:"mr5"},{default:s(()=>[n(F)]),_:1}),r[1]||(r[1]=p("\u4E0B\u8F7D",-1))]),_:1})])])):(o(),u("div",L,"\u6682\u65E0\u6587\u4EF6"))}}});const R=E(z,[["__scopeId","data-v-704d5f3b"],["__file","D:/desktop/yunNan/vue-area-submit/src/components/ElFormShowItem/FileViewItem.vue"]]),$=v({__name:"index",props:{info:{type:Object,default:()=>({})}},setup(e){const l=b({xs:24,sm:24,md:24,lg:24,xl:24});return(w,y)=>{const i=a("el-image"),r=a("el-form-item"),m=a("form-col");return o(),_(m,V(D(e.info.type==2?I(l):{})),{default:s(()=>[n(r,{label:`${e.info.label}:`},{default:s(()=>[k(" \u56FE\u7247\u96C6 "),e.info.type==2?(o(!0),u(f,{key:0},x(e.info.value,(t,c)=>(o(),_(i,{key:c,style:{width:"100px",height:"100px","margin-right":"10px"},src:t,"zoom-rate":1.2,"max-scale":7,"min-scale":.2,"initial-index":4,"preview-src-list":e.info.value,fit:"cover"},null,8,["src","preview-src-list"]))),128)):e.info.type==3?(o(!0),u(f,{key:1},x(e.info.value,(t,c)=>(o(),_(R,{key:c,name:t.name,url:t.url},null,8,["name","url"]))),128)):(o(),u(f,{key:2},[k(" \u6587\u672C\u5185\u5BB9 "),p(h(e.info.value),1)],64))]),_:1},8,["label"])]),_:1},16)}}}),T=E($,[["__file","D:/desktop/yunNan/vue-area-submit/src/components/ElFormShowItem/index.vue"]]);export{T as E};
