1 |
- import{a as E}from"./index.7e5798f1.js";import{a as F}from"./index.7dd83e5b.js";import{d as B,a6 as z,r as P,b as g,p as b,c as u,e as U,k as A,i,g as r,h as l,u as a,q as L,m as C,_ as N}from"./index.76214426.js";const O={class:"filter-form"},q=C("\u641C\u7D22"),I={class:"table"},j=["src"],G=C("\u9009\u62E9"),Q={class:"pagination"},R=B({props:{modelValue:{type:Boolean,default:!1}},emits:["update:modelValue","onClose","onSelect"],setup(h,{emit:c}){const y=h,{OpPlatform:V}=z();let p=P(!1);const o=g({keyword:"",page:1,limit:10}),s=g({list:[],count:0}),_=()=>{V.value==="agent"?F(o).then(t=>{s.count=t.count,s.list=t.list}):E(o).then(t=>{s.count=t.count,s.list=t.list})};b(()=>y.modelValue,t=>{p.value=t,t&&_()}),b(()=>[o.page,o.limit],()=>{_()});const v=()=>{_()},x=t=>{c("onSelect",t),m()},m=()=>{c("update:modelValue",!1),c("onClose")};return(t,n)=>{const D=u("el-input"),f=u("el-button"),d=u("el-table-column"),S=u("el-table"),k=u("el-pagination"),w=u("el-dialog");return U(),A(w,{modelValue:a(p),"onUpdate:modelValue":n[3]||(n[3]=e=>L(p)?p.value=e:p=e),title:"\u9009\u62E9\u5546\u6237",width:"50%","destroy-on-close":"","append-to-body":!0,onClose:m},{default:i(()=>[r("div",O,[l(D,{modelValue:a(o).keyword,"onUpdate:modelValue":n[0]||(n[0]=e=>a(o).keyword=e),placeholder:"\u8BF7\u8F93\u5165\u5546\u6237\u540D\u79F0\u8FDB\u884C\u641C\u7D22"},null,8,["modelValue"]),l(f,{type:"primary",onClick:v},{default:i(()=>[q]),_:1})]),r("div",I,[l(S,{data:a(s).list,height:"400px"},{default:i(()=>[l(d,{label:"\u95E8\u5E97LOGO",width:"100px"},{default:i(({row:e})=>[r("img",{class:"thumb",src:e.logo},null,8,j)]),_:1}),l(d,{label:"\u95E8\u5E97ID",prop:"id"}),l(d,{label:"\u95E8\u5E97\u540D\u79F0",prop:"title"}),l(d,{fixed:"right",label:"\u64CD\u4F5C",width:"90px"},{default:i(({row:e})=>[l(f,{onClick:T=>x(e)},{default:i(()=>[G]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),r("div",Q,[l(k,{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=N(R,[["__scopeId","data-v-65e1ff9b"]]);export{M as default};
|