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