diff --git a/src/views/user/index.vue b/src/views/user/index.vue index 5c03948..0d03a11 100644 --- a/src/views/user/index.vue +++ b/src/views/user/index.vue @@ -61,7 +61,7 @@ align="center" > 编辑 录入人脸 - 分配功能权限 + + + 分配功能权限 + @@ -123,7 +129,12 @@ width="38%" @close="userFormDialogClose" > - + - 全选 + 全选 +
- - {{ item.module_name }} + + + {{ item.module_name }} + - 全选 + 全选 +
- - {{ item.module_name }} + + + {{ item.module_name }} + - 全选 + 全选 +
- - {{ item.module_name }} + + + {{ item.module_name }} + - 全选 + 全选 +
- - {{ item.module_name }} + + + {{ item.module_name }} + - 全选 + 全选 +
- - {{ item.module_name }} + + + {{ item.module_name }} + @@ -186,12 +247,11 @@ destroy-on-close :visible="dialogFaceVisible" width="400px" - @close="handleCancel" + @close="handleFaceCancel" >
-
程小红
工号:779
@@ -273,7 +333,6 @@ export default { // 人脸识别 dialogFaceVisible: false, videoObj: null, - trackerTask: null, web_stream: null, img_list: [], play: null, @@ -329,7 +388,7 @@ export default { handleCheckedCitiesChange(value, t) { const checkedCount = value.length this.$set(this, 'checkAll_' + t, checkedCount === this[t + 'Options'].length) - this['isIndeterminate_' + t] = checkedCount > 0 && checkedCount < this[ t + 'Options'].length + this['isIndeterminate_' + t] = checkedCount > 0 && checkedCount < this[t + 'Options'].length }, handleSelectionChange(val) { this.multipleSelection = val @@ -375,7 +434,9 @@ export default { }, handleFace(index, row) { faceStart().then(res => { - setTimeout(() => { this.play = process.env.VUE_APP_FACE_API + '/face/play/' }, 200) + setTimeout(() => { + this.play = process.env.VUE_APP_FACE_API + '/face/play/' + }, 200) }) this.rflag = true this.dialogFaceVisible = true @@ -418,7 +479,9 @@ export default { this.formData.instrument_module_id = res.data.instrument_manage.filter(item => item.have === 1).map(item => item.module_id) this.formData.standard_module_id = res.data.standard_manage.filter(item => item.have === 1).map(item => item.module_id) this.formData.client_module_id = res.data.client_manage.filter(item => item.have === 1).map(item => item.module_id) - }).finally(() => { this.tabsLoading = false }) + }).finally(() => { + this.tabsLoading = false + }) }, handleDelTem() { if (this.multipleSelection.length !== 1) { @@ -479,8 +542,7 @@ export default { instrument_module_id: [] } }, - - handleCancel() { + handleFaceCancel() { faceStop().then( res => { console.log(res) @@ -489,11 +551,13 @@ export default { this.web_stream.destroy() this.play = null this.rflag = false + }, + handleCancel() { + this.play = null + this.rflag = false this.dialogFaceVisible = false this.videoObj.srcObject.getTracks()[0].stop() - this.trackerTask.stop() }, - // 成功显示 success(stream) { this.videoObj.srcObject = stream @@ -509,55 +573,65 @@ export default {