From 99dc9c330c472ff8b4601aaf2cfc4ee8f625f22b Mon Sep 17 00:00:00 2001 From: odjbin <1042039504@qq.com> Date: Tue, 10 Sep 2024 13:45:19 +0800 Subject: [PATCH] =?UTF-8?q?fix=20:=20=E5=88=9D=E5=A7=8B=E5=8C=96=E4=B8=AA?= =?UTF-8?q?=E4=BA=BA=E4=B8=AD=E5=BF=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/auth/auth.js | 7 + src/layout/navbar/index.vue | 11 +- src/views/auth/index.vue | 367 ++++++++++++++++++++---------------- 3 files changed, 217 insertions(+), 168 deletions(-) diff --git a/src/api/auth/auth.js b/src/api/auth/auth.js index 45155f3..38be5c4 100644 --- a/src/api/auth/auth.js +++ b/src/api/auth/auth.js @@ -7,3 +7,10 @@ export const modifyUser=(data)=>{ data }) } +export const editPassword=(data)=>{ + return request({ + url:'/admin/mosr/user/update/password', + method:'post', + data + }) +} diff --git a/src/layout/navbar/index.vue b/src/layout/navbar/index.vue index 40ddc5a..59bdd93 100644 --- a/src/layout/navbar/index.vue +++ b/src/layout/navbar/index.vue @@ -4,10 +4,13 @@
-
- - {{userInfo.userName}} -
+
+
{{ userInfo.userName }} + + + +
+
  • 个人中心
  • diff --git a/src/views/auth/index.vue b/src/views/auth/index.vue index 45e19cc..5498b2b 100644 --- a/src/views/auth/index.vue +++ b/src/views/auth/index.vue @@ -6,37 +6,91 @@
    - -
    - +
    +
    + + + + 用户名: +
    +
    {{ userParams.userName }}
    - - - - 用户呢称: {{ userParams.nickName }} +
    + + + + 用户名称: +
    +
    {{ userParams.nickName }}
    +
    +
    +
    + + + + 工号: +
    +
    {{ userParams.workCode }}
    +
    +
    +
    + + + + 电话号码: +
    +
    {{ userParams.mobile }}
    +
    +
    +
    + + + + 所属公司: +
    +
    {{ userParams.subCompanyName }}
    +
    +
    +
    + + + + 所属部门: +
    +
    {{ userParams.departmentName }}
    +
    +
    +
    + + + + 岗位: +
    +
    {{ userParams.jobActivityDesc }}
    +
    +
    +
    + + + + 账号类型: +
    +
    {{ userParams.accountType === '0' ? '主账号' : '次账号' }}
    +
    +
    +
    + + + + 所属角色: +
    +
    {{ belongToRole(userParams.roles) }}
    -
    - - 电话号码: {{ userParams.phoneNumber }}
    -
    - - 用户邮箱:{{ userParams.email }}
    -
    - - 所属部门: {{ userParams.city }}
    -
    - - 所属角色: {{ userParams.createBy }}
    -
    - - 创建日期:{{ userParams.loginDate }}
    -
    -
    @@ -45,143 +99,121 @@ - - - - - - - - - - - - - - - - - - - - - 保存 - 关闭 - - - - - - - - - - - - - - - - 保存 - 关闭 - - - - + + + + + + + + + + + + 提交 + 关闭 + +
    \ No newline at end of file + .userInfo_item { + display: flex;align-items: center; + justify-content: space-between; + height: 40px; + border-bottom-style: solid; + border-color: #daddd2; + border-width: 1px; + //text-align: left; + //line-height: 40px; + + } + + // + //.userInfo_item > div { + // float: right; + //} +} + +