niucloud-admin/niucloud/public/admin/assets/personal-9a2a1dec.js
2023-10-23 18:06:31 +08:00

2 lines
2.6 KiB
JavaScript

import{d as w,R as x,r as _,Q as b,f as E,g as a,B as n,u as o,y as r,x as s,e as y}from"./base-06478700.js";/* empty css *//* empty css */import{a as I,E as k}from"./el-form-item-314d006d.js";/* empty css *//* empty css */import{t as m}from"./index-81ed253c.js";import{d as B}from"./common-92a35870.js";import{n as C}from"./index-80fd3793.js";import{a as F}from"./vue-router-d09a2c28.js";import{E as N}from"./index-543fb162.js";import{E as R}from"./index-e10fccde.js";import{v as U}from"./directive-cb2d3366.js";import{_ as D}from"./_plugin-vue_export-helper-c27b6911.js";import"./index-2fcd1254.js";import"./event-10eba222.js";import"./index-adb89d14.js";import"./el-main-9a0960e7.js";import"./index-6b67c4ac.js";import"./el-overlay-42a687c6.js";import"./index-9fe5de95.js";import"./focus-trap-3e826cdc.js";import"./index-f27d6ce0.js";import"./index-818c0ce2.js";/* empty css *//* empty css */import"./el-tooltip-58212670.js";import"./index-b52d0f2a.js";import"./index-b68e8463.js";import"./index-c2f001d3.js";import"./index-2a269c7c.js";import"./index-e4abfaa5.js";import"./index-9ee9102c.js";import"./index-b6a184ba.js";import"./debounce-1db848fd.js";import"./position-c3bcd0be.js";const P={class:"main-container w-full p-5 bg-white"},V={class:"flex justify-between items-center h-[32px] mb-4"},j={class:"text-[20px]"},L=w({__name:"personal",setup(Q){const c=F();let e=x({head_img:"",real_name:"",original_password:"",password:"",password_copy:"",username:""});const d=_(),i=_(!0);(()=>{i.value=!0,C().then(l=>{i.value=!1;let t=l.data;e.head_img=t.head_img,e.real_name=t.real_name,e.original_password=t.original_password,e.password=t.password,e.password_copy=t.password,e.username=t.username}).catch(()=>{i.value=!1})})();const f=()=>{c.push("/user/edit_center")};return(l,t)=>{const u=N,p=I,g=k,h=R,v=U;return b((y(),E("div",P,[a("div",V,[a("span",j,n(o(m)("personal")),1),a("span",{class:"text-[14px] text-[#999] cursor-pointer",onClick:f},n(o(m)("editPersonal")),1)]),r(h,{class:"box-card !border-none",shadow:"never"},{default:s(()=>[r(g,{model:o(e),"label-width":"90px",ref_key:"formRef",ref:d,class:"page-form"},{default:s(()=>[r(p,{label:o(m)("headImg")},{default:s(()=>[r(u,{class:"w-[70px] h-[70px]",src:o(B)(o(e).head_img),fit:"contain"},null,8,["src"])]),_:1},8,["label"]),r(p,{label:o(m)("userName")},{default:s(()=>[a("div",null,n(o(e).username),1)]),_:1},8,["label"]),r(p,{label:o(m)("realName")},{default:s(()=>[a("div",null,n(o(e).real_name),1)]),_:1},8,["label"])]),_:1},8,["model"])]),_:1})])),[[v,i.value]])}}});const be=D(L,[["__scopeId","data-v-9cc1d436"]]);export{be as default};