提交 1d67cadd authored 作者: matian's avatar matian

feat:练习列表增加接口

上级 5939ac45
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
</template> </template>
<script> <script>
import { getConditionList } from '../api' import { getConditionList, getTestList } from '../api'
export default { export default {
data() { data() {
return { return {
...@@ -22,7 +22,14 @@ export default { ...@@ -22,7 +22,14 @@ export default {
// 列表配置 // 列表配置
tableOptions() { tableOptions() {
return { return {
remote: {}, remote: {
httpRequest: getTestList,
params: {
type: 'chapter',
course_id: '',
examination_id: ''
}
},
filters: [ filters: [
{ {
type: 'select', type: 'select',
...@@ -46,18 +53,17 @@ export default { ...@@ -46,18 +53,17 @@ export default {
} }
], ],
columns: [ columns: [
{ label: '练习名称', prop: 'paper_title', align: 'center' }, { label: '练习名称', prop: 'course_name', align: 'center' },
{ label: '所属章节', prop: 'class_name', align: 'center' }, { label: '所属章节', prop: 'parent_name', align: 'center' },
{ label: '练习总人数', prop: 'commit_num', align: 'center' }, { label: '练习总人数', prop: 'join_num', align: 'center' },
{ label: '联系率', prop: 'deterg', align: 'center' }, { label: '练习率', prop: 'join_rate', align: 'center' },
{ label: '平均得分', prop: 'grehrtj', align: 'center' }, { label: '平均得分', prop: 'average', align: 'center' },
{ label: '最高分', prop: 'jyj5uy', align: 'center' }, { label: '最高分', prop: 'max', align: 'center' },
{ label: '最低分', prop: 'et43453', align: 'center' }, { label: '最低分', prop: 'min', align: 'center' },
{ label: '题目总数', prop: 'rwr2rq', align: 'center' }, { label: '题目总数', prop: 'question_num', align: 'center' },
{ label: '及格率', prop: 'dwefw', align: 'center' }, { label: '及格率', prop: 'pass_rate', align: 'center' },
{ label: '操作', slots: 'table-operate', align: 'center', width: '150' } { label: '操作', slots: 'table-operate', align: 'center', width: '150' }
], ]
data: [{ paper_title: 'adsada' }]
} }
} }
}, },
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论