import{M as a,k as l,$ as e}from"./utils-lib.js?v=1761009159";import{c as s,r as t,v as o,x as u,e as d,B as m,y as n,Q as p,ab as r,a9 as c}from"./base-lib.js?v=1761009159";import{changeUserPass as i}from"./database.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";const f={class:"p-16px"},b=s({__name:"user-pwd",props:{compData:{default:()=>{}}},setup(s,{expose:b}){const _=s,{username:V,host:v}=_.compData,x=t(),j=[{content:"此处改密不会同步至 数据库-密码展示界面 请注意更改"}];return b({onConfirm:async l=>{try{const e=await i({..._.compData,password:x.value});await a.request(e),l()}catch(e){}}}),(a,s)=>{const t=l,i=r,b=c,_=e;return o(),u("div",f,[d(b,null,{default:m(()=>[d(i,{label:"用户名"},{default:m(()=>[d(t,{disabled:"",modelValue:n(V),"onUpdate:modelValue":s[0]||(s[0]=a=>p(V)?V.value=a:null)},null,8,["modelValue"])]),_:1}),d(i,{label:"访问权限"},{default:m(()=>[d(t,{disabled:"",modelValue:n(v),"onUpdate:modelValue":s[1]||(s[1]=a=>p(v)?v.value=a:null)},null,8,["modelValue"])]),_:1}),d(i,{label:"新密码"},{default:m(()=>[d(t,{iconType:"refresh",modelValue:n(x),"onUpdate:modelValue":s[2]||(s[2]=a=>p(x)?x.value=a:null)},null,8,["modelValue"])]),_:1})]),_:1}),d(_,{list:j,"list-style":"disc",class:"ml-20px mt-12px"})])}}});export{b as default};
