BasicInfo-977c03dc.js 3.4 KB

1
  1. import{_ as B,__tla as U}from"./XButton-9933c2d2.js";import{_ as q,__tla as R}from"./Form-1c876ba3.js";import{d as j,f as y,r as C,B as F,o as P,c as z,i as r,w as o,j as d,t as h,a as t,g as D,F as E,n as H,ag as M,ah as N,_ as S,__tla as W}from"./index-af173888.js";import{u as X,g as $,__tla as A}from"./profile-2c7c21de.js";import{u as G,__tla as J}from"./useMessage-170c1b43.js";import{__tla as K}from"./el-virtual-list-de299d42.js";import{__tla as L}from"./el-tree-select-cd58540b.js";import{__tla as O}from"./el-time-select-6302a345.js";import{__tla as Q}from"./InputPassword-dc4d37fb.js";import{__tla as T}from"./Editor-c9f3a63b.js";import{__tla as Y}from"./UploadImg-adf73e38.js";import{__tla as Z}from"./index-4db4ba8b.js";import{__tla as ee}from"./el-image-viewer-0d82b94c.js";import{__tla as te}from"./UploadImgs-8cdc0566.js";import{__tla as ae}from"./UploadImgs.vue_vue_type_style_index_0_scoped_9d666400_lang-9154d28f.js";import{__tla as re}from"./UploadFile-be0ca317.js";import{__tla as le}from"./UploadFile.vue_vue_type_style_index_0_scoped_436eca1b_lang-d9f75960.js";let g,_e=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 ee}catch{}})(),(()=>{try{return te}catch{}})(),(()=>{try{return ae}catch{}})(),(()=>{try{return re}catch{}})(),(()=>{try{return le}catch{}})()]).then(async()=>{let i;i={style:{"text-align":"center"}},g=S(j({name:"BasicInfo",__name:"BasicInfo",setup(se){const{t:e}=H(),b=G(),w=y({nickname:[{required:!0,message:e("profile.rules.nickname"),trigger:"blur"}],email:[{required:!0,message:e("profile.rules.mail"),trigger:"blur"},{type:"email",message:e("profile.rules.truemail"),trigger:["blur","change"]}],mobile:[{required:!0,message:e("profile.rules.phone"),trigger:"blur"},{pattern:/^1[3|4|5|6|7|8|9][0-9]\d{8}$/,message:e("profile.rules.truephone"),trigger:"blur"}]}),k=y([{field:"nickname",label:e("profile.user.nickname"),component:"Input"},{field:"mobile",label:e("profile.user.mobile"),component:"Input"},{field:"email",label:e("profile.user.email"),component:"Input"},{field:"sex",label:e("profile.user.sex"),component:"InputNumber",value:0}]),l=C(),m=async()=>{var a;const n=await $();(a=t(l))==null||a.setValues(n)};return F(async()=>{await m()}),(n,a)=>{const c=M,x=N,v=q,u=B;return P(),z(E,null,[r(v,{ref_key:"formRef",ref:l,labelWidth:200,rules:t(w),schema:t(k)},{sex:o(_=>[r(x,{modelValue:_.sex,"onUpdate:modelValue":s=>_.sex=s},{default:o(()=>[r(c,{label:1},{default:o(()=>[d(h(t(e)("profile.user.man")),1)]),_:1}),r(c,{label:2},{default:o(()=>[d(h(t(e)("profile.user.woman")),1)]),_:1})]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:1},8,["rules","schema"]),D("div",i,[r(u,{title:t(e)("common.save"),type:"primary",onClick:a[0]||(a[0]=_=>(()=>{var f;const s=(f=t(l))==null?void 0:f.getElFormRef();s&&s.validate(async I=>{var p;if(I){const V=(p=t(l))==null?void 0:p.formModel;await X(V),b.success(e("common.updateSuccess")),await m()}})})())},null,8,["title"]),r(u,{title:t(e)("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{_e as __tla,g as default};