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