diff --git a/nladmin-ui/src/views/system/user/center.vue b/nladmin-ui/src/views/system/user/center.vue
index 2dc1a2c..d211004 100644
--- a/nladmin-ui/src/views/system/user/center.vue
+++ b/nladmin-ui/src/views/system/user/center.vue
@@ -20,8 +20,15 @@
- - 用户姓名
{{ user.nickName }}
- - 所属部门
{{ user.dept.name }}
+ - 用户姓名
{{ user.personName }}
+ - 所属部门
+
+
+ {{ item.name }}
+
+ {{ item.name }}...
+
+
- 手机号码
{{ user.phone }}
- 用户邮箱
{{ user.email }}
-
@@ -41,8 +48,8 @@
-
-
+
+
用户姓名不作为登录使用
@@ -142,8 +149,9 @@ export default {
'Authorization': getToken()
},
form: {},
+ deptsName: '',
rules: {
- nickName: [
+ personName: [
{ required: true, message: '请输入用户姓名', trigger: 'blur' },
{ min: 2, max: 20, message: '长度在 2 到 20 个字符', trigger: 'blur' }
],
@@ -156,12 +164,13 @@ export default {
computed: {
...mapGetters([
'user',
+ 'depts',
'updateAvatarApi',
'baseApi'
])
},
created() {
- this.form = { id: this.user.id, nickName: this.user.nickName, gender: this.user.gender, phone: this.user.phone }
+ this.form = { id: this.user.id, personName: this.user.personName, gender: this.user.gender, phone: this.user.phone }
store.dispatch('GetInfo').then(() => {})
},
methods: {