import{az as h,d as C,a6 as D,b as c,p as P,c as u,e as F,f as z,g as r,h as a,i as n,u as o,k as U,A as j,a1 as S,t as q,F as N,m as E,E as K,_ as L}from"./index.0308b213.js";import{A as I}from"./index.1d26a072.js";import"./install.524ae6f2.js";import"./useAgent.c0cb1751.js";import"./list.5526c7ef.js";const v=p=>h.request({url:"addon/advertise.web.payment_jump/lists",method:"get",params:p}),M=p=>h.request({url:"addon/advertise.web.payment_jump/submit",method:"post",data:p}),O={class:"filter-form"},T=E("\u7B5B\u9009"),$={class:"data"},G=E("\u63D0\u4EA4\u4FEE\u6539"),H={class:"table"},J={style:{display:"flex","align-items":"center"}},Q={style:{"margin-left":"10px"}},R={class:"pagination"},W=C({setup(p){const{OpPlatform:g}=D(),t=c({page:1,limit:10,agentid:"",keyword:""}),i=c({lists:[],count:0}),_=c({ids:[],urls:[]}),d=()=>{g.value=="agent"?v(t).then(l=>{i.lists=l.lists,i.count=l.count}):v(t).then(l=>{console.log(l,"res"),i.lists=l.lists,i.count=l.count})};d(),P(()=>[t.page,t.limit,t.agentid],()=>{d()},{deep:!0});const V=()=>{i.lists.forEach(l=>{_.ids.push(l.id),_.urls.push(l.pay_direct_url)}),M(_).then(()=>{K.success("\u6279\u91CF\u4FEE\u6539\u6210\u529F"),d()})};return(l,s)=>{const m=u("el-form-item"),f=u("el-input"),y=u("el-button"),w=u("el-form"),x=u("el-avatar"),b=u("el-table-column"),k=u("el-table"),A=u("el-pagination");return F(),z(N,null,[r("div",O,[a(w,{"label-width":"120px"},{default:n(()=>[o(g)==="shangpu"?(F(),U(m,{key:0,label:"\u4EE3\u7406\u533A\u57DF"},{default:n(()=>[a(o(I),{modelValue:o(t).agentid,"onUpdate:modelValue":s[0]||(s[0]=e=>o(t).agentid=e)},null,8,["modelValue"])]),_:1})):j("",!0),a(m,{label:"\u6A21\u7CCA\u7B5B\u9009"},{default:n(()=>[a(f,{style:{width:"400px"},modelValue:o(t).keyword,"onUpdate:modelValue":s[1]||(s[1]=e=>o(t).keyword=e),placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D,\u6635\u79F0,\u624B\u673A\u53F7",onKeyup:s[2]||(s[2]=S(e=>d(),["enter"]))},null,8,["modelValue"])]),_:1}),a(m,null,{default:n(()=>[a(y,{type:"primary",onClick:d},{default:n(()=>[T]),_:1})]),_:1})]),_:1})]),r("div",$,[r("div",null,[a(y,{type:"primary",onClick:V},{default:n(()=>[G]),_:1})]),r("div",H,[a(k,{data:o(i).lists},{default:n(()=>[a(b,{label:"\u5546\u6237\u4FE1\u606F","min-width":"60"},{default:n(({row:e})=>[r("div",J,[a(x,{size:50,src:e.store_logo},null,8,["src"]),r("span",Q,q(e.store_title),1)])]),_:1}),a(b,{align:"center",label:"\u652F\u4ED8\u8DF3\u8F6C\u8DEF\u5F84"},{default:n(e=>[a(f,{modelValue:e.row.pay_direct_url,"onUpdate:modelValue":B=>e.row.pay_direct_url=B},null,8,["modelValue","onUpdate:modelValue"])]),_:1})]),_:1},8,["data"])])]),r("div",R,[a(A,{currentPage:o(t).page,"onUpdate:currentPage":s[3]||(s[3]=e=>o(t).page=e),"page-size":o(t).limit,"onUpdate:page-size":s[4]||(s[4]=e=>o(t).limit=e),"page-sizes":[10,20,30,40],layout:"total, sizes, prev, pager, next, jumper",total:o(i).count},null,8,["currentPage","page-size","total"])])],64)}}});const ae=L(W,[["__scopeId","data-v-01bc7c82"]]);export{ae as default};
