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 @@
用户管理
- {{ scope.row.is_enabled === 1 ? '启用' : '未启用' }}
+ {{
+ scope.row.is_enabled === 1 ? '启用' : '未启用'
+ }}
+
编辑
录入人脸
-
+
分配功能权限
@@ -152,7 +155,7 @@
@change="(val) => handleCheckAllChange(val,'drug_module_id')"
>全选
-
+
handleCheckedCitiesChange(val,'drug_module_id')"
@@ -169,7 +172,7 @@
@change="(val) =>handleCheckAllChange(val,'client_module_id')"
>全选
-
+
handleCheckedCitiesChange(val,'client_module_id')"
@@ -186,7 +189,7 @@
@change="(val) =>handleCheckAllChange(val,'standard_module_id')"
>全选
-
+
handleCheckedCitiesChange(val,'standard_module_id')"
@@ -203,7 +206,7 @@
@change="(val) =>handleCheckAllChange(val,'consumables_module_id')"
>全选
-
+
handleCheckedCitiesChange(val,'consumables_module_id')"
@@ -220,7 +223,7 @@
@change="(val) =>handleCheckAllChange(val,'instrument_module_id')"
>全选
-
+
handleCheckedCitiesChange(val,'instrument_module_id')"
@@ -275,11 +278,11 @@ import {
update
} from '@/api/user/user'
import stringify from '@/utils/stringify'
-import { throttle, web_stream as webStream } from '@/utils'
+import {throttle, web_stream as webStream} from '@/utils'
export default {
name: 'User',
- components: { UserForm },
+ components: {UserForm},
data() {
return {
// 全选相关
@@ -296,7 +299,7 @@ export default {
tableData: [],
manageer: null,
- headerStyle: { 'background': '#E6E6E6' },
+ headerStyle: {'background': '#E6E6E6'},
dialogVisible: false,
userFormTitle: '',
userFormData: {},
@@ -464,7 +467,7 @@ export default {
this.roleDialogVisible = true
this.tabsLoading = true
this.formData.user_id = row.user_id
- get_user_power_list(stringify({ 'user_id': row.user_id })).then(res => {
+ 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%;
}