|
@@ -245,7 +245,7 @@
|
|
|
fixed="right"
|
|
|
label="操作"
|
|
|
show-overflow-tooltip
|
|
|
- width="300"
|
|
|
+ width="380"
|
|
|
>
|
|
|
<template #default="{ row }">
|
|
|
<!-- <el-button type="text" @click="listeningHost(row)">
|
|
@@ -257,6 +257,9 @@
|
|
|
<el-button type="text" @click="allFloorDistributeByIdFn(row)">
|
|
|
下发数据
|
|
|
</el-button>
|
|
|
+ <el-button type="text" @click="allFloorDistributeImageByIdFn(row)">
|
|
|
+ 下发人脸
|
|
|
+ </el-button>
|
|
|
<el-button type="text" @click="handleDetail(row)">详情</el-button>
|
|
|
<el-button type="text" @click="handleEdit(row)">编辑</el-button>
|
|
|
<el-button type="text" @click="handleDelete(row)">删除</el-button>
|
|
@@ -292,6 +295,7 @@
|
|
|
synchronization,
|
|
|
allFloorDistribute,
|
|
|
allFloorDistributeById,
|
|
|
+ allFloorDistributeImageById,
|
|
|
} from './api/index'
|
|
|
import {
|
|
|
Delete,
|
|
@@ -394,6 +398,16 @@
|
|
|
await fetchData()
|
|
|
state.listLoading = false
|
|
|
}
|
|
|
+ //下发人脸
|
|
|
+ const allFloorDistributeImageByIdFn = async (row) => {
|
|
|
+ state.listLoading = true
|
|
|
+ const { msg } = await allFloorDistributeImageById({
|
|
|
+ id: row.id,
|
|
|
+ })
|
|
|
+ $baseMessage(msg, 'success', 'vab-hey-message-success')
|
|
|
+ await fetchData()
|
|
|
+ state.listLoading = false
|
|
|
+ }
|
|
|
//用户删除
|
|
|
const handleDelete = (row) => {
|
|
|
if (row.id) {
|
|
@@ -505,6 +519,7 @@
|
|
|
remoteMethodAccount,
|
|
|
handlePremission,
|
|
|
allFloorDistributeByIdFn,
|
|
|
+ allFloorDistributeImageByIdFn,
|
|
|
getPupilFn,
|
|
|
handleImport,
|
|
|
Delete,
|