提交 940bf31c authored 作者: lihuihui's avatar lihuihui

Merge branch 'vite' of https://gitlab.ezijing.com/ezijing/x-learn into vite

......@@ -36,7 +36,7 @@ export default {
filters: [
{
type: 'select',
prop: 'examination_list',
prop: 'examination_id',
placeholder: '考试名称',
label: '考试名称',
options: this.conditionList.examination_list,
......@@ -46,7 +46,7 @@ export default {
},
{
type: 'select',
prop: 'course_list',
prop: 'course_id',
placeholder: '所属课程',
label: '所属课程',
options: this.conditionList.course_list,
......
<template>
<app-container>
<app-list v-bind="tableOptions" ref="list">
<template v-slot:table-name="{ row }">
<el-link type="primary">{{ row.paper_title }}</el-link>
<template #header-aside>
<el-button type="text" size="mini" @click="toExamData(row)">导出</el-button>
</template>
<!-- 操作 -->
<template v-slot:table-operate="{ row }">
......@@ -15,18 +15,14 @@
<script>
export default {
data() {
return {
}
return {}
},
computed: {
// 列表配置
tableOptions() {
return {
remote: {
},
filters: [
{ type: 'input', prop: 'paper_title', placeholder: '学生姓名', label: '学生姓名' }
],
remote: {},
filters: [{ type: 'input', prop: 'paper_title', placeholder: '学生姓名', label: '学生姓名' }],
columns: [
{ label: '学生姓名', prop: 'paper_title', slots: 'table-name' },
{ label: '总得分', prop: 'class_name', align: 'center', sortable: true },
......@@ -47,7 +43,7 @@ export default {
methods: {
toExamData(row) {
// this.$router.push({
// path: '',
// path: '/teacher/data/exam/classDetail',
// query: {
// row: row
// }
......
......@@ -11,7 +11,7 @@
</template>
<script>
import { getConditionList } from '../api'
import { getConditionList, getTestList } from '../api'
export default {
data() {
return {
......@@ -22,11 +22,18 @@ export default {
// 列表配置
tableOptions() {
return {
remote: {},
remote: {
httpRequest: getTestList,
params: {
type: 'chapter',
course_id: '',
examination_id: ''
}
},
filters: [
{
type: 'select',
prop: 'examination_list',
prop: 'examination_id',
placeholder: '考试名称',
label: '练习名称',
options: this.conditionList.examination_list,
......@@ -36,7 +43,7 @@ export default {
},
{
type: 'select',
prop: 'course_list',
prop: 'course_id',
placeholder: '所属课程',
label: '所属课程',
options: this.conditionList.course_list,
......@@ -46,18 +53,18 @@ export default {
}
],
columns: [
{ label: '练习名称', prop: 'paper_title', align: 'center' },
{ label: '所属章节', prop: 'class_name', align: 'center' },
{ label: '练习总人数', prop: 'commit_num', align: 'center' },
{ label: '联系率', prop: 'deterg', align: 'center' },
{ label: '平均得分', prop: 'grehrtj', align: 'center' },
{ label: '最高分', prop: 'jyj5uy', align: 'center' },
{ label: '最低分', prop: 'et43453', align: 'center' },
{ label: '题目总数', prop: 'rwr2rq', align: 'center' },
{ label: '及格率', prop: 'dwefw', align: 'center' },
{ label: '练习名称', prop: 'examination_name', align: 'center' },
{ label: '所属章节', prop: 'parent_name', align: 'center' },
{ label: '所属课程', prop: 'course_name', align: 'center' },
{ label: '练习总人数', prop: 'join_num', align: 'center' },
{ label: '练习率', prop: 'join_rate', align: 'center' },
{ label: '平均得分', prop: 'average', align: 'center' },
{ label: '最高分', prop: 'max', align: 'center' },
{ label: '最低分', prop: 'min', align: 'center' },
{ label: '题目总数', prop: 'question_num', align: 'center' },
{ label: '及格率', prop: 'pass_rate', align: 'center' },
{ label: '操作', slots: 'table-operate', align: 'center', width: '150' }
],
data: [{ paper_title: 'adsada' }]
]
}
}
},
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论