From 73377aabc56162ff0396196fd19939828046ead8 Mon Sep 17 00:00:00 2001 From: andy <1042025947@qq.com> Date: Sat, 26 Jul 2025 14:27:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=97=B6=E9=97=B4=E7=BB=84?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 清楚所有页面的console.log输出 --- src/api/attendance/attendance.js | 8 ++ src/plugins/DateUtils.js | 15 ++++ src/views/attendance/attendance/index.vue | 85 +++++++++++++++++-- src/views/finance/financeDetail/index.vue | 2 - src/views/personnelMatters/holidays/index.vue | 1 - .../personnelMatters/interviewer/index.vue | 1 - src/views/personnelMatters/leave/index.vue | 3 - .../specialOverTime/index.vue | 1 - src/views/system/dept/index.vue | 1 - src/views/system/staffDetail/index.vue | 1 - 10 files changed, 102 insertions(+), 16 deletions(-) create mode 100644 src/plugins/DateUtils.js diff --git a/src/api/attendance/attendance.js b/src/api/attendance/attendance.js index 4f26f2f..b8a535c 100644 --- a/src/api/attendance/attendance.js +++ b/src/api/attendance/attendance.js @@ -52,4 +52,12 @@ export function listAttendanceByParams(query) { }) } +// 查询考勤记录详细 +export function getAttendanceDetail(id) { + return request({ + url: '/attendance/attendance/detail/list/' + id, + method: 'get' + }) +} + diff --git a/src/plugins/DateUtils.js b/src/plugins/DateUtils.js new file mode 100644 index 0000000..4e7ad3d --- /dev/null +++ b/src/plugins/DateUtils.js @@ -0,0 +1,15 @@ +export default{ + getCurrentMonthStartDates(currentDate) { + const firstDay = new Date(currentDate); + firstDay.setDate(1); + // 格式化日期为YYYY-MM-DD格式 + return firstDay.toISOString().slice(0, 10); + }, + + getCurrentMonthEndDates(currentDate) { + const lastDay = new Date(currentDate); + lastDay.setMonth(lastDay.getMonth() + 1, 0); // 设置日期为下个月的第一天的前一天,即当前月的最后一天 + // 格式化日期为YYYY-MM-DD格式 + return lastDay.toISOString().slice(0, 10); + } + } \ No newline at end of file diff --git a/src/views/attendance/attendance/index.vue b/src/views/attendance/attendance/index.vue index a804625..e7a2559 100644 --- a/src/views/attendance/attendance/index.vue +++ b/src/views/attendance/attendance/index.vue @@ -14,7 +14,8 @@ start-placeholder="开始日期" end-placeholder="结束日期" value-format="yyyy-MM-dd" - clearable> + :clearable="false" + > @@ -88,6 +89,12 @@ @click="handleUpdate(scope.row)" v-hasPermi="['attendance:attendance:edit']" >修改 + 打卡详情 @@ -177,14 +184,35 @@ 取 消 + + +
+ + + {{activity.content}} + + +
+