niucloud-admin/niucloud/public/admin/assets/member-money-info-cdbb3734.js
全栈小学生 a0528dc947 update admin
2023-06-21 18:37:59 +08:00

2 lines
2.7 KiB
JavaScript

import{g as k,r as p,a4 as F,j as V,m as d,D as h,E as t,q as s,F as i,K as B,L as r,u as o,a1 as N,n as b}from"./base-d2ce4248.js";/* empty css */import{E as j}from"./el-overlay-7451f13b.js";/* empty css *//* empty css */import{_ as C}from"./default_headimg-a897263d.js";import{t as a}from"./index-578c83eb.js";import{d as R}from"./storage-e62e496d.js";import{a as T,E as I}from"./index-f579a83b.js";import{E as L}from"./index-953c712f.js";import{v as O}from"./directive-3f066692.js";import"./event-f83e96f5.js";import"./index-28969730.js";import"./focus-trap-b41dd321.js";import"./common-dd6d00bb.js";import"./common-2cf17469.js";import"./_Uint8Array-6ca580e8.js";import"./_initCloneObject-5fe9c070.js";const q={class:"flex items-center"},K=["src"],S={key:1,class:"w-[50px] h-[50px] mr-[10px]",src:C,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"},fe=k({__name:"member-money-info",emits:["complete"],setup(M,{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=F({...f}),g=p(),y=V(()=>({}));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=T,x=I,w=L,D=j,E=O;return d(),h(D,{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(()=>[B(r(o(a)("confirm")),1)]),_:1})])]),default:t(()=>[N((d(),h(x,{model:e,"label-width":"110px",ref_key:"formRef",ref:g,rules:o(y),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(R)(e.headimg),alt:""},null,8,K)):(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"])),[[E,_.value]])]),_:1},8,["modelValue","title"])}}});export{fe as default};