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

updates

上级 97a7f6ed
import httpRequest from '@/utils/axios'
/**
* 获取考卷批阅列表
*/
export function getExamReivewList(params) {
return httpRequest.get('/api/zy/v3-teacher/examination/examination-list', { params })
}
const routes = [
{
path: '/',
component: () => import('@/components/layout/index.vue'),
children: [{ path: '/teacher/data/course', component: () => import('./views/List.vue') }]
}
]
export { routes }
<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>
import httpRequest from '@/utils/axios'
/**
* 获取考卷批阅列表
*/
export function getExamReivewList(params) {
return httpRequest.get('/api/zy/v3-teacher/examination/examination-list', { params })
}
const routes = [
{
path: '/',
component: () => import('@/components/layout/index.vue'),
children: [{ path: '/teacher/data/exam', component: () => import('./views/List.vue') }]
}
]
export { routes }
import httpRequest from '@/utils/axios'
/**
* 获取考卷批阅列表
*/
export function getExamReivewList(params) {
return httpRequest.get('/api/zy/v3-teacher/examination/examination-list', { params })
}
const routes = [
{
path: '/',
component: () => import('@/components/layout/index.vue'),
children: [{ path: '/teacher/data/test', component: () => import('./views/List.vue') }]
}
]
export { routes }
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论