import{d as c,k as g,D as l,c as e,aU as s,aD as r,aI as f,l as w}from"./index-4c57e493.js";import{F as t}from"./Form-6758fc48.js";import"./useFlexGapSupport-2ff65cc2.js";const h={wrapperCol:{span:24}},v={wrapperCol:{span:24}},I=c({setup(){const i=g(),d=l({loading:!1,loginType:"default"}),a=l({loginName:"",password:"",role:"admin"}),u=l({loginName:[{required:!0,message:"请输入正确的账号",trigger:"change"}],password:[{required:!0,message:"请输入正确的密码",trigger:"change"}]}),{validate:m,validateInfos:n}=t.useForm(a,u);async function p(){m().then(()=>{i.passwordLogin(a)})}return()=>e("div",{class:x},[e("div",{class:"content"},[e("div",{class:"title"},["核辐射卫生应急虚拟仿真训练",e("br",null,null),"后台管理系统"]),e(t,s({class:"py-20px px-30px"},h,{name:"basic"}),{default:()=>[e(t.Item,s({name:"loginName"},n.loginName),{default:()=>[e(r,{placeholder:"请输入账号",value:a.loginName,"onUpdate:value":o=>a.loginName=o,maxlength:30},null)]}),e(t.Item,s({name:"password"},n.password),{default:()=>[e(r.Password,{placeholder:"请输入密码",value:a.password,"onUpdate:value":o=>a.password=o,maxlength:18},null)]}),e(t.Item,s(v,{style:{marginBottom:0}}),{default:()=>[e(f,{htmlType:"submit",block:!0,class:"login_btn",size:"large",loading:d.loading,onClick:p},{default:()=>[w("登录")]})]})]})])])}}),x="p1fwmfaj";export{I as default};