import{d as g,k as v,aa as n,c as e,ab as l,ac as u,l as r,ad as w}from"./index-f2d0df5d.js";import{F as t}from"./Form-9887752b.js";import{R as x,a as d}from"./Col-c02acc8f.js";import"./useFlexGapSupport-0c376623.js";import"./useSize-0abc4fd3.js";const h={wrapperCol:{span:24}},y={wrapperCol:{span:24}},F=g({setup(){const i=v(),m=n({loading:!1,loginType:"default"}),a=n({loginName:"",password:"",role:"admin"}),p=n({loginName:[{required:!0,message:"请输入正确的账号",trigger:"change"}],password:[{required:!0,message:"请输入正确的密码",trigger:"change"}]}),{validate:c,validateInfos:o}=t.useForm(a,p);async function f(){c().then(()=>{i.passwordLogin(a)})}return()=>e("div",{class:N},[e("div",{class:"content"},[e("div",{class:"title"},["处理音频电路信号失真虚拟仿真实训教学",e("br",null,null),"后台管理系统"]),e(t,l({class:"py-20px px-30px"},h,{name:"basic"}),{default:()=>[e(t.Item,l({name:"loginName"},o.loginName),{default:()=>[e(u,{placeholder:"请输入账号",value:a.loginName,"onUpdate:value":s=>a.loginName=s,maxlength:30},null)]}),e(t.Item,l({name:"password"},o.password),{default:()=>[e(u.Password,{placeholder:"请输入密码",value:a.password,"onUpdate:value":s=>a.password=s,maxlength:18},null)]}),e(t.Item,l({name:"role"},o.role),{default:()=>[e(x,{class:"flex  w-full",value:a.role,"onUpdate:value":s=>a.role=s},{default:()=>[e(d,{class:"flex-1 justify-center",value:"student"},{default:()=>[r("学员")]}),e(d,{class:"flex-1 justify-center",value:"admin"},{default:()=>[r("管理员")]})]})]}),e(t.Item,l(y,{style:{marginBottom:0}}),{default:()=>[e(w,{htmlType:"submit",block:!0,class:"login_btn",size:"large",loading:m.loading,onClick:f},{default:()=>[r("登录")]})]})]})])])}}),N="p1fwmfaj";export{F as default};
