1 |
- import{d as g,k as v,aa as n,c as e,ab as s,ac as d,l as r,ad as w}from"./index-c0ea9eee.js";import{F as t}from"./Form-e6eeda59.js";import{R as u}from"./Col-c05b789a.js";import"./useFlexGapSupport-20a12060.js";import"./useSize-7089b0c3.js";const x={wrapperCol:{span:24}},h={wrapperCol:{span:24}},C=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:y},[e("div",{class:"content"},[e("div",{class:"title"},["核辐射卫生应急虚拟仿真训练",e("br",null,null),"后台管理系统"]),e(t,s({class:"py-20px px-30px"},x,{name:"basic"}),{default:()=>[e(t.Item,s({name:"loginName"},o.loginName),{default:()=>[e(d,{placeholder:"请输入账号",value:a.loginName,"onUpdate:value":l=>a.loginName=l,maxlength:30},null)]}),e(t.Item,s({name:"password"},o.password),{default:()=>[e(d.Password,{placeholder:"请输入密码",value:a.password,"onUpdate:value":l=>a.password=l,maxlength:18},null)]}),e(t.Item,s({name:"role"},o.role),{default:()=>[e(u.Group,{class:"flex w-full",value:a.role,"onUpdate:value":l=>a.role=l},{default:()=>[e(u,{class:"flex-1 justify-center",value:"student"},{default:()=>[r("学员")]}),e(u,{class:"flex-1 justify-center",value:"admin"},{default:()=>[r("管理员")]})]})]}),e(t.Item,s(h,{style:{marginBottom:0}}),{default:()=>[e(w,{htmlType:"submit",block:!0,class:"login_btn",size:"large",loading:m.loading,onClick:f},{default:()=>[r("登录")]})]})]})])])}}),y="p1fwmfaj";export{C as default};
|