Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Kwan的解忧杂货铺@新空间代码工作室
vue-kwan-admin
提交
b652039c
V
vue-kwan-admin
项目概览
Kwan的解忧杂货铺@新空间代码工作室
/
vue-kwan-admin
通知
38
Star
6
Fork
3
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vue-kwan-admin
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
b652039c
编写于
10月 07, 2023
作者:
Kwan的解忧杂货铺@新空间代码工作室
🐭
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
整理
上级
6848aaf7
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
25 addition
and
15 deletion
+25
-15
src/components/menus/MyAlgorithmic.vue
src/components/menus/MyAlgorithmic.vue
+19
-9
src/components/subcomponents/MyAside.vue
src/components/subcomponents/MyAside.vue
+6
-6
未找到文件。
src/components/menus/MyAlgorithmic.vue
浏览文件 @
b652039c
...
...
@@ -9,10 +9,10 @@
</el-form-item>
<el-form-item
label=
"问题类型"
:label-width=
"formLabelWidth"
class=
"form-item"
>
<el-select
v-model=
"form.questionType"
placeholder=
"请选择活动区域"
>
<el-option
v-for=
"item in
o
ptions"
:key=
"item.questionType"
:label=
"item.name"
:value=
"item.questionType"
></el-option>
<el-option
v-for=
"item in
allO
ptions"
:key=
"item.questionType"
:label=
"item.name"
:value=
"item.questionType"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"重要程度"
:label-width=
"formLabelWidth"
class=
"form-item"
>
<el-form-item
label=
"重要程度
(1~10)
"
:label-width=
"formLabelWidth"
class=
"form-item"
>
<el-input
v-model=
"form.degreeOfImportance"
autocomplete=
"off"
style=
"width: 100%"
></el-input>
</el-form-item>
<el-form-item
label=
"难易程度"
:label-width=
"formLabelWidth"
class=
"form-item"
>
...
...
@@ -21,7 +21,7 @@
<el-form-item
label=
"难易分数"
:label-width=
"formLabelWidth"
class=
"form-item"
>
<el-input
v-model=
"form.difficultyOfScore"
autocomplete=
"off"
style=
"width: 100%"
></el-input>
</el-form-item>
<el-form-item
label=
"力扣号"
:label-width=
"formLabelWidth"
class=
"form-item"
>
<el-form-item
label=
"力扣
题
号"
:label-width=
"formLabelWidth"
class=
"form-item"
>
<el-input
v-model=
"form.leetcodeNumber"
autocomplete=
"off"
style=
"width: 100%"
></el-input>
</el-form-item>
<el-form-item
label=
"力扣链接"
:label-width=
"formLabelWidth"
class=
"form-item"
>
...
...
@@ -52,7 +52,7 @@
{{ randomAlgorithmic.questionName }}
</el-descriptions-item>
<el-descriptions-item>
<
template
slot=
"label"
>
力扣号
</
template
>
<
template
slot=
"label"
>
力扣
题
号
</
template
>
{{ randomAlgorithmic.leetcodeNumber }}
</el-descriptions-item>
<el-descriptions-item
show-overflow-tooltip
>
...
...
@@ -92,10 +92,10 @@
<span
:class=
"getClassForValue(scope.row.questionTypeName)"
v-html=
"scope.row.questionTypeName"
></span>
</
template
>
</el-table-column>
<el-table-column
prop=
"degreeOfImportance"
label=
"重要程度"
show-overflow-tooltip
></el-table-column>
<el-table-column
prop=
"degreeOfImportance"
label=
"重要程度
(1~10)
"
show-overflow-tooltip
></el-table-column>
<el-table-column
prop=
"degreeOfDifficulty"
label=
"难易程度"
show-overflow-tooltip
></el-table-column>
<el-table-column
prop=
"difficultyOfScore"
label=
"难易分数"
show-overflow-tooltip
></el-table-column>
<el-table-column
prop=
"leetcodeNumber"
label=
"力扣号"
show-overflow-tooltip
></el-table-column>
<el-table-column
prop=
"leetcodeNumber"
label=
"力扣
题
号"
show-overflow-tooltip
></el-table-column>
<el-table-column
label=
"力扣链接"
show-overflow-tooltip
>
<
template
slot-scope=
"scope"
>
<a
:href=
"scope.row.leetcodeLink"
target=
"_blank"
>
{{
scope
.
row
.
leetcodeLink
}}
</a>
...
...
@@ -116,10 +116,10 @@
</el-form-item>
<el-form-item
label=
"问题类型"
:label-width=
"formLabelWidth"
class=
"form-item"
>
<el-select
v-model=
"form.questionType"
placeholder=
"请选择活动区域"
>
<el-option
v-for=
"item in
o
ptions"
:key=
"item.questionType"
:label=
"item.name"
:value=
"item.questionType"
></el-option>
<el-option
v-for=
"item in
allO
ptions"
:key=
"item.questionType"
:label=
"item.name"
:value=
"item.questionType"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"重要程度"
:label-width=
"formLabelWidth"
class=
"form-item"
>
<el-form-item
label=
"重要程度
(1~10)
"
:label-width=
"formLabelWidth"
class=
"form-item"
>
<el-input
v-model=
"form.degreeOfImportance"
autocomplete=
"off"
style=
"width: 100%"
></el-input>
</el-form-item>
<el-form-item
label=
"难易程度"
:label-width=
"formLabelWidth"
class=
"form-item"
>
...
...
@@ -128,7 +128,7 @@
<el-form-item
label=
"难易分数"
:label-width=
"formLabelWidth"
class=
"form-item"
>
<el-input
v-model=
"form.difficultyOfScore"
autocomplete=
"off"
style=
"width: 100%"
></el-input>
</el-form-item>
<el-form-item
label=
"力扣号"
:label-width=
"formLabelWidth"
class=
"form-item"
>
<el-form-item
label=
"力扣
题
号"
:label-width=
"formLabelWidth"
class=
"form-item"
>
<el-input
v-model=
"form.leetcodeNumber"
autocomplete=
"off"
style=
"width: 100%"
></el-input>
</el-form-item>
<el-form-item
label=
"力扣链接"
:label-width=
"formLabelWidth"
class=
"form-item"
>
...
...
@@ -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
'
,
{
...
...
src/components/subcomponents/MyAside.vue
浏览文件 @
b652039c
...
...
@@ -6,6 +6,12 @@
<span
slot=
"title"
>
面试题管理
</span>
</el-menu-item>
</router-link>
<router-link
to=
"/home/algorithmic"
>
<el-menu-item
index=
"/algorithmic"
class=
"left-aside-item"
>
<i
class=
"el-icon-question"
></i>
<span
slot=
"title"
>
算法题管理
</span>
</el-menu-item>
</router-link>
<router-link
to=
"/home/chat"
>
<el-menu-item
index=
"/chat"
class=
"left-aside-item"
>
<i
class=
"el-icon-chat-line-square"
></i>
...
...
@@ -24,12 +30,6 @@
<span
slot=
"title"
>
用户管理
</span>
</el-menu-item>
</router-link>
<router-link
to=
"/home/algorithmic"
>
<el-menu-item
index=
"/algorithmic"
class=
"left-aside-item"
>
<i
class=
"el-icon-question"
></i>
<span
slot=
"title"
>
算法题管理
</span>
</el-menu-item>
</router-link>
<router-link
to=
"/home/orders"
>
<el-menu-item
index=
"/orders"
class=
"left-aside-item"
>
<i
class=
"el-icon-s-order"
></i>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录