Browse Source

活动管理报名截止时间大于当前时间

master
曲树通 6 years ago
parent
commit
f116bda379
  1. 4
      src/views/modules/heart/actinfo-add-or-update.vue

4
src/views/modules/heart/actinfo-add-or-update.vue

@ -4,7 +4,6 @@
<div class="mod-news__news}"> <div class="mod-news__news}">
<el-form :inline="true" <el-form :inline="true"
:model="dataForm" :model="dataForm"
:rules="dataRule"
ref="dataForm" ref="dataForm"
:label-width="$i18n.locale === 'en-US' ? '120px' : '120px'"> :label-width="$i18n.locale === 'en-US' ? '120px' : '120px'">
<el-row> <el-row>
@ -638,6 +637,9 @@ export default {
}, },
// //
dataFormSubmitHandle: debounce(function () { dataFormSubmitHandle: debounce(function () {
if (new Date() >= new Date(this.dataForm.signupEndTime)) {
return this.$message.error('报名截止时间必须大于当前时间')
}
if (this.dataForm.actStartTime >= this.dataForm.actEndTime) { if (this.dataForm.actStartTime >= this.dataForm.actEndTime) {
return this.$message.error('活动结束时间必须大于活动开始时间') return this.$message.error('活动结束时间必须大于活动开始时间')
} }

Loading…
Cancel
Save