From 0033d138f322bf6fea2637f1c72b01cf14b009ec Mon Sep 17 00:00:00 2001
From: xy <2115269706@qq.com>
Date: Fri, 21 Mar 2025 18:01:04 +0800
Subject: [PATCH] =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E4=B8=AD=E5=BF=83?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/layout/spacePage.vue | 134 ++++++++++++++++++++++++++++++++++++++-
1 file changed, 132 insertions(+), 2 deletions(-)
diff --git a/src/layout/spacePage.vue b/src/layout/spacePage.vue
index fea131f..a42c19a 100644
--- a/src/layout/spacePage.vue
+++ b/src/layout/spacePage.vue
@@ -17,8 +17,73 @@
-
-
+
+
+
+
+ 用户账号
+
+
+
+
+
+
+
+
+
+
+ 班级
+
+
+
+
+
+
+
+
+
@@ -43,6 +108,7 @@ const loginFn = () => {
const handleHomeClick = () => {
// 处理首页按钮点击逻辑,如路由跳转
console.log('首页按钮被点击');
+ router.push('/studyPage')
};
const handleRecordClick = () => {
console.log('学习/成绩记录按钮被点击');
@@ -50,6 +116,51 @@ const handleRecordClick = () => {
const handlePasswordClick = () => {
console.log('密码管理按钮被点击');
};
+
+const formRef = ref();
+const formModel = ref({
+ username: "",
+ name: "",
+ clssid: '',
+ studentNumb: "",
+ mobile: '',
+ score: ''
+});
+const rules = {
+ username: [
+ { required: true, message: "请输入用户名", trigger: "blur" },
+ {
+ min: 5,
+ max: 30,
+ message: "用户名长度最小五位最大三十位",
+ trigger: ["change", "blur"],
+ },
+ ],
+ studentNumb: [
+ { required: true, message: "请输入学号", trigger: "blur" },
+ {
+ min: 5,
+ max: 11,
+ message: "学号长度最小五位最大十一位",
+ trigger: ["change", "blur"],
+ },
+ ],
+ name: [{ required: true, message: "请输入姓名", trigger: "blur" }],
+ clssid: [
+ { required: true, message: "请选择所属班级", trigger: "blur" },
+ ],
+ mobile: [
+ { required: true, message: "请输入手机号", trigger: "blur" },
+ {
+ pattern: /^1[3-9]\d{9}$/,
+ message: "手机号格式不正确",
+ trigger: ["change", "blur"],
+ },
+ ],
+ score:[
+ { required: true, message: "成绩", trigger: "blur" },
+ ]
+};