From b652039cbcedc8cbed973736637ac4fe9c720b95 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=A7=A6=E8=8B=B1=E6=9D=B0?= <327782001@qq.com>
Date: Sat, 7 Oct 2023 16:14:47 +0800
Subject: [PATCH] =?UTF-8?q?=E6=95=B4=E7=90=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/menus/MyAlgorithmic.vue | 28 ++++++++++++++++--------
src/components/subcomponents/MyAside.vue | 12 +++++-----
2 files changed, 25 insertions(+), 15 deletions(-)
diff --git a/src/components/menus/MyAlgorithmic.vue b/src/components/menus/MyAlgorithmic.vue
index 68fd8e7..8c753fb 100644
--- a/src/components/menus/MyAlgorithmic.vue
+++ b/src/components/menus/MyAlgorithmic.vue
@@ -9,10 +9,10 @@
-
+
-
+
@@ -21,7 +21,7 @@
-
+
@@ -52,7 +52,7 @@
{{ randomAlgorithmic.questionName }}
- 力扣号
+ 力扣题号
{{ randomAlgorithmic.leetcodeNumber }}
@@ -92,10 +92,10 @@
-
+
-
+
{{ scope.row.leetcodeLink }}
@@ -116,10 +116,10 @@
-
+
-
+
@@ -128,7 +128,7 @@
-
+
@@ -181,6 +181,7 @@ export default {
questionName: '',
},
options: [],
+ allOptions: [],
questionType: 0,
// 新增的内容
dialogFormVisible: false,
@@ -213,6 +214,8 @@ export default {
created() {
//获取问题类型的枚举
this.getQuestionType()
+ //获取问题类型的枚举
+ this.getAllQuestionType()
//获取问题列表
this.interviewPage()
},
@@ -357,6 +360,13 @@ export default {
}
},
+ async getAllQuestionType() {
+ const { data: res } = await axios.get('http://localhost:8888/algorithmicProblem/allQuestionType', { params: {} })
+ if (res.code === 200) {
+ this.allOptions = res.result
+ }
+ },
+
async interviewPage() {
this.loading = true
const { data: res } = await axios.get('http://localhost:8888/algorithmicProblem/page', {
diff --git a/src/components/subcomponents/MyAside.vue b/src/components/subcomponents/MyAside.vue
index d2a9099..780e964 100644
--- a/src/components/subcomponents/MyAside.vue
+++ b/src/components/subcomponents/MyAside.vue
@@ -6,6 +6,12 @@
面试题管理
+
+
+
+ 算法题管理
+
+
@@ -24,12 +30,6 @@
用户管理
-
-
-
- 算法题管理
-
-
--
GitLab