1 |
- import{d as j,r as c,b as v,w as A,x as U,o as k,C,A as a,f as e,a as l,D as _,E as Y,c as E,a2 as K,ac as N,P,a8 as G,U as J,H as $,K as F,as as L,at as O,b0 as Q,R as W,S as X,I as Z,V as ee,__tla as ae}from"./index-6e0fa573.js";import{g as le,__tla as se}from"./index-be0d2849.js";import{d as te}from"./tree-0af4953a.js";import{u as ue,g as oe,a as re,__tla as de}from"./profile-b148dcfc.js";import{u as me,__tla as ne}from"./useMessage-7f978edc.js";import{_ as pe}from"./_plugin-vue_export-helper-1b428a4d.js";let x,ie=Promise.all([(()=>{try{return ae}catch{}})(),(()=>{try{return se}catch{}})(),(()=>{try{return de}catch{}})(),(()=>{try{return ne}catch{}})()]).then(async()=>{let b;b={key:0},x=pe(j({name:"BasicInfo",__name:"BasicInfo",props:{change:{type:Boolean,default:!1}},setup(D,{expose:I}){const g=c([]);v(async()=>{g.value=await le()});const H=D,p=c(!1);A(H,(m,t)=>{p.value=m.change},{deep:!0});const s=c({}),{t:d}=P(),q=me(),M=U({username:[{required:!0,message:d("profile.rules.username"),trigger:"blur"}],nickname:[{required:!0,message:d("profile.rules.nickname"),trigger:"blur"}],email:[{required:!0,message:d("profile.rules.mail"),trigger:"blur"},{type:"email",message:d("profile.rules.truemail"),trigger:["blur","change"]}],mobile:[{required:!0,message:d("profile.rules.phone"),trigger:"blur"},{pattern:/^1[3|4|5|6|7|8|9][0-9]\d{8}$/,message:d("profile.rules.truephone"),trigger:"blur"}]}),B=c(),V=U({pageNo:1,pageSize:10,id:0}),f=async()=>{const m=await oe();s.value=m,V.id=247;const t=await re(V);s.value.member=t.list[0],console.log(s.value.member)};return I({init:f,submit:async()=>{const m=l(s.value);console.log(m),await ue(m),q.success("\u4FEE\u6539\u6210\u529F\uFF0C\u91CD\u65B0\u767B\u9646\u540E\u751F\u6548"),await f()}}),v(async()=>{await f()}),(m,t)=>{const i=G,o=J,r=$,n=F,h=L,R=O,T=Q,w=W,z=X,y=Z,S=ee;return k(),C(S,{ref_key:"formRef",ref:B,model:l(s),rules:l(M),"label-width":"120px",disabled:!l(p),class:N({view:!l(p)})},{default:a(()=>[e(n,null,{default:a(()=>[e(r,{span:12},{default:a(()=>[e(o,{label:"\u7528\u6237\u540D",prop:"username"},{default:a(()=>[e(i,{modelValue:l(s).username,"onUpdate:modelValue":t[0]||(t[0]=u=>l(s).username=u),placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u540D",class:"w-80!"},null,8,["modelValue"])]),_:1})]),_:1}),e(r,{span:12},{default:a(()=>[e(o,{label:"\u6635\u79F0",prop:"nickname"},{default:a(()=>[e(i,{modelValue:l(s).nickname,"onUpdate:modelValue":t[1]||(t[1]=u=>l(s).nickname=u),placeholder:"\u8BF7\u8F93\u5165\u6635\u79F0",class:"w-80!"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(n,null,{default:a(()=>[e(r,{span:12},{default:a(()=>[e(o,{label:"\u6027\u522B",prop:"sex"},{default:a(()=>[e(R,{modelValue:l(s).sex,"onUpdate:modelValue":t[2]||(t[2]=u=>l(s).sex=u)},{default:a(()=>[e(h,{label:1},{default:a(()=>[_(Y(l(d)("profile.user.man")),1)]),_:1}),e(h,{label:2},{default:a(()=>[_(Y(l(d)("profile.user.woman")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(r,{span:12},{default:a(()=>[e(o,{label:"\u624B\u673A\u53F7",prop:"mobile"},{default:a(()=>[e(i,{modelValue:l(s).mobile,"onUpdate:modelValue":t[3]||(t[3]=u=>l(s).mobile=u),placeholder:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7",class:"w-80!"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(n,null,{default:a(()=>[e(r,{span:12},{default:a(()=>[e(o,{label:"\u6240\u5728\u5730",prop:"areaId"},{default:a(()=>[e(T,{modelValue:l(s).areaId,"onUpdate:modelValue":t[4]||(t[4]=u=>l(s).areaId=u),options:l(g),props:l(te),class:"w-1/1",clearable:"",placeholder:"\u8BF7\u9009\u62E9\u6240\u5728\u5730",filterable:"","collapse-tags":""},null,8,["modelValue","options","props"])]),_:1})]),_:1}),e(r,{span:12},{default:a(()=>[e(o,{label:"\u90AE\u7BB1",prop:"email"},{default:a(()=>[e(i,{modelValue:l(s).email,"onUpdate:modelValue":t[5]||(t[5]=u=>l(s).email=u),placeholder:"\u8BF7\u8F93\u5165\u90AE\u7BB1",class:"w-80!"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),l(p)?K("",!0):(k(),E("div",b,[e(n,null,{default:a(()=>[e(r,{span:12},{default:a(()=>[e(o,{label:"\u72B6\u6001",prop:"status"},{default:a(()=>[e(z,{modelValue:l(s).status,"onUpdate:modelValue":t[6]||(t[6]=u=>l(s).status=u)},{default:a(()=>[e(w,{label:"\u505C\u7528",value:0},{default:a(()=>[_("\u505C\u7528")]),_:1}),e(w,{label:"\u5728\u7528",value:1},{default:a(()=>[_("\u5728\u7528")]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(r,{span:12},{default:a(()=>[e(o,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:a(()=>[e(y,{modelValue:l(s).createTime,"onUpdate:modelValue":t[7]||(t[7]=u=>l(s).createTime=u),type:"datetime",format:"YYYY-MM-DD HH:mm",placeholder:"\u9009\u62E9\u65E5\u671F\u65F6\u95F4",class:"w-80!"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(n,null,{default:a(()=>[e(r,{span:12},{default:a(()=>[e(o,{label:"\u6700\u540E\u767B\u5F55\u65F6\u95F4",prop:"brandId"},{default:a(()=>[e(y,{modelValue:l(s).loginDate,"onUpdate:modelValue":t[8]||(t[8]=u=>l(s).loginDate=u),type:"datetime",format:"YYYY-MM-DD HH:mm",placeholder:"\u9009\u62E9\u65E5\u671F\u65F6\u95F4",class:"w-80!"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]))]),_:1},8,["model","rules","disabled","class"])}}}),[["__scopeId","data-v-cc7f139a"]])});export{ie as __tla,x as default};
|