import{i as u,c as d}from"./app-Ba7ZqSpq.js";import{_ as n}from"./app-CVQkwzlf.js";import{_ as i}from"./app-DFulsyXy.js";import{_ as p}from"./app-DWUwCFNm.js";import{D as _}from"./app-ZeVDYyDS.js";import{o as c,c as f,w as r,u as t,b as o,a as s,f as m,g as w,h}from"./app-SC54XQDl.js";import"./app-DnXuoh8P.js";import"./app-CNHjdV6U.js";function x(){u(this),this.password="",this.success=this.$NotifyReloadSuccess("保存成功")}const V=s("td",{class:"title"},"登录用户名 *",-1),g=s("p",{class:"comment"},"只能含有英文、数字或下划线。",-1),y=s("td",null,"登录密码",-1),N={class:"comment"},$={key:0},k=s("td",null,"确认密码",-1),B=s("p",{class:"comment"},"不填表示保留原有密码。",-1),q={__name:"index",setup(C){const e=d(new x);return(b,a)=>(c(),f(i,{action:"$",onSuccess:t(e).success},{default:r(()=>[o(_,null,{default:r(()=>[s("tbody",null,[s("tr",null,[V,s("td",null,[o(n,{name:"username",maxlength:"50",modelValue:t(e).user.username,"onUpdate:modelValue":a[0]||(a[0]=l=>t(e).user.username=l),autofocus:"",class:"w-full"},null,8,["modelValue"]),g])]),s("tr",null,[y,s("td",null,[o(n,{type:"password",name:"password",maxlength:"50",modelValue:t(e).password,"onUpdate:modelValue":a[1]||(a[1]=l=>t(e).password=l),class:"w-full"},null,8,["modelValue"]),s("p",N,[m("不填表示保留原有密码"),t(e).password.length>0&&t(e).complexPassword?(c(),w("span",$,"；不小于6位，只能包含英文字母、数字、下划线")):h("",!0),m("。 ")])])]),s("tr",null,[k,s("td",null,[o(n,{type:"password",name:"password2",maxlength:"50",class:"w-full"}),B])])])]),_:1}),o(p)]),_:1},8,["onSuccess"]))}};export{q as default};
