|
@@ -45,6 +45,7 @@
|
|
|
import {
|
|
import {
|
|
|
deepClone
|
|
deepClone
|
|
|
} from '@/util/util.js'
|
|
} from '@/util/util.js'
|
|
|
|
|
+ import {pushFace} from "@/api/estate/useraccesspermissions";
|
|
|
export default {
|
|
export default {
|
|
|
components: {
|
|
components: {
|
|
|
detail
|
|
detail
|
|
@@ -380,8 +381,15 @@
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
//下发人脸
|
|
//下发人脸
|
|
|
- pushUserFaceToDevice(id) {
|
|
|
|
|
- pushGuestFace(id).then(res => {
|
|
|
|
|
|
|
+ pushUserFaceToDevice(id, userName, deviceIdList) {
|
|
|
|
|
+ let params ={
|
|
|
|
|
+ userId: id,
|
|
|
|
|
+ userName: userName,
|
|
|
|
|
+ userType: "FK_",
|
|
|
|
|
+ targetType: 1,
|
|
|
|
|
+ deviceIds: deviceIdList.join(","),
|
|
|
|
|
+ }
|
|
|
|
|
+ pushFace(params).then(res => {
|
|
|
this.$message({
|
|
this.$message({
|
|
|
type: "success",
|
|
type: "success",
|
|
|
message: "操作成功!"
|
|
message: "操作成功!"
|
|
@@ -389,14 +397,19 @@
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
//禁用人脸
|
|
//禁用人脸
|
|
|
- deleteUserFaceFromDevice(id) {
|
|
|
|
|
|
|
+ deleteUserFaceFromDevice(id, deviceIdList) {
|
|
|
this.$confirm("确定禁用人脸吗?", {
|
|
this.$confirm("确定禁用人脸吗?", {
|
|
|
confirmButtonText: "确定",
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
cancelButtonText: "取消",
|
|
|
type: "warning"
|
|
type: "warning"
|
|
|
})
|
|
})
|
|
|
.then(() => {
|
|
.then(() => {
|
|
|
- return deleteGuestFace(id);
|
|
|
|
|
|
|
+ let params={
|
|
|
|
|
+ deviceIds:deviceIdList.join(','),
|
|
|
|
|
+ userId:id,
|
|
|
|
|
+ userType:"FK_"
|
|
|
|
|
+ };
|
|
|
|
|
+ return deleteGuestFace(params);
|
|
|
})
|
|
})
|
|
|
.then(() => {
|
|
.then(() => {
|
|
|
this.$message({
|
|
this.$message({
|