import{j as E}from"./index.2e41469c.js";import{i as A}from"./index.9af1606c.js";import{j as k}from"./index.8af0c514.js";import{d as x,a6 as D,r as _,p as F,c as a,e as o,k as d,i as m,f as s,h,A as l,g as C,F as y,j as B,_ as w}from"./index.0308b213.js";const I={key:0,class:"image-preview"},N={key:0,class:"large-image"},V={class:"thumbnail-list",ref:"thumbnailList"},j={key:1,style:{"font-size":"20px",width:"100%","text-align":"center","margin-bottom":"20px"}},L=x({props:{record_id:Number},setup(p){const u=p,{OpPlatform:n}=D(),t=_([]),r=_(0),g=()=>{n.value=="shangpu"?E({record_id:u.record_id}).then(e=>{e&&e.thumbs?t.value=e.thumbs:console.error("\u56FE\u7247\u5217\u8868\u4E3A\u7A7A")}).catch(()=>{console.error("\u83B7\u53D6\u56FE\u7247\u5217\u8868\u5931\u8D25")}):n.value=="agent"?A({record_id:u.record_id}).then(e=>{e&&e.thumbs?t.value=e.thumbs:console.error("\u56FE\u7247\u5217\u8868\u4E3A\u7A7A")}).catch(()=>{console.error("\u83B7\u53D6\u56FE\u7247\u5217\u8868\u5931\u8D25")}):k({record_id:u.record_id}).then(e=>{e&&e.thumbs?t.value=e.thumbs:console.error("\u56FE\u7247\u5217\u8868\u4E3A\u7A7A")}).catch(()=>{console.error("\u83B7\u53D6\u56FE\u7247\u5217\u8868\u5931\u8D25")})};return F(()=>u.record_id,e=>{g()}),(e,P)=>{const c=a("el-image"),f=a("el-scrollbar"),v=a("el-dialog");return o(),d(v,{title:"\u56FE\u7247\u9884\u89C8",width:"1000px"},{default:m(()=>[t.value.length>0?(o(),s("div",I,[r.value!==null?(o(),s("div",N,[h(c,{src:t.value[r.value],fit:"contain"},null,8,["src"])])):l("",!0),h(f,{style:{height:"500px"}},{default:m(()=>[C("div",V,[(o(!0),s(y,null,B(t.value,(b,i)=>(o(),d(c,{key:i,class:"thumbnail",src:b,onClick:S=>r.value=i,fit:"cover"},null,8,["src","onClick"]))),128))],512)]),_:1})])):l("",!0),t.value.length<=0?(o(),s("div",j,"\u6682\u65E0\u56FE\u7247")):l("",!0)]),_:1})}}});const G=w(L,[["__scopeId","data-v-ce41bb5e"]]);export{G as default};
