提交 09919e27 authored 作者: matian's avatar matian

bug fixes

上级 17519ef7
...@@ -67,7 +67,8 @@ export default { ...@@ -67,7 +67,8 @@ export default {
options: [ options: [
{ label: '易', value: '1' }, { label: '易', value: '1' },
{ label: '中', value: '2' }, { label: '中', value: '2' },
{ label: '难', value: '3' } { label: '难', value: '3' },
{ label: '无', value: '0' }
], ],
label: '难度等级' label: '难度等级'
}, },
...@@ -113,7 +114,7 @@ export default { ...@@ -113,7 +114,7 @@ export default {
label: '难度等级', label: '难度等级',
prop: 'question_difficulty', prop: 'question_difficulty',
computed: ({ row }) => { computed: ({ row }) => {
const map = { 1: '易', 2: '中', 3: '难' } const map = { 1: '易', 2: '中', 3: '难', 0: '无' }
return map[row.question_difficulty] || row.question_difficulty return map[row.question_difficulty] || row.question_difficulty
} }
}, },
......
...@@ -97,7 +97,8 @@ export default { ...@@ -97,7 +97,8 @@ export default {
options: [ options: [
{ label: '易', value: '1' }, { label: '易', value: '1' },
{ label: '中', value: '2' }, { label: '中', value: '2' },
{ label: '难', value: '3' } { label: '难', value: '3' },
{ label: '无', value: '0' }
] ]
}, },
{ {
......
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
<el-option label="易" value="1"></el-option> <el-option label="易" value="1"></el-option>
<el-option label="中" value="2"></el-option> <el-option label="中" value="2"></el-option>
<el-option label="难" value="3"></el-option> <el-option label="难" value="3"></el-option>
<el-option label="无" value="0"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="题目标题" prop="question_title"> <el-form-item label="题目标题" prop="question_title">
......
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
<el-option label="易" value="1"></el-option> <el-option label="易" value="1"></el-option>
<el-option label="中" value="2"></el-option> <el-option label="中" value="2"></el-option>
<el-option label="难" value="3"></el-option> <el-option label="难" value="3"></el-option>
<el-option label="无" value="0"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="题目标题" prop="question_title"> <el-form-item label="题目标题" prop="question_title">
......
...@@ -93,7 +93,8 @@ export default { ...@@ -93,7 +93,8 @@ export default {
options: [ options: [
{ label: '易', value: '1' }, { label: '易', value: '1' },
{ label: '中', value: '2' }, { label: '中', value: '2' },
{ label: '难', value: '3' } { label: '难', value: '3' },
{ label: '无', value: '0' }
] ]
}, },
{ {
...@@ -131,7 +132,8 @@ export default { ...@@ -131,7 +132,8 @@ export default {
const questionDifficulty = { const questionDifficulty = {
1: '易', 1: '易',
2: '中', 2: '中',
3: '难' 3: '难',
0: '无'
} }
return data.data.reduce((a, b, index) => { return data.data.reduce((a, b, index) => {
b.order = index + 1 b.order = index + 1
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论