<template>
  <div class="h-full flex justify-center items-center">
    <el-card class="w-1/4">
      <template #header>
        <h2 class="text-center">冷链验证报告生成系统</h2>
      </template>
      <el-form :model="form" size="large">
        <el-form-item>
          <el-input :prefix-icon="User" v-model="form.username" />
        </el-form-item>
        <el-form-item>
          <el-input
            :prefix-icon="Lock"
            v-model="form.password"
            type="password"
            show-password
          />
        </el-form-item>
        <el-form-item>
          <el-select v-model="form.region" class="w-full">
            <el-option label="管理员登录" value="0" />
            <el-option label="用户登录" value="1" />
          </el-select>
        </el-form-item>
        <el-form-item>
          <el-button type="primary" @click="onSubmit" class="w-full"
            >登录</el-button
          >
        </el-form-item>
      </el-form>
    </el-card>
  </div>
</template>

<script setup>
import { User, Lock } from "@element-plus/icons-vue";

const form = reactive({
  username: "",
  password: "",
  region: "0",
});

const onSubmit = () => {};
</script>

<style scoped></style>
