整理

上级 6848aaf7
......@@ -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 options" :key="item.questionType" :label="item.name" :value="item.questionType"></el-option>
<el-option v-for="item in allOptions" :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 options" :key="item.questionType" :label="item.name" :value="item.questionType"></el-option>
<el-option v-for="item in allOptions" :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', {
......
......@@ -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.
先完成此消息的编辑!
想要评论请 注册