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

代码更新

上级 013a3654
......@@ -128,16 +128,18 @@ export default {
this.$message.warning('请选择考试时间')
return
}
const startTime = new Date(params.start_time)
const endTime = new Date(params.end_time)
if ((endTime - startTime) / 86400000 > 40) {
this.$message.warning('考试时间不能超过40天')
return
}
// const startTime = new Date(params.start_time)
// const endTime = new Date(params.end_time)
// const day = (endTime - startTime) / 86400000
// console.log(day)
// if ((endTime - startTime) / 86400000 >= 40) {
// this.$message.warning('考试时间不能超过40天')
// return
// }
this.$emit('getBaseInfo', params)
this.$parent.$parent.nextStep()
},
// 保存/更新基本信息
saveExamInfo() {
const params = {
id: this.exam_id,
......
......@@ -7,17 +7,17 @@
<el-step title="考试配置"></el-step>
<el-step title="考试配置"></el-step>
</el-steps>
<base-info data="" v-if="stepsIndex === 1" @getBaseInfo="getBaseInfo" :isEdit="isEdit" />
<base-info data="" v-show="stepsIndex === 1" @getBaseInfo="getBaseInfo" :isEdit="isEdit" />
<check-paper
v-if="stepsIndex === 2"
v-show="stepsIndex === 2"
@getCheckPaper="getCheckPaper"
@getCheckPaperList="getCheckPaperList"
:isEdit="isEdit"
/>
<personal-info v-if="stepsIndex === 3" @getInfo="getInfo" :isEdit="isEdit" />
<exam-setting v-if="stepsIndex === 4" @getExamConfig="getExamConfig" :isEdit="isEdit" />
<personal-info v-show="stepsIndex === 3" @getInfo="getInfo" :isEdit="isEdit" />
<exam-setting v-show="stepsIndex === 4" @getExamConfig="getExamConfig" :isEdit="isEdit" />
<finished
v-if="stepsIndex === 5"
v-show="stepsIndex === 5"
:params="params"
:configs="configs"
:checkedPaper="checkedPaper"
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论