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