BasicInfo-9a63d26c.js 3.6 KB

1
  1. import{_ as B,__tla as U}from"./XButton-88921646.js";import{_ as q,__tla as R}from"./Form-7db80151.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 e,g as D,F as E,n as H,ag as M,ah as N,_ as S,__tla as W}from"./index-afaf388d.js";import{u as X,g as $,__tla as A}from"./profile-e931bcb7.js";import{u as G,__tla as J}from"./useMessage-a290df31.js";import{__tla as K}from"./el-virtual-list-b9de369f.js";import{__tla as L}from"./el-tree-select-190eecb6.js";import{__tla as O}from"./el-time-select-a42090a8.js";import{__tla as Q}from"./InputPassword-424f0833.js";import{__tla as T}from"./Editor-7453cc9a.js";import{__tla as Y}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-6a6e9523.js";import{__tla as Z}from"./index-6149057d.js";import{__tla as tt}from"./el-image-viewer-9330e340.js";import{__tla as et}from"./UploadImg-f909692d.js";import{__tla as at}from"./UploadImgs-a15847a2.js";import{__tla as rt}from"./UploadImgs.vue_vue_type_style_index_0_scoped_9d666400_lang-e548deac.js";import{__tla as lt}from"./UploadFile-20e8f946.js";import{__tla as _t}from"./UploadFile.vue_vue_type_style_index_0_scoped_436eca1b_lang-f19c84d5.js";let g,st=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{}})()]).then(async()=>{let i;i={style:{"text-align":"center"}},g=S(j({name:"BasicInfo",__name:"BasicInfo",setup(ot){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=C(),m=async()=>{var a;const n=await $();(a=e(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: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{st as __tla,g as default};