diff --git a/src/views/user/index.vue b/src/views/user/index.vue index 0f94333..6aedae9 100644 --- a/src/views/user/index.vue +++ b/src/views/user/index.vue @@ -2,8 +2,8 @@
用户管理
- - + + - - + + 搜索 - 新增用户 + 新增用户
- - + +
编辑 录入人脸 - + 分配功能权限 @@ -152,7 +155,7 @@ @change="(val) => handleCheckAllChange(val,'drug_module_id')" >全选 -
+
全选 -
+
全选 -
+
全选 -
+
全选 -
+
{ + get_user_power_list(stringify({'user_id': row.user_id})).then(res => { // client_manage: [{have: 1, module_code: "MyDrug", module_id: "43272548-116f-11ed-8d0e-f47b094925e5",…},…] // consumables_manage: [] // drug_manage: [{have: 1, module_code: "DrugScanBarCode", module_id: "4327254a-116f-11ed-8d11-f47b094925e5",…},…] @@ -490,7 +493,7 @@ export default { cancelButtonText: '取消', type: 'warning' }).then(() => - del(stringify({ 'user_id': this.multipleSelection[0].user_id })).then( + del(stringify({'user_id': this.multipleSelection[0].user_id})).then( res => { this.$message.success({ type: 'success', @@ -539,12 +542,13 @@ export default { instrument_module_id: [] } }, - handleFaceCancel: throttle(function() { + handleFaceCancel: throttle(function () { faceStop().then( res => { console.log(res) } ) + this.dialogFaceVisible = false this.web_stream.destroy() this.play = null this.rflag = false @@ -553,6 +557,9 @@ export default { this.play = null this.rflag = false this.dialogFaceVisible = false + if (this.web_stream) { + this.web_stream.destroy() + } } } } @@ -589,17 +596,13 @@ export default { } } - #video, canvas { - position: absolute; - top: 100px; - left: 120px; + #video { border-radius: 50%; border: 1px solid #707070; } .face-content { text-align: center; - height: 18.75rem; width: 100%; }