From b3e919fb794a62e6c896b57b9d50035dc68777f5 Mon Sep 17 00:00:00 2001 From: Rain_ <904416525@qq.com> Date: Wed, 25 Jun 2025 10:18:01 +0800 Subject: [PATCH] =?UTF-8?q?flx:=E4=BF=AE=E5=A4=8D=E8=80=83=E5=8B=A4?= =?UTF-8?q?=E7=BB=84=E5=88=A0=E9=99=A4=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/projectFront/laborManage/attendanceGroup.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/projectFront/laborManage/attendanceGroup.vue b/src/views/projectFront/laborManage/attendanceGroup.vue index 7c237709..5073f291 100644 --- a/src/views/projectFront/laborManage/attendanceGroup.vue +++ b/src/views/projectFront/laborManage/attendanceGroup.vue @@ -527,7 +527,7 @@ style="border: 0 !important; color: #f56c6c" type="text" icon="el-icon-delete" - @click="deleteBtn(scope.row)" + @click="deleteAttendanceBatchPersonnel(scope.row)" >删除 @@ -1122,8 +1122,8 @@ export default { }); }, // 删除考勤组人员 - deleteAttendanceBatchPersonnel() { - if (this.$refs.selectworkerTable.selection.length === 0) + deleteAttendanceBatchPersonnel(row) { + if (this.$refs.selectworkerTable.selection.length === 0 && !row.id) return this.$message.warning("请勾选需要删除的数据!"); this.$confirm("删除后操作不可恢复,请谨慎操作!", "警告", { confirmButtonText: "确定", @@ -1135,7 +1135,7 @@ export default { deleteWorkerListFromAttendanceGroupV2Api({ id: this.attendanceInfo.id, - workerIdList: ids, + workerIdList: row.id ? [row.id] : ids, }).then((res) => { this.getDataList(); this.getSelectedPersonListFn();