niucloud-admin/niucloud/public/admin/assets/member-money-info-7eb283c4.js
2023-10-26 09:57:34 +08:00

2 lines
2.7 KiB
JavaScript

import"./base-0e92f4db.js";/* empty css */import{E}from"./el-overlay-3eff2fc5.js";/* empty css */import{a as V,E as B}from"./el-form-item-c2dd2ffe.js";import{_ as F}from"./default_headimg-a5131c68.js";import{t as a}from"./index-bf9b1162.js";import{c as N}from"./common-46715e7e.js";import{E as C}from"./index-e09a20f5.js";import{v as R}from"./directive-c6f70b8e.js";import{d as T,r as p,M as j,c as I,b as d,m as h,p as t,f as s,q as i,v as L,x as r,u as o,L as O,e as b}from"./runtime-core.esm-bundler-67034826.js";import"./event-a537c4cb.js";import"./index-72686045.js";import"./index-defed8ff.js";import"./focus-trap-83769a43.js";import"./index-6cae7119.js";import"./index-d87ae4a2.js";const q={class:"flex items-center"},M=["src"],S={key:1,class:"w-[50px] h-[50px] mr-[10px]",src:F,alt:""},U={class:"input-width"},$={class:"input-width"},z={class:"input-width"},A={class:"input-width"},G={class:"input-width"},H={class:"input-width"},J={class:"dialog-footer"},pe=T({__name:"member-money-info",emits:["complete"],setup(K,{expose:v,emit:P}){const n=p(!1),_=p(!0),f={account_data:0,account_type:"",create_time:"",from_type:"",from_type_name:"",headimg:"",member_id:"",memo:"",mobile:"",nickname:"",related_id:"",username:""},e=j({...f}),g=p(),x=I(()=>({}));return v({showDialog:n,setFormData:async(c=null)=>{_.value=!0,Object.assign(e,f),c&&Object.keys(e).forEach(l=>{c[l]!=null&&(e[l]=c[l])}),_.value=!1}}),(c,l)=>{const m=V,y=B,w=C,k=E,D=R;return d(),h(k,{modelValue:n.value,"onUpdate:modelValue":l[1]||(l[1]=u=>n.value=u),title:o(a)("moneyInfo"),width:"550px","destroy-on-close":!0},{footer:t(()=>[s("span",J,[i(w,{type:"primary",onClick:l[0]||(l[0]=u=>n.value=!1)},{default:t(()=>[L(r(o(a)("confirm")),1)]),_:1})])]),default:t(()=>[O((d(),h(y,{model:e,"label-width":"110px",ref_key:"formRef",ref:g,rules:o(x),class:"page-form"},{default:t(()=>[i(m,{label:o(a)("headimg")},{default:t(()=>[s("div",q,[e.headimg?(d(),b("img",{key:0,class:"w-[50px] h-[50px] mr-[10px]",src:o(N)(e.headimg),alt:""},null,8,M)):(d(),b("img",S))])]),_:1},8,["label"]),i(m,{label:o(a)("nickName")},{default:t(()=>[s("div",U,r(e.nickname),1)]),_:1},8,["label"]),i(m,{label:o(a)("mobile")},{default:t(()=>[s("div",$,r(e.mobile),1)]),_:1},8,["label"]),i(m,{label:o(a)("accountData")},{default:t(()=>[s("div",z,r(e.account_data),1)]),_:1},8,["label"]),i(m,{label:o(a)("fromType")},{default:t(()=>[s("div",A,r(e.from_type_name),1)]),_:1},8,["label"]),i(m,{label:o(a)("memo")},{default:t(()=>[s("div",G,r(e.memo),1)]),_:1},8,["label"]),i(m,{label:o(a)("createTime")},{default:t(()=>[s("div",H,r(e.create_time),1)]),_:1},8,["label"])]),_:1},8,["model","rules"])),[[D,_.value]])]),_:1},8,["modelValue","title"])}}});export{pe as default};