From 99d3ecad6d8e744a4d2d8cd6dd1ce3a9255de944 Mon Sep 17 00:00:00 2001 From: fengbh <1953356163@qq.com> Date: Fri, 22 May 2026 19:17:47 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=8C=89=E9=92=AE=E9=A1=BA?= =?UTF-8?q?=E5=BA=8F=EF=BC=9A=E6=9F=A5=E5=BD=93=E5=91=A8=E7=A7=BB=E5=88=B0?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E5=8A=A0=E7=8F=AD=E6=97=B6=E9=97=B4=E5=92=8C?= =?UTF-8?q?=E6=9F=A5=E5=BD=93=E6=9C=88=E4=B9=8B=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.7 --- main.js | 4 ++-- main.template.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/main.js b/main.js index 51e131a..ae44f84 100644 --- a/main.js +++ b/main.js @@ -22207,11 +22207,11 @@ const workDayData = { get_work_time(); } }); + const button4 = createQueryButton('查当周', getCurrentWeekRange); const button0 = createQueryButton('查当月', () => getCustomMonthRange(0)); const button1 = createQueryButton('查上月', () => getCustomMonthRange(1)); const button2 = createQueryButton('查上上月', () => getCustomMonthRange(2)); const button3 = createQueryButton('查上上上月', () => getCustomMonthRange(3)); - const button4 = createQueryButton('查当周', getCurrentWeekRange); // 获取要将按钮添加到其中的容器 let container = document.getElementById('seclevelmenu'); @@ -22219,11 +22219,11 @@ const workDayData = { container = document.body; } container.appendChild(button); + container.appendChild(button4); container.appendChild(button0); container.appendChild(button1); container.appendChild(button2); container.appendChild(button3); - container.appendChild(button4); console.log("复旦微加班时间统计脚本已加载"); console.log("点击按钮后会统计加班时间"); })() \ No newline at end of file diff --git a/main.template.js b/main.template.js index 50c1b98..1d60ec6 100644 --- a/main.template.js +++ b/main.template.js @@ -284,11 +284,11 @@ get_work_time(); } }); + const button4 = createQueryButton('查当周', getCurrentWeekRange); const button0 = createQueryButton('查当月', () => getCustomMonthRange(0)); const button1 = createQueryButton('查上月', () => getCustomMonthRange(1)); const button2 = createQueryButton('查上上月', () => getCustomMonthRange(2)); const button3 = createQueryButton('查上上上月', () => getCustomMonthRange(3)); - const button4 = createQueryButton('查当周', getCurrentWeekRange); // 获取要将按钮添加到其中的容器 let container = document.getElementById('seclevelmenu'); @@ -296,11 +296,11 @@ container = document.body; } container.appendChild(button); + container.appendChild(button4); container.appendChild(button0); container.appendChild(button1); container.appendChild(button2); container.appendChild(button3); - container.appendChild(button4); console.log("复旦微加班时间统计脚本已加载"); console.log("点击按钮后会统计加班时间"); })() \ No newline at end of file