import{an as y}from"./setting.644fa418.js";import{d as h,b as z,r as _,p as F,c as r,e as L,k as E,i as c,g as n,h as t,t as m,u as s,q as D,_ as B}from"./index.0308b213.js";const V={class:"data"},k={class:"table"},R={class:"bottom",style:{color:"red",height:"40px","line-height":"40px","text-align":"center","font-size":"14px"}},P={class:"pagination"},U=h({emits:["onClose"],setup(q,{emit:b}){const a=z({page:1,page_size:20});let u=_(!1),g=_([]);const i=_(0);F(()=>[a.page,a.page_size],()=>{d()});const d=()=>{y(a).then(p=>{g.value=p.list,i.value=p.total,console.log(i.value,p.total)})};d();const f=()=>{b("onClose")};return(p,l)=>{const o=r("el-table-column"),v=r("el-table"),C=r("el-pagination"),x=r("el-dialog");return L(),E(x,{modelValue:s(u),"onUpdate:modelValue":l[2]||(l[2]=e=>D(u)?u.value=e:u=e),title:"\u65E5\u5FD7",width:"80%","destroy-on-close":"",onClose:f},{default:c(()=>[n("div",V,[n("div",k,[t(v,{data:s(g)},{default:c(()=>[t(o,{label:"\u5E01\u79CD"},{default:c(({row:e})=>[n("div",null,m(e.from_currency)+"=> "+m(e.to_currency),1)]),_:1}),t(o,{label:"\u6C47\u7387",prop:"exchange_rate"}),t(o,{label:"\u4E0A\u6B21\u7528\u7684\u6C47\u7387",prop:"last_exchange_rate"}),t(o,{label:"\u5E73\u53F0\u6C47\u7387\u66F4\u65B0\u65F6\u95F4",prop:"platform_update_time",sortable:"custom"}),t(o,{label:"\u6570\u636E\u6765\u6E90",prop:"data_from_text"}),t(o,{label:"\u5907\u6CE8",prop:"remark"}),t(o,{label:"\u65E5\u5FD7\u65F6\u95F4",prop:"create_time"})]),_:1},8,["data"])])]),n("div",R,[n("div",P,[t(C,{currentPage:s(a).page,"onUpdate:currentPage":l[0]||(l[0]=e=>s(a).page=e),"page-size":s(a).page_size,"onUpdate:page-size":l[1]||(l[1]=e=>s(a).page_size=e),"page-sizes":[10,20,30,40],layout:"total, sizes, prev, pager, next, jumper",total:i.value},null,8,["currentPage","page-size","total"])])])]),_:1},8,["modelValue"])}}});const N=B(U,[["__scopeId","data-v-268fb8bc"]]);export{N as default};
