From c4e3f5e49fb6b11198b83a557f2f733172170ae3 Mon Sep 17 00:00:00 2001 From: junhong Date: Tue, 13 May 2025 10:57:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=81=87=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sitePersonnel/work-attendance/index.vue | 158 +++++++++++++++++- 1 file changed, 155 insertions(+), 3 deletions(-) diff --git a/src/views/sitePersonnel/work-attendance/index.vue b/src/views/sitePersonnel/work-attendance/index.vue index 4ee0e4dc..0af0bce9 100644 --- a/src/views/sitePersonnel/work-attendance/index.vue +++ b/src/views/sitePersonnel/work-attendance/index.vue @@ -43,7 +43,7 @@ const state = reactive({ detail: 'workAttendance:page:list', }, pageInfo: { total: 0, base: { limit: 8, current: 1 } }, - baseQuery: { actionTimeAfter:formattedTime + ' 00:00:00',actionTimeBefore:formattedTime + ' 23:59:59' }, + baseQuery: { actionTimeAfter: formattedTime + ' 00:00:00', actionTimeBefore: formattedTime + ' 23:59:59' }, beforeFilter: (params) => { //1. 使用异步的方式 return new Promise((resolve) => { @@ -61,6 +61,141 @@ const state = reactive({ res.data.list = res.data.pageData return res.data.list }, + tableData: [{ + "id": 17, + "personId": 21059, + "personCode": "112325", + "personName": "小高测试用例1", + "departmentId": 53, + "deptName": "小高测试用例部门1", + "cardNo": "40D3989B", + "siteId": "1", + "siteName": "门禁测试", + "attendanceType": "51", + "actionTime": "2023-08-24 02:17:55", + "reportTime": "2023-08-24 02:17:56", + "dataSource": 1, + "supplementFormId": null, + "number": null, + imageType: 1, + openType: 43, + startSwingTime: "2025-05-13 02:17:55", + }, { + "id": 17, + "personId": 21059, + "personCode": "112325", + "personName": "小高测试用例1", + "departmentId": 53, + "deptName": "小高测试用例部门1", + "cardNo": "40D3989B", + "siteId": "1", + "siteName": "门禁测试", + "attendanceType": "51", + "actionTime": "2023-08-24 02:17:55", + "reportTime": "2023-08-24 02:17:56", + "dataSource": 1, + "supplementFormId": null, + "number": null, + imageType: 2, + openType: 42, + startSwingTime: "2025-05-13 02:17:55", + }, { + "id": 17, + "personId": 21059, + "personCode": "112325", + "personName": "小高测试用例1", + "departmentId": 53, + "deptName": "小高测试用例部门1", + "cardNo": "40D3989B", + "siteId": "1", + "siteName": "门禁测试", + "attendanceType": "51", + "actionTime": "2023-08-24 02:17:55", + "reportTime": "2023-08-24 02:17:56", + "dataSource": 1, + "supplementFormId": null, + "number": null, + imageType: 1, + openType: 42, + startSwingTime: "2025-05-13 02:17:55", + }, { + "id": 17, + "personId": 21059, + "personCode": "112325", + "personName": "小高测试用例1", + "departmentId": 53, + "deptName": "小高测试用例部门1", + "cardNo": "40D3989B", + "siteId": "1", + "siteName": "门禁测试", + "attendanceType": "51", + "actionTime": "2023-08-24 02:17:55", + "reportTime": "2023-08-24 02:17:56", + "dataSource": 1, + "supplementFormId": null, + "number": null, + imageType: 1, + openType: 42, + startSwingTime: "2025-05-13 02:17:55", + }, { + "id": 17, + "personId": 21059, + "personCode": "112325", + "personName": "小高测试用例1", + "departmentId": 53, + "deptName": "小高测试用例部门1", + "cardNo": "40D3989B", + "siteId": "1", + "siteName": "门禁测试", + "attendanceType": "51", + "actionTime": "2023-08-24 02:17:55", + "reportTime": "2023-08-24 02:17:56", + "dataSource": 1, + "supplementFormId": null, + "number": null, + imageType: 2, + openType: 42, + startSwingTime: "2025-05-13 02:17:55", + }, { + "id": 17, + "personId": 21059, + "personCode": "112325", + "personName": "小高测试用例1", + "departmentId": 53, + "deptName": "小高测试用例部门1", + "cardNo": "40D3989B", + "siteId": "1", + "siteName": "门禁测试", + "attendanceType": "51", + "actionTime": "2023-08-24 02:17:55", + "reportTime": "2023-08-24 02:17:56", + "dataSource": 1, + "supplementFormId": null, + "number": null, + imageType: 1, + openType: 42, + startSwingTime: "2025-05-13 02:17:55", + }, { + "id": 17, + "personId": 21059, + "personCode": "112325", + "personName": "小高测试用例1", + "departmentId": 53, + "deptName": "小高测试用例部门1", + "cardNo": "40D3989B", + "siteId": "1", + "siteName": "门禁测试", + "attendanceType": "51", + "actionTime": "2023-08-24 02:17:55", + "reportTime": "2023-08-24 02:17:56", + "dataSource": 1, + "supplementFormId": null, + "number": null, + imageType: 1, + openType: 42, + startSwingTime: "2025-05-13 02:17:55", + }], + autoQuery:false }) onMounted(() => { @@ -69,7 +204,24 @@ onMounted(() => {