mirror of
https://gitee.com/niucloud-team/niucloud-admin.git
synced 2026-01-04 12:18:14 +00:00
2 lines
3.9 KiB
JavaScript
2 lines
3.9 KiB
JavaScript
import{d as E,R as I,r as v,Q as U,f as F,g as d,B as _,u as t,y as r,x as l,e as N,A as b}from"./base-06478700.js";/* empty css *//* empty css *//* empty css */import{a as k,E as B}from"./el-form-item-314d006d.js";/* empty css */import{_ as C}from"./index-d312949b.js";import{t as i}from"./index-e5b4f072.js";import{n as R,s as j}from"./index-0d58768e.js";import{a as D}from"./vue-router-d09a2c28.js";import{E as P}from"./index-b68e8463.js";import{E as $}from"./index-c2f001d3.js";import{E as A}from"./index-e10fccde.js";import{v as L}from"./directive-cb2d3366.js";import{_ as Q}from"./_plugin-vue_export-helper-c27b6911.js";import"./index-2fcd1254.js";import"./event-10eba222.js";/* empty css */import"./index.vue_vue_type_style_index_0_lang-53d85138.js";import"./el-overlay-42a687c6.js";import"./index-9fe5de95.js";import"./focus-trap-3e826cdc.js";import"./index-f27d6ce0.js";import"./index-818c0ce2.js";import"./attachment-27789be1.js";/* empty css *//* empty css *//* empty css */import"./el-tooltip-58212670.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index-b52d0f2a.js";import"./index-a0c6fc63.js";import"./index-2a269c7c.js";import"./common-92a35870.js";import"./index-01f6e375.js";import"./validator-6e9db238.js";import"./index-e4abfaa5.js";import"./index-41a974fa.js";import"./index-c17093ae.js";import"./index-543fb162.js";import"./index-b6a184ba.js";import"./debounce-1db848fd.js";import"./position-c3bcd0be.js";import"./index-b56195b5.js";import"./index-40e21e72.js";import"./isEqual-42d4b10f.js";import"./index-137757c0.js";import"./index-35e821cc.js";import"./index-34d55b7e.js";import"./strings-fe930bc4.js";import"./index-5a0d60aa.js";import"./index-adb89d14.js";import"./el-main-9a0960e7.js";import"./index-6b67c4ac.js";import"./index-9ee9102c.js";const S={class:"main-container w-full p-5 bg-white"},T={class:"flex justify-between items-center h-[32px] mb-4"},q={class:"text-[20px]"},z={class:"flex justify-center mt-[50px]"},G=E({__name:"edit_personal",setup(H){const g=D();let o=I({head_img:"",real_name:"",username:""});const n=v(),a=v(!0);(()=>{a.value=!0,R().then(s=>{a.value=!1;let e=s.data;o.head_img=e.head_img,o.real_name=e.real_name,o.username=e.username}).catch(()=>{a.value=!1})})();const h=s=>{a.value||!s||s.validate(e=>{if(e)a.value=!0,j(o).then(p=>{a.value=!1}).catch(p=>{a.value=!1});else return!1})},x=()=>{g.push("/user/center")};return(s,e)=>{const p=C,u=k,c=P,y=B,f=$,V=A,w=L;return U((N(),F("div",S,[d("div",T,[d("span",q,_(t(i)("editPersonal")),1)]),r(V,{class:"box-card !border-none",shadow:"never"},{default:l(()=>[r(y,{model:t(o),"label-width":"90px",ref_key:"formRef",ref:n,rules:s.formRules,class:"page-form"},{default:l(()=>[r(u,{label:t(i)("headImg")},{default:l(()=>[r(p,{modelValue:t(o).head_img,"onUpdate:modelValue":e[0]||(e[0]=m=>t(o).head_img=m),limit:1},null,8,["modelValue"])]),_:1},8,["label"]),r(u,{label:t(i)("userName")},{default:l(()=>[r(c,{modelValue:t(o).username,"onUpdate:modelValue":e[1]||(e[1]=m=>t(o).username=m),clearable:"",class:"input-width",readonly:!0},null,8,["modelValue"])]),_:1},8,["label"]),r(u,{label:t(i)("realName")},{default:l(()=>[r(c,{modelValue:t(o).real_name,"onUpdate:modelValue":e[2]||(e[2]=m=>t(o).real_name=m),placeholder:t(i)("realNamePlaceholder"),clearable:"",class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1},8,["model","rules"]),d("div",z,[r(f,{type:"primary",onClick:e[3]||(e[3]=m=>h(n.value))},{default:l(()=>[b(_(t(i)("save")),1)]),_:1}),r(f,{type:"primary",onClick:e[4]||(e[4]=m=>x(n.value))},{default:l(()=>[b(_(t(i)("cancel")),1)]),_:1})])]),_:1})])),[[w,a.value]])}}});const et=Q(G,[["__scopeId","data-v-d0b410cb"]]);export{et as default};
|