1 |
- import{d as E,r as _,k as v,K,e as U,o as Y,q as N,w as a,f as e,a as l,m as f,t as k,c as O,O as R,Y as S,h as j,U as G,z as P,E as $,i as F,ag as J,ah as L,ba as Q,x as W,y as X,A as Z,C as ee,__tla as ae}from"./index-2eab2d23.js";import{g as le,__tla as se}from"./index-44a34f60.js";import{d as te}from"./tree-fd3a041e.js";import{u as ue,g as re,a as oe,__tla as de}from"./profile-b4eca64a.js";import{u as me,__tla as ne}from"./useMessage-171aa63e.js";import{_ as pe}from"./_plugin-vue_export-helper-1b428a4d.js";let I,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},I=pe(E({name:"BasicInfo",__name:"BasicInfo",props:{change:{type:Boolean,default:!1}},setup(D,{expose:q}){const g=_([]);v(async()=>{g.value=await le()});const x=D,p=_(!1);K(x,(m,t)=>{p.value=m.change},{deep:!0});const s=_({}),{t:d}=j(),H=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=_(),V=U({pageNo:1,pageSize:10,id:0}),c=async()=>{const m=await re();s.value=m,V.id=247;const t=await oe(V);s.value.member=t.list[0]};return q({init:c,submit:async()=>{const m=l(s.value);await ue(m),H.success("\u4FEE\u6539\u6210\u529F\uFF0C\u91CD\u65B0\u767B\u9646\u540E\u751F\u6548"),await c()}}),v(async()=>{await c()}),(m,t)=>{const i=G,r=P,o=$,n=F,h=J,z=L,T=Q,w=W,A=X,y=Z,C=ee;return Y(),N(C,{ref_key:"formRef",ref:B,model:l(s),rules:l(M),"label-width":"120px",disabled:!l(p),class:S({view:!l(p)})},{default:a(()=>[e(n,null,{default:a(()=>[e(o,{span:12},{default:a(()=>[e(r,{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(o,{span:12},{default:a(()=>[e(r,{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(o,{span:12},{default:a(()=>[e(r,{label:"\u6027\u522B",prop:"sex"},{default:a(()=>[e(z,{modelValue:l(s).sex,"onUpdate:modelValue":t[2]||(t[2]=u=>l(s).sex=u)},{default:a(()=>[e(h,{label:1},{default:a(()=>[f(k(l(d)("profile.user.man")),1)]),_:1}),e(h,{label:2},{default:a(()=>[f(k(l(d)("profile.user.woman")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(o,{span:12},{default:a(()=>[e(r,{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(o,{span:12},{default:a(()=>[e(r,{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(o,{span:12},{default:a(()=>[e(r,{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)?R("",!0):(Y(),O("div",b,[e(n,null,{default:a(()=>[e(o,{span:12},{default:a(()=>[e(r,{label:"\u72B6\u6001",prop:"status"},{default:a(()=>[e(A,{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(()=>[f("\u505C\u7528")]),_:1}),e(w,{label:"\u5728\u7528",value:1},{default:a(()=>[f("\u5728\u7528")]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(o,{span:12},{default:a(()=>[e(r,{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(o,{span:12},{default:a(()=>[e(r,{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-5b344bb5"]])});export{ie as __tla,I as default};
|