From 8b6ae4daf5413d8231f16896a146ff3b49d84c78 Mon Sep 17 00:00:00 2001 From: "lj7788@126.com" Date: Mon, 23 Jun 2025 17:07:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E5=8F=91=E7=AC=AC=E4=B8=89=E6=96=B9?= =?UTF-8?q?=E8=80=83=E5=8B=A4-=E8=80=83=E5=8B=A4=E8=AE=B0=E5=BD=95?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/api/manage/thirdAttendance.js | 9 + yanzhu-ui-vue3/src/main.js | 9 + .../thirdLabor/attendanceData/index.vue | 177 +++++++++++++++++- .../thirdLabor/attendanceWorker/index.vue | 4 +- 4 files changed, 187 insertions(+), 12 deletions(-) diff --git a/yanzhu-ui-vue3/src/api/manage/thirdAttendance.js b/yanzhu-ui-vue3/src/api/manage/thirdAttendance.js index 924ad439..0e863a39 100644 --- a/yanzhu-ui-vue3/src/api/manage/thirdAttendance.js +++ b/yanzhu-ui-vue3/src/api/manage/thirdAttendance.js @@ -7,4 +7,13 @@ export function queryAttendanceWorker(query) { method: 'get', params: query }) +} + +// 查询劳务实名制管理列表 +export function listAttendance(query) { + return request({ + url: '/manage/project/attendance/list', + method: 'get', + params: query + }) } \ No newline at end of file diff --git a/yanzhu-ui-vue3/src/main.js b/yanzhu-ui-vue3/src/main.js index c17ca256..0c5feca4 100644 --- a/yanzhu-ui-vue3/src/main.js +++ b/yanzhu-ui-vue3/src/main.js @@ -95,6 +95,15 @@ app.config.globalProperties.$tryToJson = (str, df) => { } }; app.config.globalProperties.$dt = dayjs; +app.config.globalProperties.$formatDate = dt=>{ + return dt?dayjs(dt).format("YYYY-MM-DD"):"" ; +}; +app.config.globalProperties.$formatDateTime = dt=>{ + return dt?dayjs(dt).format("YYYY-MM-DD HH:mm:ss"):"" ; +}; +app.config.globalProperties.$formatTime = dt=>{ + return dt?dayjs(dt).format("HH:mm:ss"):"" ; +}; app.config.globalProperties.$http = request; // 全局组件挂载 diff --git a/yanzhu-ui-vue3/src/views/manage/thirdLabor/attendanceData/index.vue b/yanzhu-ui-vue3/src/views/manage/thirdLabor/attendanceData/index.vue index 64d1743b..d2f7ba4f 100644 --- a/yanzhu-ui-vue3/src/views/manage/thirdLabor/attendanceData/index.vue +++ b/yanzhu-ui-vue3/src/views/manage/thirdLabor/attendanceData/index.vue @@ -1,27 +1,184 @@ \ No newline at end of file + diff --git a/yanzhu-ui-vue3/src/views/manage/thirdLabor/attendanceWorker/index.vue b/yanzhu-ui-vue3/src/views/manage/thirdLabor/attendanceWorker/index.vue index 330e2482..4ac76544 100644 --- a/yanzhu-ui-vue3/src/views/manage/thirdLabor/attendanceWorker/index.vue +++ b/yanzhu-ui-vue3/src/views/manage/thirdLabor/attendanceWorker/index.vue @@ -2,7 +2,7 @@
- + @@ -38,7 +38,7 @@ - +