import{g as w}from"./list.4b7efdc5.js";import{g as P}from"./redpacket.da925412.js";import{d as z,a6 as E,r as S,b as f,p as C,c as u,e as U,k as A,i,g as c,h as l,u as a,q as N,m as y,_ as R}from"./index.0308b213.js";const q={class:"filter-form"},L=y("\u641C\u7D22"),j={class:"table"},I=["src"],O=y("\u9009\u62E9"),Q={class:"pagination"},T=z({props:{modelValue:{type:Boolean,default:!1}},emits:["update:modelValue","onClose","onSelect"],setup(b,{emit:r}){const h=b,{OpPlatform:V}=E();let d=S(!1);const o=f({agentid:"",keyword:"",page:1,limit:10}),s=f({list:[],count:0}),_=()=>{V.value==="shangpu"?w(o).then(t=>{s.count=t.count,s.list=t.list}):P(o).then(t=>{s.count=t.count,s.list=t.list})};C(()=>h.modelValue,t=>{d.value=t,t&&_()}),C(()=>[o.page,o.limit],()=>{_()});const k=()=>{_()},v=t=>{r("onSelect",t),m()},m=()=>{r("update:modelValue",!1),r("onClose")};return(t,n)=>{const x=u("el-input"),g=u("el-button"),p=u("el-table-column"),D=u("el-table"),B=u("el-pagination"),F=u("el-dialog");return U(),A(F,{modelValue:a(d),"onUpdate:modelValue":n[3]||(n[3]=e=>N(d)?d.value=e:d=e),title:"\u9009\u62E9\u95E8\u5E97\u5206\u7C7B",width:"50%","destroy-on-close":"","append-to-body":!0,onClose:m},{default:i(()=>[c("div",q,[l(x,{modelValue:a(o).keyword,"onUpdate:modelValue":n[0]||(n[0]=e=>a(o).keyword=e),placeholder:"\u8BF7\u8F93\u5165\u5206\u7C7B\u540D\u79F0\u8FDB\u884C\u641C\u7D22"},null,8,["modelValue"]),l(g,{type:"primary",onClick:k},{default:i(()=>[L]),_:1})]),c("div",j,[l(D,{data:a(s).list,height:"400px"},{default:i(()=>[l(p,{label:"\u56FE\u6807",width:"100px"},{default:i(({row:e})=>[c("img",{class:"thumb",src:e.thumb_cn},null,8,I)]),_:1}),l(p,{label:"\u5206\u7C7Bid",prop:"id"}),l(p,{label:"\u540D\u79F0",prop:"title"}),l(p,{fixed:"right",label:"\u64CD\u4F5C",width:"90px"},{default:i(({row:e})=>[l(g,{onClick:G=>v(e)},{default:i(()=>[O]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),c("div",Q,[l(B,{currentPage:a(o).page,"onUpdate:currentPage":n[1]||(n[1]=e=>a(o).page=e),"page-size":a(o).limit,"onUpdate:page-size":n[2]||(n[2]=e=>a(o).limit=e),"page-sizes":[10,20,30,40],layout:"total, sizes, prev, pager, next, jumper",total:a(s).count},null,8,["currentPage","page-size","total"])])]),_:1},8,["modelValue"])}}});const M=R(T,[["__scopeId","data-v-89dd9403"]]);export{M as default};
