0329
This commit is contained in:
parent
ad16a963e4
commit
8b7481fb43
|
@ -154,7 +154,7 @@
|
||||||
let video = document.getElementById('video');
|
let video = document.getElementById('video');
|
||||||
let stream = video.srcObject;
|
let stream = video.srcObject;
|
||||||
let tracks = stream.getTracks();
|
let tracks = stream.getTracks();
|
||||||
this.$emit('close');
|
// this.$emit('close');
|
||||||
tracks.forEach(track => {
|
tracks.forEach(track => {
|
||||||
track.stop()
|
track.stop()
|
||||||
});
|
});
|
||||||
|
|
|
@ -631,14 +631,13 @@
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-dialog :visible.sync="limitedPhoto" @close="closeCamera" id="loginFaceWrap">
|
<el-dialog :visible.sync="limitedPhoto" @close="closeCamera" id="loginFaceWrap">
|
||||||
<div style="font-size: 28px;color: #333333;text-align: center;font-weight: bold;">审核人员确认</div>
|
<div style="font-size: 28px;color: #333333;text-align: center;font-weight: bold;">操作人员确认</div>
|
||||||
<div class="testTracking">
|
<div class="testTracking">
|
||||||
<faceLogin
|
<faceLogin
|
||||||
v-if="limitedPhoto"
|
v-if="limitedPhoto"
|
||||||
ref="faceTracking"
|
ref="faceTracking"
|
||||||
name="faceLogin"
|
name="faceLogin"
|
||||||
@func="getMsgFormSon"
|
@func="getMsgFormSon"
|
||||||
@close="closeDialog"
|
|
||||||
></faceLogin>
|
></faceLogin>
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
@ -1217,6 +1216,7 @@
|
||||||
type: "error",
|
type: "error",
|
||||||
})
|
})
|
||||||
.then( () => {
|
.then( () => {
|
||||||
|
that.limitedPhoto = false;
|
||||||
submitOperation(that.id,{token:data.token}).then(res=>{
|
submitOperation(that.id,{token:data.token}).then(res=>{
|
||||||
if(res.code===200){
|
if(res.code===200){
|
||||||
that.$router.push({name: "operation"});
|
that.$router.push({name: "operation"});
|
||||||
|
@ -1225,8 +1225,8 @@
|
||||||
that.$message.error(res.msg)
|
that.$message.error(res.msg)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}).catch((err) => {
|
}).catch(() => {
|
||||||
that.$message.error(err);
|
that.limitedPhoto = false;
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
submitOperation(that.id,{token:data.token}).then((res) => {
|
submitOperation(that.id,{token:data.token}).then((res) => {
|
||||||
|
@ -1242,14 +1242,6 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
closeDialog(){
|
|
||||||
this.limitedPhoto = false;
|
|
||||||
},
|
|
||||||
//点击人脸验证
|
|
||||||
directorConfirm() {
|
|
||||||
this.limitedPhoto = true;
|
|
||||||
},
|
|
||||||
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue