BasicInfo-0859d042.js 3.7 KB

1
  1. import{_ as q,__tla as U}from"./XButton-bca72e5c.js";import{_ as B,__tla as R}from"./Form-03af17d7.js";import{d as C,e as y,r as F,q as P,o as j,c as z,f as r,w as o,y as d,t as h,a as e,g as D,F as E,h as H,ad as M,ae as N,_ as S,__tla as W}from"./index-8dc1e40a.js";import{u as X,g as $,__tla as A}from"./profile-77dac77c.js";import{u as G,__tla as J}from"./useMessage-7a27dd80.js";import{__tla as K}from"./el-virtual-list-7d2f4f55.js";import{__tla as L}from"./el-tree-select-d82790d8.js";import{__tla as O}from"./el-time-select-c3304867.js";import{__tla as Q}from"./InputPassword-edfbc29e.js";import{__tla as T}from"./Editor-78efff00.js";import{__tla as Y}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-703a828c.js";import{__tla as Z}from"./index-519182c1.js";import{__tla as tt}from"./el-image-viewer-3b8905e6.js";import{__tla as et}from"./UploadImg-c2c75279.js";import{__tla as at}from"./UploadImgs-c9e344db.js";import{__tla as rt}from"./UploadImgs.vue_vue_type_style_index_0_scoped_9d666400_lang-c25ae3d0.js";import{__tla as lt}from"./UploadFile-8d93ebfd.js";import{__tla as _t}from"./UploadFile.vue_vue_type_style_index_0_scoped_436eca1b_lang-fa07b40d.js";import{__tla as st}from"./fixed-size-list-1ef224b0.js";let g,ot=Promise.all([(()=>{try{return U}catch{}})(),(()=>{try{return R}catch{}})(),(()=>{try{return W}catch{}})(),(()=>{try{return A}catch{}})(),(()=>{try{return J}catch{}})(),(()=>{try{return K}catch{}})(),(()=>{try{return L}catch{}})(),(()=>{try{return O}catch{}})(),(()=>{try{return Q}catch{}})(),(()=>{try{return T}catch{}})(),(()=>{try{return Y}catch{}})(),(()=>{try{return Z}catch{}})(),(()=>{try{return tt}catch{}})(),(()=>{try{return et}catch{}})(),(()=>{try{return at}catch{}})(),(()=>{try{return rt}catch{}})(),(()=>{try{return lt}catch{}})(),(()=>{try{return _t}catch{}})(),(()=>{try{return st}catch{}})()]).then(async()=>{let i;i={style:{"text-align":"center"}},g=S(C({name:"BasicInfo",__name:"BasicInfo",setup(mt){const{t}=H(),b=G(),w=y({nickname:[{required:!0,message:t("profile.rules.nickname"),trigger:"blur"}],email:[{required:!0,message:t("profile.rules.mail"),trigger:"blur"},{type:"email",message:t("profile.rules.truemail"),trigger:["blur","change"]}],mobile:[{required:!0,message:t("profile.rules.phone"),trigger:"blur"},{pattern:/^1[3|4|5|6|7|8|9][0-9]\d{8}$/,message:t("profile.rules.truephone"),trigger:"blur"}]}),k=y([{field:"nickname",label:t("profile.user.nickname"),component:"Input"},{field:"mobile",label:t("profile.user.mobile"),component:"Input"},{field:"email",label:t("profile.user.email"),component:"Input"},{field:"sex",label:t("profile.user.sex"),component:"InputNumber",value:0}]),l=F(),m=async()=>{var a;const n=await $();(a=e(l))==null||a.setValues(n)};return P(async()=>{await m()}),(n,a)=>{const c=M,x=N,v=B,u=q;return j(),z(E,null,[r(v,{ref_key:"formRef",ref:l,labelWidth:200,rules:e(w),schema:e(k)},{sex:o(_=>[r(x,{modelValue:_.sex,"onUpdate:modelValue":s=>_.sex=s},{default:o(()=>[r(c,{label:1},{default:o(()=>[d(h(e(t)("profile.user.man")),1)]),_:1}),r(c,{label:2},{default:o(()=>[d(h(e(t)("profile.user.woman")),1)]),_:1})]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:1},8,["rules","schema"]),D("div",i,[r(u,{title:e(t)("common.save"),type:"primary",onClick:a[0]||(a[0]=_=>(()=>{var f;const s=(f=e(l))==null?void 0:f.getElFormRef();s&&s.validate(async I=>{var p;if(I){const V=(p=e(l))==null?void 0:p.formModel;await X(V),b.success(t("common.updateSuccess")),await m()}})})())},null,8,["title"]),r(u,{title:e(t)("common.reset"),type:"danger",onClick:a[1]||(a[1]=_=>m())},null,8,["title"])])],64)}}}),[["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/Profile/components/BasicInfo.vue"]])});export{ot as __tla,g as default};