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

代码提交
上级 7f689cd5
...@@ -8,10 +8,13 @@ ...@@ -8,10 +8,13 @@
:filterMethod="filterMethod" :filterMethod="filterMethod"
> >
</el-transfer> </el-transfer>
<el-card style="margin-top: 30px">
<ul style="margin-top: 20px"> <ul style="margin-top: 20px">
<li class="paper_desc">考生的试卷会从以上已选的试卷中随机抽取</li> <li class="paper_desc">考生的试卷会从以上已选的试卷中随机抽取</li>
<li class="paper_desc">考试开始两个小时前,可以对试卷进行替换</li> <li class="paper_desc">考试开始两个小时前,可以对试卷进行替换</li>
</ul> </ul>
</el-card>
<el-row class="btn_next"> <el-row class="btn_next">
<el-button type="primary" v-if="$route.query.isEdit === '2'" @click="saveExamInfo">保存</el-button> <el-button type="primary" v-if="$route.query.isEdit === '2'" @click="saveExamInfo">保存</el-button>
<div v-if="isEdit === '1'"> <div v-if="isEdit === '1'">
...@@ -114,7 +117,13 @@ ul { ...@@ -114,7 +117,13 @@ ul {
} }
.paper_desc { .paper_desc {
font-size: 16px; font-size: 16px;
color: #c01c40; color: #000;
} }
} }
::v-deep .el-transfer-panel__body {
height: 295px;
}
::v-deep .el-checkbox-group {
height: 295px;
}
</style> </style>
...@@ -19,7 +19,8 @@ ...@@ -19,7 +19,8 @@
</el-table-column> </el-table-column>
<el-table-column prop="sort" label="权重"> <el-table-column prop="sort" label="权重">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input v-model="scope.row.sort" active-color="#13ce66" inactive-color="#ff4949"> </el-input> <el-input style="width: 100px" v-model="scope.row.sort" active-color="#13ce66" inactive-color="#ff4949">
</el-input>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -35,6 +36,7 @@ ...@@ -35,6 +36,7 @@
<script> <script>
import { getExamPaperDetail, updateExam } from '../api' import { getExamPaperDetail, updateExam } from '../api'
export default { export default {
data() { data() {
return { return {
...@@ -149,12 +151,17 @@ export default { ...@@ -149,12 +151,17 @@ export default {
id: JSON.parse(this.$route.query.row).exam_id, id: JSON.parse(this.$route.query.row).exam_id,
type: 'student', type: 'student',
config: { config: {
enabled_before: this.config.enabled_before, info: {
enabled_after: this.config.enabled_after, name: this.tableData[0],
before_login: this.config.before_login, gender: this.tableData[1],
after_login: this.config.after_login, id_number: this.tableData[2],
welcome_message: this.config.welcome_message, age: this.tableData[3],
waiting_message: this.config.waiting_message major: this.tableData[4],
school: this.tableData[5],
email: this.tableData[6],
educational_background: this.tableData[7],
mobile: this.tableData[8]
}
} }
} }
updateExam(params).then(res => { updateExam(params).then(res => {
......
...@@ -81,7 +81,7 @@ export default { ...@@ -81,7 +81,7 @@ export default {
rules: { rules: {
name: [{ required: true, message: '请输入姓名', trigger: 'blur' }], name: [{ required: true, message: '请输入姓名', trigger: 'blur' }],
gender: [{ required: true, message: '请选择性别', trigger: 'change' }], gender: [{ required: true, message: '请选择性别', trigger: 'change' }],
id_number: [{ required: true, message: '请输入身份证号', trigger: 'blur' }] id_number: [{ required: true, message: '请输入正确的身份证号', trigger: 'blur' }]
} }
} }
}, },
...@@ -96,9 +96,13 @@ export default { ...@@ -96,9 +96,13 @@ export default {
this.$refs.form.validate(valid => { this.$refs.form.validate(valid => {
if (valid) { if (valid) {
// 调用接口 // 调用接口
addStudent(Object.assign({ exam_id: this.id }, this.form)).then(res => {}) addStudent(Object.assign({ exam_id: this.id }, this.form)).then(res => {
} if (res.code === 0) {
this.$message.success('添加考生成功')
history.go(-1) history.go(-1)
}
})
}
}) })
} }
} }
......
...@@ -61,12 +61,12 @@ import { ...@@ -61,12 +61,12 @@ import {
} from '../api' } from '../api'
const stuStatus = [ const stuStatus = [
{ id: '1', name: '未开考' }, { id: '1', name: '未开考' },
{ id: '1', name: '已登录' }, { id: '2', name: '已登录' },
{ id: '1', name: '考试中' }, { id: '3', name: '考试中' },
{ id: '1', name: '已中断' }, { id: '4', name: '已中断' },
{ id: '1', name: '已提交' }, { id: '5', name: '已提交' },
{ id: '1', name: '已完成' }, { id: '6', name: '已完成' },
{ id: '1', name: '待批阅' } { id: '7', name: '待批阅' }
] ]
export default { export default {
data() { data() {
...@@ -112,7 +112,7 @@ export default { ...@@ -112,7 +112,7 @@ export default {
], ],
columns: [ columns: [
{ type: 'selection', minWidth: '50px', fixed: 'left' }, { type: 'selection', minWidth: '50px', fixed: 'left' },
{ label: '考生状态', prop: 'relation_status' }, { label: '考生状态', prop: 'exam_status' },
{ label: '准考证号', prop: 'examinee_number' }, { label: '准考证号', prop: 'examinee_number' },
{ label: '身份证号', prop: 'id_number' }, { label: '身份证号', prop: 'id_number' },
{ label: '电话', prop: 'mobile' }, { label: '电话', prop: 'mobile' },
...@@ -247,6 +247,7 @@ export default { ...@@ -247,6 +247,7 @@ export default {
} }
}, },
mounted() { mounted() {
// 获取转移列表
this.getTransferList() this.getTransferList()
} }
} }
......
...@@ -63,8 +63,9 @@ export default { ...@@ -63,8 +63,9 @@ export default {
label: '考试时间', label: '考试时间',
prop: 'exam_time', prop: 'exam_time',
computed({ row }) { computed({ row }) {
return row.start_time + '-' + row.end_time return row.start_time + '~' + row.end_time
} },
width: 300
}, },
{ label: '应考人数', prop: 'exam_all' }, { label: '应考人数', prop: 'exam_all' },
{ label: '完成人数', prop: 'exam_complete' }, { label: '完成人数', prop: 'exam_complete' },
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论