From f0313653e68d9f245b7f40f756820ae857389231 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E4=BA=86=E4=B8=AA=E7=99=BD?= <543593352@qq.com> Date: Thu, 10 Oct 2024 09:53:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=9C=E4=B8=9A=E5=B8=83=E7=BD=AE=EF=BC=9A?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=8E=A8=E9=80=81=E3=80=81=E6=89=B9=E9=87=8F?= =?UTF-8?q?=E6=8E=A8=E9=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/src/utils/date.js | 11 + .../src/views/classTask/classTaskAssign.vue | 468 +++++++++++++++++- 2 files changed, 476 insertions(+), 3 deletions(-) diff --git a/src/renderer/src/utils/date.js b/src/renderer/src/utils/date.js index 29b0f44..d967f24 100644 --- a/src/renderer/src/utils/date.js +++ b/src/renderer/src/utils/date.js @@ -100,6 +100,17 @@ export const getCurrentTime = (format)=> { if(format == 'MMDD'){ return `${month}${day}`; } + if(format == 'HH'){ + return `${hours}`; + } + if(format == 'HH+3'){ + //往后延时3个小时 + const hours = (now.getHours()+3).toString().padStart(2, '0'); + return `${hours}` + } + if(format == 'mm'){ + return `${minutes}`; + } } /** * diff --git a/src/renderer/src/views/classTask/classTaskAssign.vue b/src/renderer/src/views/classTask/classTaskAssign.vue index fa1aeba..d74124b 100644 --- a/src/renderer/src/views/classTask/classTaskAssign.vue +++ b/src/renderer/src/views/classTask/classTaskAssign.vue @@ -92,7 +92,7 @@ @@ -149,21 +149,106 @@ @click="submitWorkTitle('submit')">确 定 + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+
+ + + + + + 必做 + 选做 + + + + + + + + + + + + + 点 + 分 + + + + + + + 分钟 + + + + + + + + + + + + +
+
+
+ + +