diff --git a/src/views/modules/heart/actinfo-add-or-update.vue b/src/views/modules/heart/actinfo-add-or-update.vue index b2835ed9..17073612 100644 --- a/src/views/modules/heart/actinfo-add-or-update.vue +++ b/src/views/modules/heart/actinfo-add-or-update.vue @@ -638,6 +638,15 @@ export default { }, // 表单提交 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) { return this.$message.error('您输入的的内容已超过字数') }