|
@@ -85,10 +85,10 @@
|
|
|
style="margin-left: 5px"
|
|
style="margin-left: 5px"
|
|
|
>
|
|
>
|
|
|
<el-option
|
|
<el-option
|
|
|
- v-for="item in allSubject"
|
|
|
|
|
- :key="item.questionBank.bankId"
|
|
|
|
|
- :label="item.questionBank.bankName"
|
|
|
|
|
- :value="item.questionBank.bankName"
|
|
|
|
|
|
|
+ v-for="item in bankList"
|
|
|
|
|
+ :key="item.bankId"
|
|
|
|
|
+ :label="item.bankName"
|
|
|
|
|
+ :value="item.bankName"
|
|
|
/>
|
|
/>
|
|
|
</el-select>
|
|
</el-select>
|
|
|
</template>
|
|
</template>
|
|
@@ -99,31 +99,26 @@
|
|
|
<el-input v-model="scope.row.singleScore" style="margin-left: 5px" />
|
|
<el-input v-model="scope.row.singleScore" style="margin-left: 5px" />
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
-
|
|
|
|
|
<el-table-column label="多选题分数" align="center">
|
|
<el-table-column label="多选题分数" align="center">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
<el-input v-model="scope.row.multipleScore" style="margin-left: 5px" />
|
|
<el-input v-model="scope.row.multipleScore" style="margin-left: 5px" />
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
-
|
|
|
|
|
<el-table-column label="判断题分数" align="center">
|
|
<el-table-column label="判断题分数" align="center">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
<el-input v-model="scope.row.judgeScore" style="margin-left: 5px" />
|
|
<el-input v-model="scope.row.judgeScore" style="margin-left: 5px" />
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
-
|
|
|
|
|
<el-table-column label="简答题分数" align="center">
|
|
<el-table-column label="简答题分数" align="center">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
<el-input v-model="scope.row.shortScore" style="margin-left: 5px" />
|
|
<el-input v-model="scope.row.shortScore" style="margin-left: 5px" />
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
-
|
|
|
|
|
<el-table-column label="操作" width="80" align="center">
|
|
<el-table-column label="操作" width="80" align="center">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
<el-button type="danger" icon="el-icon-delete" circle @click="delBank(scope.row.bankId)" />
|
|
<el-button type="danger" icon="el-icon-delete" circle @click="delBank(scope.row.bankId)" />
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
-
|
|
|
|
|
</el-table>
|
|
</el-table>
|
|
|
</div>
|
|
</div>
|
|
|
</el-card>
|
|
</el-card>
|
|
@@ -349,7 +344,14 @@ export default {
|
|
|
pageSize: 10
|
|
pageSize: 10
|
|
|
},
|
|
},
|
|
|
// 所有题库信息
|
|
// 所有题库信息
|
|
|
- allSubject: [],
|
|
|
|
|
|
|
+ allSubject: [
|
|
|
|
|
+ ],
|
|
|
|
|
+ bankList: [
|
|
|
|
|
+ {
|
|
|
|
|
+ bankId: 1,
|
|
|
|
|
+ bankName: '默认题库'
|
|
|
|
|
+ }
|
|
|
|
|
+ ],
|
|
|
allType: [],
|
|
allType: [],
|
|
|
// 当前的步骤
|
|
// 当前的步骤
|
|
|
curStep: 1,
|
|
curStep: 1,
|
|
@@ -484,7 +486,8 @@ export default {
|
|
|
// 添加题库组卷中的题库
|
|
// 添加题库组卷中的题库
|
|
|
addBank() {
|
|
addBank() {
|
|
|
this.addExamQuestion2.push({
|
|
this.addExamQuestion2.push({
|
|
|
- 'bankName': '',
|
|
|
|
|
|
|
+ 'bankId': 1,
|
|
|
|
|
+ 'bankName': '默认题库',
|
|
|
'singleScore': 1,
|
|
'singleScore': 1,
|
|
|
'multipleScore': 1,
|
|
'multipleScore': 1,
|
|
|
'judgeScore': 1,
|
|
'judgeScore': 1,
|
|
@@ -557,14 +560,14 @@ export default {
|
|
|
},
|
|
},
|
|
|
// 分页插件的页数
|
|
// 分页插件的页数
|
|
|
handleCurrentChange(val) {
|
|
handleCurrentChange(val) {
|
|
|
- this.queryInfo.pageNo = val
|
|
|
|
|
|
|
+ this.queryInfo.pageNumber = val
|
|
|
this.getQuestionInfo()
|
|
this.getQuestionInfo()
|
|
|
},
|
|
},
|
|
|
// 自由组卷中选中的题目添加进去
|
|
// 自由组卷中选中的题目添加进去
|
|
|
addQuToFree() {
|
|
addQuToFree() {
|
|
|
this.selectedTable.forEach(item => {
|
|
this.selectedTable.forEach(item => {
|
|
|
// 不存在有当前题目
|
|
// 不存在有当前题目
|
|
|
- if (!this.addExamQuestion1.some(i2 => { return i2.questionId === item.id })) {
|
|
|
|
|
|
|
+ if (!this.addExamQuestion1.some(i2 => { return i2.questionId === item.questionId })) {
|
|
|
this.addExamQuestion1.push({
|
|
this.addExamQuestion1.push({
|
|
|
'pos': this.addExamQuestion1.length + 1,
|
|
'pos': this.addExamQuestion1.length + 1,
|
|
|
'questionId': item.questionId,
|
|
'questionId': item.questionId,
|