From 7c501729227f1a2b197726ea68d69696bf0fee45 Mon Sep 17 00:00:00 2001 From: weiwei Date: Mon, 28 Apr 2025 20:12:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=B9=E9=87=8F=E5=88=A0=E9=99=A4=E4=BA=BA?= =?UTF-8?q?=E8=84=B8=E3=80=81=E7=A7=BB=E5=8A=A8=E5=AE=A1=E6=89=B9=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/system/userFaceApprove/index.vue | 56 +++++++++++++++---- 1 file changed, 44 insertions(+), 12 deletions(-) diff --git a/src/views/admin/system/userFaceApprove/index.vue b/src/views/admin/system/userFaceApprove/index.vue index 895aa1b..c5458c5 100644 --- a/src/views/admin/system/userFaceApprove/index.vue +++ b/src/views/admin/system/userFaceApprove/index.vue @@ -26,21 +26,36 @@ 查询 重置 - - 审批 - + +
+ + 删除 + + + 审批 + +
+
@@ -123,6 +138,7 @@ const loading = ref() // 多选rows const selectObjs = ref([]) as any +const selectIds = ref([]) as any // 是否可以多选 const multiple = ref(true) @@ -175,6 +191,7 @@ const handleSelectable = (row: any) => { // 多选事件 const handleSelectionChange = (objs: { userId: string; processId: string | null }[]) => { selectObjs.value = objs.map(({ userId, processId }) => ({ userId, processId })) + selectIds.value = objs.map((item: any) => item.id) multiple.value = !objs.length } @@ -219,4 +236,19 @@ const delFace = async (row: any) => { loading.value.close() } } + +// 批量删除人脸 +const handleDelete = async (ids: any) => { + try { + await useMessage().delConfirm("是否批量删除人脸?") + loadingStart() + await userFaceApi.delObjs(ids).finally(() => loading.value.close()) + useMessage().success("删除成功") + getDataList() + } catch (error: any) { + useMessage().error(error) + } finally { + loading.value.close() + } +}