niucloud-admin/niucloud/public/admin/assets/edit_personal-f9d017a8.js
2023-10-26 17:26:46 +08:00

2 lines
3.9 KiB
JavaScript

import"./base-0e92f4db.js";/* empty css *//* empty css *//* empty css */import{a as V,E as w}from"./el-form-item-c2dd2ffe.js";/* empty css */import{_ as F}from"./index-1bbf37b4.js";import{t as m}from"./index-8f29cb04.js";import{j as N,s as U}from"./index-9033603c.js";import{a as k}from"./vue-router-8b032575.js";import{E as C}from"./index-8cefa3ab.js";import{E as B}from"./index-e09a20f5.js";import{E as R}from"./index-2668a8ea.js";import{v as j}from"./directive-c6f70b8e.js";import{d as D,M as L,r as f,L as P,e as $,f as s,x as n,u as t,q as r,p as i,b as q,v}from"./runtime-core.esm-bundler-67034826.js";import{_ as M}from"./_plugin-vue_export-helper-c27b6911.js";import"./index-72686045.js";import"./event-a537c4cb.js";/* empty css */import"./index.vue_vue_type_style_index_0_lang-89cfc1da.js";import"./el-overlay-3eff2fc5.js";import"./index-defed8ff.js";import"./focus-trap-83769a43.js";import"./index-6cae7119.js";import"./index-d87ae4a2.js";import"./attachment-09cc7be6.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./index-e9d9b1a1.js";import"./index-156f2c07.js";import"./index-ef31373f.js";import"./common-46715e7e.js";import"./index-a31d0a55.js";import"./aria-adfa05c5.js";import"./validator-9409f909.js";import"./index-de22cd40.js";import"./index-434046cb.js";import"./index-d23c70b3.js";import"./index-2b1dc445.js";import"./index-c7745eb3.js";import"./debounce-f6ba9d12.js";import"./position-c2e84b2a.js";import"./index-0caa5b89.js";import"./index-fd563016.js";import"./isEqual-97c7f2d5.js";import"./index-95382bd9.js";import"./index-757074f4.js";import"./index-66750d66.js";import"./strings-1130dd70.js";import"./index-c6aa1547.js";import"./index-81f2aa1e.js";import"./el-main-7a89c415.js";import"./index-ebd2990f.js";const S={class:"main-container w-full px-[64px] pt-[64px] bg-white"},T={class:"flex justify-between items-center h-[32px] mb-4"},z={class:"text-[20px]"},A={class:"flex justify-center mt-[50px]"},G=D({__name:"edit_personal",setup(H){const g=k();let o=L({head_img:"",real_name:"",username:""});const _=f(),a=f(!0);(()=>{a.value=!0,N().then(l=>{a.value=!1;let e=l.data;o.head_img=e.head_img,o.real_name=e.real_name,o.username=e.username}).catch(()=>{a.value=!1})})();const h=l=>{a.value||!l||l.validate(e=>{if(e)a.value=!0,U(o).then(d=>{a.value=!1}).catch(d=>{a.value=!1});else return!1})},x=()=>{g.push("/user/center")};return(l,e)=>{const d=F,u=V,b=C,y=w,c=B,E=R,I=j;return P((q(),$("div",S,[s("div",T,[s("span",z,n(t(m)("editPersonal")),1)]),r(E,{class:"box-card !border-none",shadow:"never"},{default:i(()=>[r(y,{model:t(o),"label-width":"90px",ref_key:"formRef",ref:_,rules:l.formRules,class:"page-form"},{default:i(()=>[r(u,{label:t(m)("headImg")},{default:i(()=>[r(d,{modelValue:t(o).head_img,"onUpdate:modelValue":e[0]||(e[0]=p=>t(o).head_img=p),limit:1},null,8,["modelValue"])]),_:1},8,["label"]),r(u,{label:t(m)("userName")},{default:i(()=>[s("span",null,n(t(o).username),1)]),_:1},8,["label"]),r(u,{label:t(m)("realName")},{default:i(()=>[r(b,{modelValue:t(o).real_name,"onUpdate:modelValue":e[1]||(e[1]=p=>t(o).real_name=p),placeholder:t(m)("realNamePlaceholder"),clearable:"",class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1},8,["model","rules"]),s("div",A,[r(c,{type:"primary",onClick:e[2]||(e[2]=p=>h(_.value))},{default:i(()=>[v(n(t(m)("save")),1)]),_:1}),r(c,{type:"primary",onClick:e[3]||(e[3]=p=>x(_.value))},{default:i(()=>[v(n(t(m)("cancel")),1)]),_:1})])]),_:1})])),[[I,a.value]])}}});const ot=M(G,[["__scopeId","data-v-461dd785"]]);export{ot as default};