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