From 8d2b984abb8f3a4074391a65bbaf42376194e057 Mon Sep 17 00:00:00 2001 From: lj7788 Date: Tue, 31 Mar 2026 17:55:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=85=8D=E7=BD=AE=E9=A1=B9?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E6=95=B0=E6=8D=AE=E6=97=B6=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yanzhu-ui-vue3/src/views/manage/attendanceUbiData/index.vue | 6 +++++- .../src/views/manage/attendanceUbiData/statistics.vue | 6 +++++- .../src/views/manage/attendance_ubi_device/index.vue | 6 +++++- .../src/views/manage/mobileAttendanceData/index.vue | 6 +++++- 4 files changed, 20 insertions(+), 4 deletions(-) diff --git a/yanzhu-ui-vue3/src/views/manage/attendanceUbiData/index.vue b/yanzhu-ui-vue3/src/views/manage/attendanceUbiData/index.vue index 81414a4c..f4b3df74 100644 --- a/yanzhu-ui-vue3/src/views/manage/attendanceUbiData/index.vue +++ b/yanzhu-ui-vue3/src/views/manage/attendanceUbiData/index.vue @@ -381,7 +381,11 @@ queryParams.value.inTime = proxy.$dt(new Date()).format("YYYY-MM-DD"); function getCfgList() { listAttendance_cfg({ projectId: userStore.currentPrjId, pageNum: 1, pageSize: 100 }).then(response => { data.cfgOptions = response.rows || [] - queryParams.value.cfgId = data.cfgOptions[0]?.id || null + if (data.cfgOptions.length > 0) { + queryParams.value.cfgId = data.cfgOptions[0].id + } else { + queryParams.value.cfgId = null + } getList() }); } diff --git a/yanzhu-ui-vue3/src/views/manage/attendanceUbiData/statistics.vue b/yanzhu-ui-vue3/src/views/manage/attendanceUbiData/statistics.vue index 2e166e83..0f7eb809 100644 --- a/yanzhu-ui-vue3/src/views/manage/attendanceUbiData/statistics.vue +++ b/yanzhu-ui-vue3/src/views/manage/attendanceUbiData/statistics.vue @@ -211,7 +211,11 @@ queryParams.value.inTime = proxy.$dt(new Date()).format("YYYY-MM-DD"); function getCfgList() { listAttendance_cfg({ projectId: userStore.currentPrjId, pageNum: 1, pageSize: 100 }).then(response => { data.cfgOptions = response.rows || [] - queryParams.value.cfgId = data.cfgOptions[0]?.id || null + if (data.cfgOptions.length > 0) { + queryParams.value.cfgId = data.cfgOptions[0].id + } else { + queryParams.value.cfgId = null + } handleQuery(); }); } diff --git a/yanzhu-ui-vue3/src/views/manage/attendance_ubi_device/index.vue b/yanzhu-ui-vue3/src/views/manage/attendance_ubi_device/index.vue index 8ff8d80a..9b447ab7 100644 --- a/yanzhu-ui-vue3/src/views/manage/attendance_ubi_device/index.vue +++ b/yanzhu-ui-vue3/src/views/manage/attendance_ubi_device/index.vue @@ -417,7 +417,11 @@ function getWorkAreaTree() { function getCfgList() { listAttendance_cfg({ projectId: userStore.currentPrjId, pageNum: 1, pageSize: 100 }).then(response => { data.cfgOptions = response.rows || [] - queryParams.value.cfgId = data.cfgOptions[0]?.id || null + if (data.cfgOptions.length > 0) { + queryParams.value.cfgId = data.cfgOptions[0].id + } else { + queryParams.value.cfgId = null + } getList() }); } diff --git a/yanzhu-ui-vue3/src/views/manage/mobileAttendanceData/index.vue b/yanzhu-ui-vue3/src/views/manage/mobileAttendanceData/index.vue index ede36479..2357b91c 100644 --- a/yanzhu-ui-vue3/src/views/manage/mobileAttendanceData/index.vue +++ b/yanzhu-ui-vue3/src/views/manage/mobileAttendanceData/index.vue @@ -293,7 +293,11 @@ function handleExport() { function getCfgList() { listAttendance_cfg({ projectId: userStore.currentPrjId, pageNum: 1, pageSize: 100 }).then(response => { data.cfgOptions = response.rows || [] - queryParams.value.cfgId = data.cfgOptions[0]?.id || null + if (data.cfgOptions.length > 0) { + queryParams.value.cfgId = data.cfgOptions[0].id + } else { + queryParams.value.cfgId = null + } getList() }); }