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

代码更新

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