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()
+ }
+}