diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index c3a9569..5ee6c61 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -48,7 +48,11 @@ {{ (queryParams.pageNum - 1) * 10 + scope.$index + 1 }} - + + + @@ -127,6 +131,11 @@ export default { this.getList(); }, methods: { + /* 手机号码脱敏 */ + hidePhone(phone,row) { + if (!phone) return '' + return phone.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2') + }, // 加载角色数据 async initRoles() { await getRoleList({}).then(res => { diff --git a/src/views/system/user/prop/userForm.vue b/src/views/system/user/prop/userForm.vue index 7f92c07..f228c9b 100644 --- a/src/views/system/user/prop/userForm.vue +++ b/src/views/system/user/prop/userForm.vue @@ -5,7 +5,7 @@
- +