|
@@ -103,6 +103,13 @@
|
|
|
>
|
|
|
整楼下发数据
|
|
|
</el-button>
|
|
|
+ <el-button
|
|
|
+ :icon="Refresh"
|
|
|
+ type="success"
|
|
|
+ @click="allImageDistributeFn($event)"
|
|
|
+ >
|
|
|
+ 整楼下发人脸
|
|
|
+ </el-button>
|
|
|
<!-- <el-button :icon="Delete" type="danger" @click="handleDelete($event)">
|
|
|
批量删除
|
|
|
</el-button> -->
|
|
@@ -296,6 +303,7 @@
|
|
|
allFloorDistribute,
|
|
|
allFloorDistributeById,
|
|
|
allFloorDistributeImageById,
|
|
|
+ allImageDistribute,
|
|
|
} from './api/index'
|
|
|
import {
|
|
|
Delete,
|
|
@@ -496,6 +504,15 @@
|
|
|
state.listLoading = false
|
|
|
}
|
|
|
|
|
|
+ //整栋楼一起下发人脸
|
|
|
+ const allImageDistributeFn = async () => {
|
|
|
+ state.listLoading = true
|
|
|
+ const { msg } = await allImageDistribute()
|
|
|
+ $baseMessage(msg, 'success', 'vab-hey-message-success')
|
|
|
+ await fetchData()
|
|
|
+ state.listLoading = false
|
|
|
+ }
|
|
|
+
|
|
|
onMounted(() => {
|
|
|
fetchData()
|
|
|
getPupilFn()
|
|
@@ -510,6 +527,7 @@
|
|
|
handleCurrentChange,
|
|
|
synchronizationFn,
|
|
|
allFloorDistributeFn,
|
|
|
+ allImageDistributeFn,
|
|
|
queryData,
|
|
|
resetData,
|
|
|
fetchData,
|