import{u as a,r as e,ad as t,c as s,bQ as r,d as i,e as o,h as n,w as l,g as d,j as p,k as c,f as m,m as f,an as b,aO as u,n as h,E as g,p as v,q as j}from"./index.286e9b79.js";import{v as x}from"./loading.c49775a6.js";import{E as y,a as w}from"./table-column.7b4f59a2.js";import"./checkbox.f06171a4.js";/* empty css            */import{E as _}from"./image-viewer.b538fe01.js";import{g as k}from"./http.f588794f.js";import"./_baseIteratee.9ead53a1.js";import"./_initCloneObject.fb8fbaea.js";import"./isEqual.57d72c4a.js";import"./debounce.caafe00b.js";import"./event.776e7e11.js";import"./index.ed3ed02e.js";import"./position.1bd00850.js";import"./scroll.a50153b5.js";const z={class:"table-wrap"},E={class:"table-box"},q={class:"tabs-content"},C=n("span",{style:{"font-size":"14px","margin-left":"5px"}},"暂无数据",-1),O={class:"image-slot"},I=n("div",{class:"page"},[n("div",{class:"l"}),n("div",{class:"r"})],-1),Q={__name:"index",setup(Q){const W=a(),A=e([]);let B=e(!1);t((()=>{B.value=!0,k("addons.payment/index").then((a=>{B.value=!1,a.code?A.value=a.data:g.error(a.msg)})).catch((a=>{B.value=!1,g.error(a)}))}));return(a,e)=>{const t=s("Warning"),g=v,k=_,Q=y,D=j,F=w,G=r("auth"),H=x;return i(),o("div",null,[n("div",z,[n("div",E,[n("div",q,[l((i(),p(F,{data:d(A),size:"large",style:{width:"100%"}},{empty:c((()=>[m(g,{size:"18",style:{position:"relative",top:"4px"}},{default:c((()=>[m(t)])),_:1}),C])),default:c((()=>[m(Q,{width:"80","header-align":"center",align:"center"},{default:c((a=>[a.row.photo?(i(),p(k,{key:0,src:a.row.photo,fit:"contain",style:{width:"30px",height:"30px"}},{error:c((()=>[n("div",O,[(i(),p(f("icon-picture")))])])),_:2},1032,["src"])):b("",!0)])),_:1}),m(Q,{prop:"name",label:"支付名称","header-align":"center",align:"center"}),m(Q,{prop:"sort",label:"排序","header-align":"center",align:"center",width:"130"}),m(Q,{label:"操作","header-align":"center",align:"center",width:"110"},{default:c((a=>[l((i(),p(D,{type:"primary",size:"small",onClick:u((e=>{return t=a.row.id,void W.push({path:"/addons/payment/editor",query:{id:t}});var t}),["prevent"]),link:""},{default:c((()=>[h("编辑")])),_:2},1032,["onClick"])),[[G,["addons.payment/editor"]]])])),_:1})])),_:1},8,["data"])),[[H,d(B)]])]),I])])])}}};export{Q as default};
