2 lines
2.0 KiB
JavaScript
2 lines
2.0 KiB
JavaScript
import{o as k,be as E,q as i,r as x,v as e,D as o,bh as R,bg as N,s as B,bj as V,u as d,bk as D,aa as L,ac as T,O as f,K as P,L as $,P as j,M as _,a8 as q}from"./.pnpm-BGZW0UGg.js";import{a as A}from"./pay-BVTZcvA8.js";import{u as H}from"./getExposeType-BW4ay0m4.js";import u from"./edit-1WrwdB_x.js";import"./index-CTzEhZ24.js";import"./picker-uwVhCb3U.js";import"./index-B99pjMPF.js";import"./index-BauW3iNq.js";import"./index.vue_vue_type_script_setup_true_lang-ByFSC-yR.js";import"./index-ag3Z2xAC.js";import"./index-DmJsTQNR.js";import"./file-BQ0rU-P3.js";import"./index.vue_vue_type_script_setup_true_lang-DBx_F7yj.js";import"./usePaging-C4oc3vBq.js";import"./useLockFn-C80o7T4b.js";const oe=k({__name:"index",setup(I){const r=H(),m=_([]),b=q(),c=_(!1),l=async()=>{const{lists:n}=await A();m.value=n},w=async n=>{var t;(t=r.value)==null||t.openHandle(n.id,!1)};return l(),(n,t)=>{const h=R,p=N,a=D,y=L,g=P,v=V,C=E("perms");return i(),x("div",null,[e(p,{class:"!border-none",shadow:"never"},{default:o(()=>[e(h,{type:"warning",title:"温馨提示:设置系统支持的支付方式",closable:!1,"show-icon":""})]),_:1}),e(p,{shadow:"never",class:"mt-4 !border-none"},{default:o(()=>[B("div",null,[e(v,{data:d(m)},{default:o(()=>[e(a,{prop:"pay_way_name",label:"支付方式","min-width":"150"}),e(a,{prop:"name",label:"显示名称","min-width":"150"}),e(a,{label:"图标","min-width":"150"},{default:o(({row:s})=>[e(y,{src:s.icon,alt:"图标",style:{width:"34px",height:"34px"}},null,8,["src"])]),_:1}),e(a,{prop:"sort",label:"排序","min-width":"150"}),e(a,{label:"操作","min-width":"80",fixed:"right"},{default:o(({row:s})=>[T((i(),f(g,{link:"",type:"primary",onClick:K=>w(s)},{default:o(()=>[...t[1]||(t[1]=[$(" 配置 ",-1)])]),_:1},8,["onClick"])),[[C,["setting.pay.pay_config/setConfig"]]])]),_:1})]),_:1},8,["data"])])]),_:1}),d(c)?(i(),f(u,{key:0,ref_key:"editRef",ref:b,onSuccess:l,onClose:t[0]||(t[0]=s=>c.value=!1)},null,512)):j("",!0),e(u,{ref_key:"editNewRef",ref:r,onRefresh:l},null,512)])}}});export{oe as default};
|