提交 e51e0f0f authored 作者: 王鹏飞's avatar 王鹏飞

updates

上级 e5bb70f1
......@@ -98,6 +98,16 @@ export default {
{ tag: 'menu_exam_exercise_review', title: '习题批阅', path: '/teacher/exam/test' }
]
},
{
tag: 'menu_data',
title: '数据中心',
icon: 'icon-bianzuhong',
children: [
{ tag: 'menu_data_exam', title: '考试数据', path: '/teacher/data/exam' },
{ tag: 'menu_data_test', title: '练习数据', path: '/teacher/data/test' },
{ tag: 'menu_data_course', title: '课程学习数据', path: '/teacher/data/course' }
]
},
{
tag: 'menu_training',
title: '实训资源',
......
<template>
<app-container>
<app-list v-bind="tableOptions" ref="list" @row-click="handleRowClick">
<template v-slot:table-name="{ row }">
<el-link type="primary">{{ row.paper_title }}</el-link>
</template>
</app-list>
</app-container>
</template>
<script>
import { getExamReivewList } from '../api.js'
export default {
data() {
return {
visible: false,
currentClickRow: {}
}
},
computed: {
// 列表配置
tableOptions() {
return {
remote: {
httpRequest: getExamReivewList,
params: { class_name: '', paper_title: '' }
},
filters: [
{ type: 'input', prop: 'class_name', placeholder: '班级名称' },
{ type: 'input', prop: 'paper_title', placeholder: '考卷名称' }
],
columns: [
{ label: '考卷名称', prop: 'paper_title', slots: 'table-name' },
{ label: '班级名称', prop: 'class_name', align: 'center' },
{ label: '未批阅学生数量', prop: 'commit_num', align: 'center' }
]
}
}
},
methods: {
handleRowClick(row) {
this.currentClickRow = row
window.localStorage.examStudentsList = JSON.stringify(row.students)
this.visible = true
},
studentReview(data) {
this.$router.push({
path: '/teacher/exam/exam/review',
query: { sheet_id: data.sheet_id, stu_id: data.id }
})
}
}
}
</script>
<template>
<app-container>
<app-list v-bind="tableOptions" ref="list" @row-click="handleRowClick">
<template v-slot:table-name="{ row }">
<el-link type="primary">{{ row.paper_title }}</el-link>
</template>
</app-list>
</app-container>
</template>
<script>
import { getExamReivewList } from '../api.js'
export default {
data() {
return {
visible: false,
currentClickRow: {}
}
},
computed: {
// 列表配置
tableOptions() {
return {
remote: {
httpRequest: getExamReivewList,
params: { class_name: '', paper_title: '' }
},
filters: [
{ type: 'input', prop: 'class_name', placeholder: '班级名称' },
{ type: 'input', prop: 'paper_title', placeholder: '考卷名称' }
],
columns: [
{ label: '考卷名称', prop: 'paper_title', slots: 'table-name' },
{ label: '班级名称', prop: 'class_name', align: 'center' },
{ label: '未批阅学生数量', prop: 'commit_num', align: 'center' }
]
}
}
},
methods: {
handleRowClick(row) {
this.currentClickRow = row
window.localStorage.examStudentsList = JSON.stringify(row.students)
this.visible = true
},
studentReview(data) {
this.$router.push({
path: '/teacher/exam/exam/review',
query: { sheet_id: data.sheet_id, stu_id: data.id }
})
}
}
}
</script>
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论