人脸审批相关修改
This commit is contained in:
1 parent
a7f82a1ee7
commit
866cb60801
6 files changed
+94
-65
No files matched your search
@@ -55,10 +55,12 @@
|
||||
<dict-tag :options="check_status" :value="row.processStatus" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="创建时间" prop="createTime" show-overflow-tooltip min-width="160" />
|
||||
<el-table-column label="审核时间" prop="processTime" show-overflow-tooltip min-width="160" />
|
||||
<el-table-column label="操作" min-width="100" fixed="right">
|
||||
<el-table-column label="操作" min-width="160" fixed="right">
|
||||
<template #default="scope">
|
||||
<el-button type="primary" size="small" link icon="VideoPlay" @click="deal(scope.row)">开始处理</el-button>
|
||||
<el-button v-auth="'userFace_sysUserFace_del'" link type="danger" @click="delFace(scope.row)">删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
@@ -79,6 +81,7 @@ import { getUserFaceList } from "/@/api/admin/userFaceApprove"
|
||||
import { useMessage } from "/@/hooks/message"
|
||||
import { useDict } from "/@/hooks/dict"
|
||||
import { getDicts } from "/@/api/admin/dict"
|
||||
import * as userFaceApi from "/@/api/admin/userFace"
|
||||
|
||||
const { check_status } = useDict("check_status")
|
||||
const queryRef = ref()
|
||||
@@ -139,4 +142,16 @@ const deal = (row: any) => {
|
||||
const taskSubmitEvent = () => {
|
||||
getDataList()
|
||||
}
|
||||
|
||||
// 删除人脸
|
||||
const delFace = async (row: any) => {
|
||||
try {
|
||||
await useMessage().delConfirm("是否删除人脸?")
|
||||
await userFaceApi.delObjs([row.id])
|
||||
useMessage().success("删除成功")
|
||||
getDataList()
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
}
|
||||
}
|
||||
</script>
|
||||
Reference in new issue
Block a user