From 5dd8dbff1713168cc4ac5b5b3aca7bf496b241fa Mon Sep 17 00:00:00 2001 From: wanggongfeng <1305282856@qq.com> Date: Mon, 17 Aug 2020 18:07:41 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=88=9D=E5=BF=83=E4=BA=92=E5=8A=A9?= =?UTF-8?q?=E3=80=91=E6=96=B0=E5=A2=9E=E6=B4=BB=E5=8A=A8=E6=B4=BB=E5=8A=A8?= =?UTF-8?q?=E6=88=AA=E6=AD=A2=E6=97=B6=E9=97=B4=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/heart/actinfo-add-or-update.vue | 21 ++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/src/views/modules/heart/actinfo-add-or-update.vue b/src/views/modules/heart/actinfo-add-or-update.vue index 67cc2c32..d1ae3434 100644 --- a/src/views/modules/heart/actinfo-add-or-update.vue +++ b/src/views/modules/heart/actinfo-add-or-update.vue @@ -413,7 +413,26 @@ export default { } }, created () { - this.dataForm.signupEndTime = new Date(new Date().getTime() + 24 * 60 * 60 * 1000) + // 初始化报名截止时间 + var signupEndTimeDate = new Date(new Date().getTime() + 24 * 60 * 60 * 1000) + var year = signupEndTimeDate.getFullYear().toString() + var month = (signupEndTimeDate.getMonth() + 1).toString() + if (month < 10) { + month = '0' + month + } + var day = signupEndTimeDate.getDate().toString() + if (day < 10) { + day = '0' + day + } + var hours = signupEndTimeDate.getHours().toString() + if (hours < 10) { + hours = '0' + hours + } + var minutes = signupEndTimeDate.getMinutes().toString() + if (minutes < 10) { + minutes = '0' + minutes + } + this.dataForm.signupEndTime = year + '-' + month + '-' + day + ' ' + hours + ':' + minutes this.$http .get(`/sys/user/deptOptions/getByLoginUser`) .then(({ data: res }) => {