From 797c99fd1e5f2ff9b2300134e9f6c71e3c421e9b Mon Sep 17 00:00:00 2001 From: xy <2115269706@qq.com> Date: Wed, 26 Mar 2025 09:16:06 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E7=9F=A5=E8=AF=86=E7=82=B9=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E5=8F=B3=E9=94=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/user.ts | 5 +++++ src/layout/knowledgePage.vue | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/api/user.ts b/src/api/user.ts index 7381d99..0b83cd4 100644 --- a/src/api/user.ts +++ b/src/api/user.ts @@ -40,6 +40,11 @@ export const getKnowledgeService = () => { }); }; +// 下一个知识点给后台 +export const knowledgeCheckService = (id) => { + return request.get(`/pointrecords/xnPointRecords/check?id=${id}`) +} + //修改密码 export const userChangePasswordService = (params) => { return request.post('/xnRecords/changeStuPassword', params) diff --git a/src/layout/knowledgePage.vue b/src/layout/knowledgePage.vue index 83364d5..fb2c847 100644 --- a/src/layout/knowledgePage.vue +++ b/src/layout/knowledgePage.vue @@ -29,7 +29,7 @@ import settingStore from "@/store/modules/setting"; import { ref, computed, onMounted, } from "vue" import { ElMessage } from 'element-plus' -import { getKnowledgeService } from '@/api/user' +import { getKnowledgeService, knowledgeCheckService } from '@/api/user' import { useRouter } from 'vue-router'; const router = useRouter() const setting = settingStore(); @@ -47,8 +47,8 @@ const SubLeft = () => { const index = ref(0) //右箭头 // const activeData = ref({}) -const SubRight = () => { - +const SubRight = async() => { + await knowledgeCheckService(Knowledges.value[currentKnowledgeIndex.value].id) Knowledges.value[currentKnowledgeIndex.value].isStudy = true if (currentKnowledgeIndex.value + 1 < Knowledges.value.length) { currentKnowledgeIndex.value++; // 更新到下一题 From 370ed0ab1bc6c7d572518000eac4126ea192a3d6 Mon Sep 17 00:00:00 2001 From: JayChou Date: Wed, 26 Mar 2025 17:38:42 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=AE=9E=E9=AA=8C?= =?UTF-8?q?=E5=AE=8C=E6=88=90=E5=90=8E=E5=AE=9E=E9=AA=8C=E4=B8=8D=E5=8F=AF?= =?UTF-8?q?=E6=93=8D=E4=BD=9C=20=E5=AF=B9=E6=8E=A5=E6=8F=90=E4=BA=A4?= =?UTF-8?q?=E6=9F=A5=E7=9C=8B=E5=88=86=E6=95=B0=20=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E9=AA=8C=E8=AF=81=E7=A0=81=E5=A4=B1=E8=B4=A5?= =?UTF-8?q?=E6=AD=A5=E5=88=B7=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/index.ts | 6 + src/layout/index.vue | 49 +++- src/layout/loginPage.vue | 378 ++++++++++++++++++--------- src/layout/studyPage.vue | 104 +++++++- src/store/modules/setting.ts | 1 + src/store/modules/user.ts | 25 +- src/views/compiler/index.vue | 6 +- src/views/designRoute/index.vue | 2 + src/views/experimentalData/index.vue | 2 + src/views/largeDataScreen/home.vue | 81 ++++-- src/views/program/index.vue | 17 +- 11 files changed, 490 insertions(+), 181 deletions(-) diff --git a/src/api/index.ts b/src/api/index.ts index 185b91c..0ef05db 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -81,4 +81,10 @@ export const submitExperiment = (data:any) => { method:"POST", data }) +} +// 查看得分 +export const getScore = () => { + return request({ + url:'/xnRecords/getExperimentaInfo' + }) } \ No newline at end of file diff --git a/src/layout/index.vue b/src/layout/index.vue index 0501961..0ffe8b3 100644 --- a/src/layout/index.vue +++ b/src/layout/index.vue @@ -4,7 +4,7 @@

{{ user.token ? "已登录" : "登录/注册" }}

- +
{{ setting.title }}
@@ -13,13 +13,19 @@ -
+
+ 当前实验步骤为第{{ setting.activeStepIndex }}步,实验名称为:{{ + stepData[setting.activeStepIndex] + }},共11步 +
+
全部实验完成
+ diff --git a/src/layout/loginPage.vue b/src/layout/loginPage.vue index c71ab96..11281ef 100644 --- a/src/layout/loginPage.vue +++ b/src/layout/loginPage.vue @@ -8,56 +8,94 @@
- + -
-
+
+
-
用户账号
+
+ 用户账号 +
- +
-
-
+
+
-
用户密码
+
+ 用户密码 +
- +
-
-
+
+
-
确认密码
+
+ 确认密码 +
- +
-
+
@@ -66,14 +104,21 @@
姓名
- +
-
-
+
+
@@ -82,15 +127,23 @@
班级
- +
-
-
+
+
@@ -99,39 +152,60 @@
学号
- +
-
-
+
+
-
手机号
+
+ 手机号 +
- +
-
-
+
+
-
验证码
+
+ 验证码 +
- +
@@ -140,12 +214,32 @@
- + 注册 - + 返回到登录页 @@ -156,21 +250,37 @@ --> - - -
-
+ + +
+
-
用户名
+
+ 用户名 +
- +
@@ -190,9 +300,12 @@
--> - -
-
+ +
+
@@ -201,24 +314,37 @@
密码
- +
- -
-
+ +
+
-
验证码
+
+ 验证码 +
- +
@@ -235,10 +361,22 @@
--> - 登录 - 去注册 + 登录 + 去注册 @@ -252,14 +390,21 @@