From ee2062c98287414812efb3da59ad2e92ec7888c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B2=E6=A0=91=E9=80=9A?= <1976590620@qq.com> Date: Wed, 1 Apr 2020 15:06:40 +0800 Subject: [PATCH] =?UTF-8?q?9=20PC=E7=AB=AF=EF=BC=8C=E6=B4=BB=E5=8A=A8?= =?UTF-8?q?=E7=AE=A1=E7=90=86-=E5=A2=9E=E5=8A=A0=E6=B4=BB=E5=8A=A8?= =?UTF-8?q?=EF=BC=8C=E6=97=B6=E9=97=B4=E8=8C=83=E5=9B=B4=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/heart/actinfo-add-or-update.vue | 9 +++++++++ 1 file changed, 9 insertions(+) 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('您输入的的内容已超过字数') }