Browse Source

9 PC端,活动管理-增加活动,时间范围校验

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

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

@ -638,6 +638,15 @@ export default {
}, },
// //
dataFormSubmitHandle: debounce(function () { dataFormSubmitHandle: debounce(function () {
if (this.dataForm.actStartTime >= this.dataForm.actEndTime) {
return this.$message.error('活动结束时间必须大于活动开始时间')
}
if (this.dataForm.actStartTime <= this.dataForm.signupEndTime) {
return this.$message.error('活动开始时间必须大于报名截止时间')
}
if (this.dataForm.actEndTime > this.dataForm.signinEndTime) {
return this.$message.error('打卡结束时间必须大于或等于活动结束时间')
}
if ((this.dataForm.actContent).length > 10000) { if ((this.dataForm.actContent).length > 10000) {
return this.$message.error('您输入的的内容已超过字数') return this.$message.error('您输入的的内容已超过字数')
} }

Loading…
Cancel
Save