/* empty css                  *//* empty css                     *//* empty css                             *//* empty css                 *//* empty css                  *//* empty css               *//* empty css                  */import{P as v}from"./index-C__Mp2q5.js";/* empty css                                                              *//* empty css                        *//* empty css                    *//* empty css                      */import{d as w,r as h,I as g,c as y,b as e,u as U,w as t,R as k,o as x,a as r,V as E,f as I,e as p,i as N,W as D,X as P,ai as B,a0 as C,_ as R}from"./index-hZHbf6Qq.js";const q={class:"personal-info-container"},F={class:"form-row"},S={class:"form-tip"},T={class:"form-row"},M={class:"form-row"},O={class:"form-row"},W={class:"form-row"},X={class:"form-row single"},j={class:"form-row single"},z={class:"form-row single"},A={class:"form-actions"},G=w({__name:"index",setup(H){const u=h(),o=g({userId:"",phone:"",realName:"",officePhone:"",gender:"",role:"",birthday:"",wechat:"",email:"",department:"",subDepartment:"",address:"",remark:""}),f={realName:[{required:!0,message:"请输入真实姓名",trigger:"blur"}],phone:[{required:!0,message:"请输入手机号码",trigger:"blur"}]},_=async()=>{var l;await((l=u.value)==null?void 0:l.validate())&&C.success("保存成功")};return(V,l)=>{const s=I,d=E,i=N,n=P,m=D,b=B,c=k;return x(),y("div",q,[e(U(v),{title:"个人信息"}),e(c,{ref_key:"formRef",ref:u,model:o,rules:f,"label-position":"top",class:"info-form"},{default:t(()=>[r("div",F,[e(d,{label:"用户ID",prop:"userId"},{default:t(()=>[e(s,{modelValue:o.userId,"onUpdate:modelValue":l[0]||(l[0]=a=>o.userId=a),placeholder:"请输入"},null,8,["modelValue"])]),_:1}),e(d,{label:"手机号码",prop:"phone"},{default:t(()=>[e(s,{modelValue:o.phone,"onUpdate:modelValue":l[1]||(l[1]=a=>o.phone=a),placeholder:"请输入"},null,8,["modelValue"]),r("div",S,[l[14]||(l[14]=p("手机号码用于登录账号、重置密码或其他安全认证 ",-1)),e(i,{type:"danger",link:""},{default:t(()=>[...l[13]||(l[13]=[p("更换手机号",-1)])]),_:1})])]),_:1})]),r("div",T,[e(d,{label:"真实姓名",prop:"realName"},{default:t(()=>[e(s,{modelValue:o.realName,"onUpdate:modelValue":l[2]||(l[2]=a=>o.realName=a),placeholder:"请输入"},null,8,["modelValue"])]),_:1}),e(d,{label:"办公电话",prop:"officePhone"},{default:t(()=>[e(s,{modelValue:o.officePhone,"onUpdate:modelValue":l[3]||(l[3]=a=>o.officePhone=a),placeholder:"请输入"},null,8,["modelValue"])]),_:1})]),r("div",M,[e(d,{label:"性别",prop:"gender"},{default:t(()=>[e(m,{modelValue:o.gender,"onUpdate:modelValue":l[4]||(l[4]=a=>o.gender=a),placeholder:"请选择",style:{width:"100%"}},{default:t(()=>[e(n,{label:"男",value:"male"}),e(n,{label:"女",value:"female"})]),_:1},8,["modelValue"])]),_:1}),e(d,{label:"角色",prop:"role"},{default:t(()=>[e(s,{modelValue:o.role,"onUpdate:modelValue":l[5]||(l[5]=a=>o.role=a),placeholder:"请输入"},null,8,["modelValue"])]),_:1})]),r("div",O,[e(d,{label:"生日",prop:"birthday"},{default:t(()=>[e(b,{modelValue:o.birthday,"onUpdate:modelValue":l[6]||(l[6]=a=>o.birthday=a),type:"date",placeholder:"请选择日期",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),e(d,{label:"微信号",prop:"wechat"},{default:t(()=>[e(s,{modelValue:o.wechat,"onUpdate:modelValue":l[7]||(l[7]=a=>o.wechat=a),placeholder:"请输入"},null,8,["modelValue"])]),_:1})]),r("div",W,[e(d,{label:"邮箱",prop:"email"},{default:t(()=>[e(s,{modelValue:o.email,"onUpdate:modelValue":l[8]||(l[8]=a=>o.email=a),placeholder:"请输入"},null,8,["modelValue"])]),_:1}),e(d,{label:"所属部门",prop:"department"},{default:t(()=>[e(m,{modelValue:o.department,"onUpdate:modelValue":l[9]||(l[9]=a=>o.department=a),placeholder:"请选择",style:{width:"100%"}},{default:t(()=>[e(n,{label:"技术部",value:"tech"}),e(n,{label:"销售部",value:"sales"}),e(n,{label:"财务部",value:"finance"})]),_:1},8,["modelValue"])]),_:1})]),r("div",X,[e(d,{label:"所属部门",prop:"subDepartment"},{default:t(()=>[e(m,{modelValue:o.subDepartment,"onUpdate:modelValue":l[10]||(l[10]=a=>o.subDepartment=a),placeholder:"请选择",style:{width:"100%"}},{default:t(()=>[e(n,{label:"研发组",value:"dev"}),e(n,{label:"测试组",value:"test"})]),_:1},8,["modelValue"])]),_:1})]),r("div",j,[e(d,{label:"详细地址",prop:"address"},{default:t(()=>[e(s,{modelValue:o.address,"onUpdate:modelValue":l[11]||(l[11]=a=>o.address=a),placeholder:"请输入",maxlength:"50","show-word-limit":""},null,8,["modelValue"])]),_:1})]),r("div",z,[e(d,{label:"备注",prop:"remark"},{default:t(()=>[e(s,{modelValue:o.remark,"onUpdate:modelValue":l[12]||(l[12]=a=>o.remark=a),type:"textarea",rows:3,placeholder:"请输入",maxlength:"50","show-word-limit":""},null,8,["modelValue"])]),_:1})]),r("div",A,[e(i,{type:"danger",onClick:_},{default:t(()=>[...l[15]||(l[15]=[p("保存",-1)])]),_:1})])]),_:1},8,["model"])])}}}),re=R(G,[["__scopeId","data-v-f7c3e850"]]);export{re as default};
