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" /> <size-select id="size-select" class="right-menu-item hover-effect" />
</el-tooltip> </el-tooltip>
</template> --> </template> -->
<!-- <el-dropdown <!-- <el-dropdown
class="avatar-container right-menu-item hover-effect" class="avatar-container right-menu-item hover-effect"
trigger="click" trigger="click"

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

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

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

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

Loading…
Cancel
Save