|
|
|
@ -1,99 +1,93 @@ |
|
|
|
|
<template> |
|
|
|
|
<div> |
|
|
|
|
<el-row :gutter="20"> |
|
|
|
|
<el-col :span="24"> |
|
|
|
|
<el-card shadow="hover" class="m-b-20"> |
|
|
|
|
<div class="p-title m-b-20">筛选</div> |
|
|
|
|
<div class="flex j-between"> |
|
|
|
|
<el-form label-width="80px" inline> |
|
|
|
|
<el-form-item class="no-mb" label="题库来源"> |
|
|
|
|
<el-select v-model="type" clearable placeholder="请选择题库来源" @change="getName"> |
|
|
|
|
<el-option v-for="(item,index) in sourceList" :key="index" :label="item.name" :value="item.id"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item class="no-mb" label="试卷名称"> |
|
|
|
|
<el-select v-model="paperId" clearable placeholder="请选择试卷名称" @change="getData"> |
|
|
|
|
<el-option v-for="(item,index) in nameList" :key="index" :label="item.paperName" :value="item.paperId"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item class="no-mb" label="试题类型"> |
|
|
|
|
<el-select v-model="typeId" clearable placeholder="请选择试题类型" @change="getData"> |
|
|
|
|
<el-option label="不限" value=""></el-option> |
|
|
|
|
<el-option v-for="(item,index) in typeList" :key="index" :label="item.name" :value="item.id"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-form> |
|
|
|
|
<div> |
|
|
|
|
<el-input |
|
|
|
|
placeholder="请输入知识点" |
|
|
|
|
prefix-icon="el-icon-search" |
|
|
|
|
v-model="keyword" |
|
|
|
|
clearable |
|
|
|
|
></el-input> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</el-card> |
|
|
|
|
</el-col> |
|
|
|
|
<el-card shadow="hover" class="m-b-20"> |
|
|
|
|
<div class="p-title m-b-20">筛选</div> |
|
|
|
|
<div class="flex j-between"> |
|
|
|
|
<el-form label-width="80px" inline> |
|
|
|
|
<el-form-item class="no-mb" label="题库来源"> |
|
|
|
|
<el-select v-model="type" placeholder="请选择题库来源" @change="getName"> |
|
|
|
|
<el-option v-for="(item,index) in sourceList" :key="index" :label="item.name" :value="item.id"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item class="no-mb" label="试卷名称"> |
|
|
|
|
<el-select v-model="paperId" placeholder="请选择试卷名称" @change="getData"> |
|
|
|
|
<el-option v-for="(item,index) in nameList" :key="index" :label="item.paperName" :value="item.paperId"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item class="no-mb" label="试题类型"> |
|
|
|
|
<el-select v-model="typeId" clearable placeholder="请选择试题类型" @change="getData"> |
|
|
|
|
<el-option label="不限" value=""></el-option> |
|
|
|
|
<el-option v-for="(item,index) in typeList" :key="index" :label="item.name" :value="item.id"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-form> |
|
|
|
|
<div> |
|
|
|
|
<el-input |
|
|
|
|
placeholder="请输入知识点" |
|
|
|
|
prefix-icon="el-icon-search" |
|
|
|
|
v-model="keyword" |
|
|
|
|
clearable |
|
|
|
|
></el-input> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</el-card> |
|
|
|
|
|
|
|
|
|
<el-col :span="24"> |
|
|
|
|
<el-card shadow="hover" class="m-b-20"> |
|
|
|
|
<div class="m-b-20"> |
|
|
|
|
<el-button |
|
|
|
|
type="primary" |
|
|
|
|
size="small" |
|
|
|
|
round |
|
|
|
|
@click="practice" |
|
|
|
|
>错题练习</el-button> |
|
|
|
|
</div> |
|
|
|
|
<el-card shadow="hover" class="m-b-20"> |
|
|
|
|
<div class="m-b-20"> |
|
|
|
|
<el-button |
|
|
|
|
type="primary" |
|
|
|
|
size="small" |
|
|
|
|
round |
|
|
|
|
@click="practice" |
|
|
|
|
>错题练习</el-button> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<el-table |
|
|
|
|
:data="listData" |
|
|
|
|
ref="table" |
|
|
|
|
row-key="id" |
|
|
|
|
class="table" |
|
|
|
|
stripe |
|
|
|
|
header-align="center" |
|
|
|
|
@selection-change="handleSelectionChange" |
|
|
|
|
> |
|
|
|
|
<el-table-column |
|
|
|
|
type="selection" |
|
|
|
|
width="55" |
|
|
|
|
align="center" |
|
|
|
|
:reserve-selection="true" |
|
|
|
|
></el-table-column> |
|
|
|
|
<el-table-column type="index" width="100" label="序号" align="center"> |
|
|
|
|
<template |
|
|
|
|
slot-scope="scope" |
|
|
|
|
>{{scope.$index + (page - 1) * pageSize + 1}}</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="questionStem" label="错题题干名称" align="center" :show-overflow-tooltip="true"></el-table-column> |
|
|
|
|
<el-table-column label="题目来源" width="120" align="center"> |
|
|
|
|
<template> |
|
|
|
|
{{type == 1 ? '考试' : '练习'}} |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="courses" label="对应课程" width="140" align="center"></el-table-column> |
|
|
|
|
<el-table-column prop="knowledgePoints" label="对应知识点" width="140" align="center"></el-table-column> |
|
|
|
|
<el-table-column prop="wrongNum" label="错题次数" width="100" align="center"></el-table-column> |
|
|
|
|
<el-table-column label="操作" width="100" align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<el-button type="text" @click="show(scope.row)">查看</el-button> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
</el-table> |
|
|
|
|
<div class="pagination"> |
|
|
|
|
<el-pagination |
|
|
|
|
background |
|
|
|
|
@current-change="handleCurrentChange" |
|
|
|
|
:current-page="page" |
|
|
|
|
:page-size="pageSize" |
|
|
|
|
layout="total,prev, pager, next" |
|
|
|
|
:total="total" |
|
|
|
|
></el-pagination> |
|
|
|
|
</div> |
|
|
|
|
</el-card> |
|
|
|
|
</el-col> |
|
|
|
|
</el-row> |
|
|
|
|
<el-table |
|
|
|
|
:data="listData" |
|
|
|
|
ref="table" |
|
|
|
|
row-key="id" |
|
|
|
|
class="table" |
|
|
|
|
stripe |
|
|
|
|
header-align="center" |
|
|
|
|
@selection-change="handleSelectionChange" |
|
|
|
|
> |
|
|
|
|
<el-table-column |
|
|
|
|
type="selection" |
|
|
|
|
width="55" |
|
|
|
|
align="center" |
|
|
|
|
:reserve-selection="true" |
|
|
|
|
></el-table-column> |
|
|
|
|
<el-table-column type="index" width="100" label="序号" align="center"> |
|
|
|
|
<template |
|
|
|
|
slot-scope="scope" |
|
|
|
|
>{{scope.$index + (page - 1) * pageSize + 1}}</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="questionStem" label="错题题干名称" align="center" :show-overflow-tooltip="true"></el-table-column> |
|
|
|
|
<el-table-column label="题目来源" width="120" align="center"> |
|
|
|
|
<template> |
|
|
|
|
{{type == 1 ? '考试' : '练习'}} |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="courses" label="对应课程" width="140" align="center"></el-table-column> |
|
|
|
|
<el-table-column prop="knowledgePoints" label="对应知识点" width="140" align="center"></el-table-column> |
|
|
|
|
<el-table-column prop="wrongNum" label="错题次数" width="100" align="center"></el-table-column> |
|
|
|
|
<el-table-column label="操作" width="100" align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<el-button type="text" @click="show(scope.row)">查看</el-button> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
</el-table> |
|
|
|
|
<div class="pagination"> |
|
|
|
|
<el-pagination |
|
|
|
|
background |
|
|
|
|
@current-change="handleCurrentChange" |
|
|
|
|
:current-page="page" |
|
|
|
|
:page-size="pageSize" |
|
|
|
|
layout="total,prev, pager, next" |
|
|
|
|
:total="total" |
|
|
|
|
></el-pagination> |
|
|
|
|
</div> |
|
|
|
|
</el-card> |
|
|
|
|
|
|
|
|
|
<el-dialog title="错题详情" :visible.sync="detailVisible" width="40%"> |
|
|
|
|
<div class="ques"> |
|
|
|
@ -129,14 +123,14 @@ export default { |
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
|
keyword: '', |
|
|
|
|
type: 1, |
|
|
|
|
type: 2, |
|
|
|
|
sourceList: [ |
|
|
|
|
{ |
|
|
|
|
id: 1, |
|
|
|
|
name: '用于考试' |
|
|
|
|
},{ |
|
|
|
|
id: 2, |
|
|
|
|
name: '用于练习' |
|
|
|
|
},{ |
|
|
|
|
id: 1, |
|
|
|
|
name: '用于考试' |
|
|
|
|
} |
|
|
|
|
], |
|
|
|
|
paperId: '', |
|
|
|
|