提交 a3edb6df authored 作者: matian's avatar matian

fix:考生状态修改

上级 61218837
......@@ -59,15 +59,15 @@ import {
getTranserList,
transferStudent
} from '../api'
const stuStatus = [
{ id: '1', name: '未开考' },
{ id: '2', name: '已登录' },
{ id: '3', name: '考试中' },
{ id: '4', name: '已中断' },
{ id: '5', name: '已提交' },
{ id: '6', name: '已完成' },
{ id: '7', name: '待批阅' }
]
// const stuStatus = [
// { id: '1', name: '未开考' },
// { id: '2', name: '已登录' },
// { id: '3', name: '考试中' },
// { id: '4', name: '已中断' },
// { id: '5', name: '已提交' },
// { id: '6', name: '已完成' },
// { id: '7', name: '待批阅' }
// ]
export default {
data() {
return {
......@@ -99,20 +99,32 @@ export default {
type: 'input',
prop: 'school',
label: '学校'
},
{
type: 'select',
prop: 'relation_status',
placeholder: '请选择考生状态',
options: stuStatus,
labelKey: 'name',
valueKey: 'id',
label: '考生状态'
}
// {
// type: 'select',
// prop: 'relation_status',
// placeholder: '请选择考生状态',
// options: stuStatus,
// labelKey: 'name',
// valueKey: 'id',
// label: '考生状态'
// }
],
columns: [
{ type: 'selection', minWidth: '50px', fixed: 'left' },
{ label: '考生状态', prop: 'exam_status' },
{
label: '考生状态',
prop: 'sheet.status',
computed({ row }) {
if (row.sheet.status === 0) {
return '未提交'
} else if (row.sheet.status === 1) {
return '已提交'
} else if (row.sheet.status === 2) {
return '已批改'
}
}
},
{ label: '准考证号', prop: 'examinee_number' },
{ label: '身份证号', prop: 'id_number' },
{ label: '电话', prop: 'mobile' },
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论