Browse Source

我的界面

newMaster
1747191978@qq.com 4 months ago
parent
commit
b6c7a899a4
  1. 1
      acupuncture-前台/src/layout/components/Navbar.vue
  2. 15
      acupuncture-前台/src/router/index.js
  3. 28
      acupuncture-前台/src/views/system/user/profile/index.vue

1
acupuncture-前台/src/layout/components/Navbar.vue

@ -33,7 +33,6 @@
<size-select id="size-select" class="right-menu-item hover-effect" />
</el-tooltip>
</template> -->
<!-- <el-dropdown
class="avatar-container right-menu-item hover-effect"
trigger="click"

15
acupuncture-前台/src/router/index.js

@ -83,7 +83,7 @@ export const constantRoutes = [
path: "/patientIndex",
component: () => import("@/views/patientFile/index"),
name: "patientIndex",
meta: { title: "患者档案", icon: "dashboard", },
meta: { title: "患者档案", icon: "dashboard" },
},
],
},
@ -96,13 +96,13 @@ export const constantRoutes = [
path: "/medicalIndex",
component: () => import("@/views/medicalFile/index"),
name: "medicalIndex",
meta: { title: "诊疗档案", icon: "dashboard", },
meta: { title: "诊疗档案", icon: "dashboard" },
},
],
},
{
path: "/followFile",
meta: { title: "随访档案", icon: "dashboard", },
meta: { title: "随访档案", icon: "dashboard" },
component: Layout,
redirect: "followFile",
children: [
@ -110,33 +110,32 @@ export const constantRoutes = [
path: "/followIndex",
component: () => import("@/views/followFile/index"),
name: "followIndex",
meta: { title: "随访队列", icon: "dashboard", },
meta: { title: "随访队列", icon: "dashboard" },
},
{
path: "/followSubjects",
component: () => import("@/views/followFile/subjects"),
name: "followSubjects",
meta: { title: "随访对象", icon: "dashboard", },
meta: { title: "随访对象", icon: "dashboard" },
},
{
path: "/followWork",
component: () => import("@/views/followFile/work"),
name: "followWork",
meta: { title: "随访工单", icon: "dashboard", },
meta: { title: "随访工单", icon: "dashboard" },
},
],
},
{
path: "/user",
component: Layout,
hidden: true,
redirect: "noredirect",
children: [
{
path: "profile",
component: () => import("@/views/system/user/profile/index"),
name: "Profile",
meta: { title: "个人中心", icon: "user" },
meta: { title: "我的", icon: "user" },
},
],
},

28
acupuncture-前台/src/views/system/user/profile/index.vue

@ -1,14 +1,18 @@
<template>
<div class="app-container">
<el-row :gutter="20">
<el-col :span="6" :xs="24">
<el-col :span="6" :xs="24" style="height: 100%">
<el-card class="box-card">
<div slot="header" class="clearfix">
<span>个人信息</span>
</div>
<div>
<div class="text-center">
<userAvatar />
<img
src="@/assets/images/zj.png"
alt=""
style="border-radius: 50%"
/>
</div>
<ul class="list-group list-group-striped">
<li class="list-group-item">
@ -25,16 +29,18 @@
</li>
<li class="list-group-item">
<svg-icon icon-class="tree" />所属部门
<div class="pull-right" v-if="user.dept">{{ user.dept.deptName }} / {{ postGroup }}</div>
<div class="pull-right" v-if="user.dept">
{{ user.dept.deptName }} / {{ postGroup }}
</div>
</li>
<li class="list-group-item">
<!-- <li class="list-group-item">
<svg-icon icon-class="peoples" />所属角色
<div class="pull-right">{{ roleGroup }}</div>
</li>
<li class="list-group-item">
</li> -->
<!-- <li class="list-group-item">
<svg-icon icon-class="date" />创建日期
<div class="pull-right">{{ user.createTime }}</div>
</li>
</li> -->
</ul>
</div>
</el-card>
@ -72,7 +78,7 @@ export default {
user: {},
roleGroup: {},
postGroup: {},
activeTab: "userinfo"
activeTab: "userinfo",
};
},
created() {
@ -80,12 +86,12 @@ export default {
},
methods: {
getUser() {
getUserProfile().then(response => {
getUserProfile().then((response) => {
this.user = response.data;
this.roleGroup = response.roleGroup;
this.postGroup = response.postGroup;
});
}
}
},
},
};
</script>

Loading…
Cancel
Save