import{r as s}from"./database.js?v=20260328163632";import{B as e}from"./index85.js?v=20260328163632";import{l as a,K as r,N as l,t as o,x as t}from"./utils-lib.js?v=20260328163632";import{u as i}from"./store.js?v=20260328163632";import{k as u,r as p,O as d,V as m,_ as n,Y as c}from"./base-lib.js?v=20260328163632";import"./naive-ui.js?v=20260328163632";import"./__commonjsHelpers__.js?v=20260328163632";import"./env-lib.js?v=20260328163632";const v=u({__name:"index",setup(u,{expose:v}){const{rowData:w,refreshTableList:b}=i(),f=p({label:a("用户名"),children:[{type:"input",key:"username",attrs:{class:"!w-360px",disabled:!0}}]}),j=p({label:a("密码"),ruleKey:"password",rules:[r({message:a("请输入密码"),trigger:["blur","input"]})],children:[{type:"custom",key:"password",render:()=>d(e,{width:"320px",icon:"el-refresh",modelValue:_.value.password,"onUpdate:modelValue":s=>_.value.password=s,placeholder:a("请输入密码"),onIconClick:()=>_.value.password=l(16)},null)}]}),x=p({formAttrs:{labelWidth:"90px"},formItems:[f.value,j.value]}),[h,_,g]=o(x);return Object.assign(_.value,{username:w.value.username,password:w.value.password}),v({onConfirm:async()=>{await g.value.validate();return(await t({loading:a("正在修改密码，请稍候..."),request:s({id:w.value.id,password:_.value.password}),message:!0,success:()=>{b()}})).status}}),(s,e)=>(m(),n(c(h),{class:"p-20px"}))}});export{v as default};
