|
@@ -1,133 +1,134 @@
|
1
|
1
|
<template>
|
2
|
|
-<div class="top-nav">
|
3
|
|
- <div class="nav-logo">
|
4
|
|
- <img :src="require(`../../../assets/logo/logo.png`)" alt="">
|
|
2
|
+ <div class="top-nav">
|
|
3
|
+ <div class="nav-logo">
|
|
4
|
+ <img :src="require(`../../../assets/logo/logo.png`)" alt="">
|
5
|
5
|
</div>
|
6
|
|
- <el-menu class="navbar" mode="horizontal">
|
7
|
|
- <div>
|
8
|
|
- <el-dropdown trigger="click" style="color:#fff;">
|
9
|
|
- <span class="el-dropdown-link">
|
10
|
|
- 南山市人民医院<i class="el-icon-arrow-down el-icon--right"></i>
|
11
|
|
- </span>
|
12
|
|
- <el-dropdown-menu slot="dropdown" style="margin-top:21px;">
|
13
|
|
- <el-dropdown-item >深圳市人民医院</el-dropdown-item>
|
14
|
|
- <el-dropdown-item >长沙是透析中心</el-dropdown-item>
|
15
|
|
- <el-dropdown-item >东莞血液透析中心</el-dropdown-item>
|
16
|
|
- <el-dropdown-item >东莞血液透析中心</el-dropdown-item>
|
17
|
|
- <el-dropdown-item >东莞血液透析中心</el-dropdown-item>
|
18
|
|
- </el-dropdown-menu>
|
19
|
|
- </el-dropdown>
|
20
|
|
- </div>
|
21
|
|
- <div class="system-nav">
|
22
|
|
- <div class="system-nav-menu">
|
23
|
|
- <a href="http://jk.kuyicloud.com/">
|
24
|
|
- <!-- <a href="http://test1.sgjyun.com/"> -->
|
25
|
|
- <span ><i class="iconfont icon-pengyou"></i> SCRM</span>
|
26
|
|
- </a>
|
27
|
|
- </div>
|
28
|
|
- <div class="system-nav-menu">
|
29
|
|
- <a href="http://mall.kuyicloud.com/">
|
30
|
|
- <!-- <a href="http://mall.test.sgjyun.com/"> -->
|
31
|
|
- <span ><i class="icon iconfont icon-service_fill"></i> 微商城</span>
|
32
|
|
- </a>
|
33
|
|
- </div>
|
34
|
|
- <div class="system-nav-menu active">
|
35
|
|
- <a>
|
36
|
|
- <span><i class="icon iconfont icon-jiankangshuidi"></i> 血透管理</span>
|
37
|
|
- </a>
|
38
|
|
- </div>
|
39
|
|
- <div class="system-nav-menu">
|
40
|
|
- <a href="http://cdm.kuyicloud.com/">
|
41
|
|
- <span ><i class="icon iconfont icon-manbing-xuanzhong"></i> 慢病管理</span>
|
42
|
|
- </a>
|
|
6
|
+ <el-menu class="navbar" mode="horizontal">
|
|
7
|
+ <div>
|
|
8
|
+ <!--<el-dropdown trigger="click" style="color:#fff;">-->
|
|
9
|
+ <!--<span class="el-dropdown-link">-->
|
|
10
|
+ <!--南山市人民医院<i class="el-icon-arrow-down el-icon--right"></i>-->
|
|
11
|
+ <!--</span>-->
|
|
12
|
+ <!--<!–<el-dropdown-menu slot="dropdown" style="margin-top:21px;">–>-->
|
|
13
|
+ <!--<!–<el-dropdown-item>深圳市人民医院</el-dropdown-item>–>-->
|
|
14
|
+ <!--<!–<el-dropdown-item>长沙是透析中心</el-dropdown-item>–>-->
|
|
15
|
+ <!--<!–<el-dropdown-item>东莞血液透析中心</el-dropdown-item>–>-->
|
|
16
|
+ <!--<!–<el-dropdown-item>东莞血液透析中心</el-dropdown-item>–>-->
|
|
17
|
+ <!--<!–<el-dropdown-item>东莞血液透析中心</el-dropdown-item>–>-->
|
|
18
|
+ <!--<!–</el-dropdown-menu>–>-->
|
|
19
|
+ <!--</el-dropdown>-->
|
43
|
20
|
</div>
|
|
21
|
+ <div class="system-nav">
|
|
22
|
+ <div class="system-nav-menu">
|
|
23
|
+ <!--<a href="http://jk.kuyicloud.com/">-->
|
|
24
|
+ <a href="http://test1.sgjyun.com/">
|
|
25
|
+ <span><i class="iconfont icon-pengyou"></i> SCRM</span>
|
|
26
|
+ </a>
|
|
27
|
+ </div>
|
|
28
|
+ <div class="system-nav-menu">
|
|
29
|
+ <!--<a href="http://mall.kuyicloud.com/">-->
|
|
30
|
+ <a href="http://mall.test.sgjyun.com/">
|
|
31
|
+ <span><i class="icon iconfont icon-service_fill"></i> 微商城</span>
|
|
32
|
+ </a>
|
|
33
|
+ </div>
|
|
34
|
+ <div class="system-nav-menu active">
|
|
35
|
+ <a>
|
|
36
|
+ <span><i class="icon iconfont icon-jiankangshuidi"></i> 血透管理</span>
|
|
37
|
+ </a>
|
|
38
|
+ </div>
|
|
39
|
+ <div class="system-nav-menu">
|
|
40
|
+ <!--<a href="http://cdm.kuyicloud.com/">-->
|
|
41
|
+ <a href=" http://cdm.test.sgjyun.com/">
|
|
42
|
+ <span><i class="icon iconfont icon-manbing-xuanzhong"></i> 慢病管理</span>
|
|
43
|
+ </a>
|
|
44
|
+ </div>
|
44
|
45
|
|
45
|
|
- <div class="system-nav-menu">
|
46
|
|
- <a href="http://sso.kuyicloud.com/org/app/create">
|
47
|
|
- <!-- <a href="http://testsso.sgjyun.com/org/app/create"> -->
|
48
|
|
- <span ><i class="icon iconfont icon-suoyou"></i> 应用</span>
|
49
|
|
- </a>
|
|
46
|
+ <div class="system-nav-menu">
|
|
47
|
+ <!--<a href="http://sso.kuyicloud.com/org/app/create">-->
|
|
48
|
+ <a href="http://testsso.sgjyun.com/org/app/create">
|
|
49
|
+ <span><i class="icon iconfont icon-suoyou"></i> 应用</span>
|
|
50
|
+ </a>
|
|
51
|
+ </div>
|
50
|
52
|
</div>
|
51
|
|
- </div>
|
52
|
53
|
|
53
|
|
- <div class="right-menu">
|
54
|
|
- <el-dropdown class="avatar-container right-menu-item" trigger="click">
|
55
|
|
- <div class="avatar-wrapper">
|
56
|
|
- <img class="user-avatar" :src="avater">
|
57
|
|
- <span class="user-title">{{ this.$store.getters.xt_user.user.user_name }}</span>
|
58
|
|
- <i class="el-icon-caret-bottom"></i>
|
59
|
|
- </div>
|
60
|
|
- <el-dropdown-menu slot="dropdown">
|
61
|
|
- <el-dropdown-item>
|
62
|
|
- <span @click="modifyUserInfoAction">修改个人信息</span>
|
63
|
|
- </el-dropdown-item>
|
64
|
|
- <el-dropdown-item divided>
|
65
|
|
- <span @click="myServe">我的服务</span>
|
66
|
|
- </el-dropdown-item>
|
67
|
|
- <el-dropdown-item divided>
|
68
|
|
- <span @click="logout" style="display:block;">{{$t('navbar.logOut')}}</span>
|
69
|
|
- </el-dropdown-item>
|
70
|
|
- </el-dropdown-menu>
|
71
|
|
- </el-dropdown>
|
72
|
|
-
|
73
|
|
- <!-- <screenfull class="screenfull right-menu-item"></screenfull> -->
|
74
|
|
- <modify-user-info-dialog ref="modify_user_info_dialog"></modify-user-info-dialog>
|
|
54
|
+ <div class="right-menu">
|
|
55
|
+ <el-dropdown class="avatar-container right-menu-item" trigger="click">
|
|
56
|
+ <div class="avatar-wrapper">
|
|
57
|
+ <img class="user-avatar" :src="avater">
|
|
58
|
+ <span class="user-title">{{ this.$store.getters.xt_user.user.user_name }}</span>
|
|
59
|
+ <i class="el-icon-caret-bottom"></i>
|
|
60
|
+ </div>
|
|
61
|
+ <el-dropdown-menu slot="dropdown">
|
|
62
|
+ <el-dropdown-item>
|
|
63
|
+ <span @click="modifyUserInfoAction">修改个人信息</span>
|
|
64
|
+ </el-dropdown-item>
|
|
65
|
+ <el-dropdown-item divided>
|
|
66
|
+ <span @click="myServe">我的服务</span>
|
|
67
|
+ </el-dropdown-item>
|
|
68
|
+ <el-dropdown-item divided>
|
|
69
|
+ <span @click="logout" style="display:block;">{{$t('navbar.logOut')}}</span>
|
|
70
|
+ </el-dropdown-item>
|
|
71
|
+ </el-dropdown-menu>
|
|
72
|
+ </el-dropdown>
|
75
|
73
|
|
76
|
|
- </div>
|
77
|
|
- </el-menu>
|
78
|
|
-</div>
|
|
74
|
+ <!-- <screenfull class="screenfull right-menu-item"></screenfull> -->
|
|
75
|
+ <modify-user-info-dialog ref="modify_user_info_dialog"></modify-user-info-dialog>
|
|
76
|
+
|
|
77
|
+ </div>
|
|
78
|
+ </el-menu>
|
|
79
|
+ </div>
|
79
|
80
|
</template>
|
80
|
81
|
|
81
|
82
|
<script>
|
82
|
|
-import { mapGetters } from "vuex";
|
83
|
|
-// import Breadcrumb from "@/components/Breadcrumb";
|
84
|
|
-// import Hamburger from "@/components/Hamburger";
|
85
|
|
-import Screenfull from "@/components/Screenfull";
|
86
|
|
-import ModifyUserInfoDialog from "@/xt_pages/home/modify_user_info_dialog";
|
87
|
|
-
|
88
|
|
-export default {
|
89
|
|
- components: {
|
90
|
|
- // Breadcrumb,
|
91
|
|
- // Hamburger,
|
92
|
|
- Screenfull,
|
93
|
|
- ModifyUserInfoDialog
|
94
|
|
- },
|
95
|
|
- computed: {
|
96
|
|
- ...mapGetters(["sidebar"]),
|
97
|
|
- avater: function() {
|
98
|
|
- var avatar = this.$store.getters.xt_user.user.avatar;
|
99
|
|
- return avatar.length > 0
|
100
|
|
- ? avatar
|
101
|
|
- : require("../../../assets/home/userData.png");
|
102
|
|
- }
|
103
|
|
- },
|
104
|
|
- methods: {
|
105
|
|
- // toggleSideBar() {
|
106
|
|
- // this.$store.dispatch("toggleSideBar");
|
107
|
|
- // },
|
108
|
|
- logout() {
|
109
|
|
- this.$store.dispatch("FrontendLogout");
|
110
|
|
- window.location.href = process.env.BASE_API + "/logout";
|
|
83
|
+ import { mapGetters } from 'vuex'
|
|
84
|
+ // import Breadcrumb from "@/components/Breadcrumb";
|
|
85
|
+ // import Hamburger from "@/components/Hamburger";
|
|
86
|
+ import Screenfull from '@/components/Screenfull'
|
|
87
|
+ import ModifyUserInfoDialog from '@/xt_pages/home/modify_user_info_dialog'
|
|
88
|
+
|
|
89
|
+ export default {
|
|
90
|
+ components: {
|
|
91
|
+ // Breadcrumb,
|
|
92
|
+ // Hamburger,
|
|
93
|
+ Screenfull,
|
|
94
|
+ ModifyUserInfoDialog
|
111
|
95
|
},
|
112
|
|
- modifyUserInfoAction() {
|
113
|
|
- this.$refs.modify_user_info_dialog.show();
|
|
96
|
+ computed: {
|
|
97
|
+ ...mapGetters(['sidebar']),
|
|
98
|
+ avater: function() {
|
|
99
|
+ var avatar = this.$store.getters.xt_user.user.avatar
|
|
100
|
+ return avatar.length > 0
|
|
101
|
+ ? avatar
|
|
102
|
+ : require('../../../assets/home/userData.png')
|
|
103
|
+ }
|
114
|
104
|
},
|
115
|
|
- myServe() {
|
116
|
|
- this.$router.push("/service");
|
117
|
|
- return false;
|
|
105
|
+ methods: {
|
|
106
|
+ // toggleSideBar() {
|
|
107
|
+ // this.$store.dispatch("toggleSideBar");
|
|
108
|
+ // },
|
|
109
|
+ logout() {
|
|
110
|
+ this.$store.dispatch('FrontendLogout')
|
|
111
|
+ window.location.href = process.env.BASE_API + '/logout'
|
|
112
|
+ },
|
|
113
|
+ modifyUserInfoAction() {
|
|
114
|
+ this.$refs.modify_user_info_dialog.show()
|
|
115
|
+ },
|
|
116
|
+ myServe() {
|
|
117
|
+ this.$router.push('/service')
|
|
118
|
+ return false
|
|
119
|
+ }
|
118
|
120
|
}
|
119
|
121
|
}
|
120
|
|
-};
|
121
|
122
|
</script>
|
122
|
123
|
|
123
|
124
|
<style rel="stylesheet/scss" lang="scss" scoped>
|
124
|
|
-.top-nav {
|
125
|
|
- background: #409eff;
|
126
|
|
- position: fixed;
|
127
|
|
- top: 0;
|
128
|
|
- left: 0;
|
129
|
|
- right: 0;
|
130
|
|
- // z-index: 2052;
|
|
125
|
+ .top-nav {
|
|
126
|
+ background: #409eff;
|
|
127
|
+ position: fixed;
|
|
128
|
+ top: 0;
|
|
129
|
+ left: 0;
|
|
130
|
+ right: 0;
|
|
131
|
+
|
131
|
132
|
.nav-logo {
|
132
|
133
|
width: 162px;
|
133
|
134
|
display: flex;
|
|
@@ -138,10 +139,12 @@ export default {
|
138
|
139
|
padding: 10px 0;
|
139
|
140
|
box-sizing: border-box;
|
140
|
141
|
float: left;
|
141
|
|
- img {
|
142
|
|
- display: inline-block;
|
143
|
|
- width: 100px;
|
144
|
|
- }
|
|
142
|
+
|
|
143
|
+ img {
|
|
144
|
+ display: inline-block;
|
|
145
|
+ width: 100px;
|
|
146
|
+ }
|
|
147
|
+
|
145
|
148
|
}
|
146
|
149
|
.navbar {
|
147
|
150
|
border-radius: 0px !important;
|
|
@@ -153,81 +156,102 @@ export default {
|
153
|
156
|
border: none;
|
154
|
157
|
background: #409eff;
|
155
|
158
|
float: left;
|
156
|
|
- .breadcrumb-container {
|
157
|
|
- float: left;
|
158
|
|
- }
|
159
|
|
- .errLog-container {
|
160
|
|
- display: inline-block;
|
161
|
|
- vertical-align: top;
|
162
|
|
- }
|
163
|
|
- .right-menu {
|
164
|
|
- float: right;
|
165
|
|
- height: 100%;
|
166
|
|
- &:focus {
|
167
|
|
- outline: none;
|
168
|
|
- }
|
169
|
|
- .right-menu-item {
|
170
|
|
- display: inline-block;
|
171
|
|
- margin: 0 8px;
|
172
|
|
- .iconfont {
|
173
|
|
- font-size: 18px;
|
174
|
|
- }
|
175
|
|
- }
|
176
|
|
- .screenfull {
|
177
|
|
- height: 20px;
|
178
|
|
- }
|
179
|
|
- .international {
|
180
|
|
- vertical-align: top;
|
181
|
|
- }
|
182
|
|
- .theme-switch {
|
183
|
|
- vertical-align: 15px;
|
184
|
|
- }
|
185
|
|
- .avatar-container {
|
186
|
|
- margin-right: 10px;
|
187
|
|
- .avatar-wrapper {
|
188
|
|
- cursor: pointer;
|
189
|
|
- margin-top: 3px;
|
190
|
|
- display: flex;
|
191
|
|
- align-items: center;
|
192
|
|
- justify-content: center;
|
193
|
|
- .user-avatar {
|
194
|
|
- width: 40px;
|
195
|
|
- height: 40px;
|
196
|
|
- border-radius: 50%;
|
197
|
|
- object-fit: cover;
|
198
|
|
- object-position: center;
|
199
|
|
- }
|
200
|
|
- .user-title {
|
201
|
|
- margin: 0 8px;
|
202
|
|
- font-size: 14px;
|
203
|
|
- color: #fff;
|
204
|
|
- }
|
205
|
|
- .el-icon-caret-bottom {
|
206
|
|
- font-size: 12px;
|
207
|
|
- color: #fff;
|
208
|
|
- }
|
209
|
|
- }
|
210
|
|
- }
|
211
|
|
- }
|
|
159
|
+
|
|
160
|
+ .breadcrumb-container {
|
|
161
|
+ float: left;
|
|
162
|
+ }
|
|
163
|
+
|
|
164
|
+ .errLog-container {
|
|
165
|
+ display: inline-block;
|
|
166
|
+ vertical-align: top;
|
|
167
|
+ }
|
|
168
|
+
|
|
169
|
+ .right-menu {
|
|
170
|
+ float: right;
|
|
171
|
+ height: 100%;
|
|
172
|
+
|
|
173
|
+ &
|
|
174
|
+ :focus {
|
|
175
|
+ outline: none;
|
|
176
|
+ }
|
|
177
|
+
|
|
178
|
+ .right-menu-item {
|
|
179
|
+ display: inline-block;
|
|
180
|
+ margin: 0 8px;
|
|
181
|
+
|
|
182
|
+ .iconfont {
|
|
183
|
+ font-size: 18px;
|
|
184
|
+ }
|
|
185
|
+
|
|
186
|
+ }
|
|
187
|
+ .screenfull {
|
|
188
|
+ height: 20px;
|
|
189
|
+ }
|
|
190
|
+
|
|
191
|
+ .international {
|
|
192
|
+ vertical-align: top;
|
|
193
|
+ }
|
|
194
|
+
|
|
195
|
+ .theme-switch {
|
|
196
|
+ vertical-align: 15px;
|
|
197
|
+ }
|
|
198
|
+
|
|
199
|
+ .avatar-container {
|
|
200
|
+ margin-right: 10px;
|
|
201
|
+
|
|
202
|
+ .avatar-wrapper {
|
|
203
|
+ cursor: pointer;
|
|
204
|
+ margin-top: 3px;
|
|
205
|
+ display: flex;
|
|
206
|
+ align-items: center;
|
|
207
|
+ justify-content: center;
|
|
208
|
+
|
|
209
|
+ .user-avatar {
|
|
210
|
+ width: 40px;
|
|
211
|
+ height: 40px;
|
|
212
|
+ border-radius: 50%;
|
|
213
|
+ object-fit: cover;
|
|
214
|
+ object-position: center;
|
|
215
|
+ }
|
|
216
|
+
|
|
217
|
+ .user-title {
|
|
218
|
+ margin: 0 8px;
|
|
219
|
+ font-size: 14px;
|
|
220
|
+ color: #fff;
|
|
221
|
+ }
|
|
222
|
+
|
|
223
|
+ .el-icon-caret-bottom {
|
|
224
|
+ font-size: 12px;
|
|
225
|
+ color: #fff;
|
|
226
|
+ }
|
|
227
|
+
|
|
228
|
+ }
|
|
229
|
+ }
|
|
230
|
+ }
|
212
|
231
|
}
|
213
|
232
|
.system-nav {
|
214
|
|
- .system-nav-menu {
|
215
|
|
- float: left;
|
216
|
|
- height: 60px;
|
217
|
|
- line-height: 60px;
|
218
|
|
- padding: 0 25px;
|
219
|
|
- a {
|
220
|
|
- font-size: 15px;
|
221
|
|
- .iconfont {
|
222
|
|
- font-size: 18px;
|
223
|
|
- }
|
224
|
|
- }
|
225
|
|
- }
|
226
|
|
- .active {
|
227
|
|
- background: #3090eb;
|
228
|
|
- border-left: 1px #5fabf7 solid;
|
229
|
|
- border-right: 1px #5fabf7 solid;
|
230
|
|
- }
|
|
233
|
+
|
|
234
|
+ .system-nav-menu {
|
|
235
|
+ float: left;
|
|
236
|
+ height: 60px;
|
|
237
|
+ line-height: 60px;
|
|
238
|
+ padding: 0 25px;
|
|
239
|
+
|
|
240
|
+ a {
|
|
241
|
+ font-size: 15px;
|
|
242
|
+
|
|
243
|
+ .iconfont {
|
|
244
|
+ font-size: 18px;
|
|
245
|
+ }
|
|
246
|
+
|
|
247
|
+ }
|
|
248
|
+ }
|
|
249
|
+ .active {
|
|
250
|
+ background: #3090eb;
|
|
251
|
+ border-left: 1px #5fabf7 solid;
|
|
252
|
+ border-right: 1px #5fabf7 solid;
|
|
253
|
+ }
|
|
254
|
+
|
231
|
255
|
}
|
232
|
256
|
.el-menu::after,
|
233
|
257
|
.el-menu::before {
|
|
@@ -237,5 +261,6 @@ export default {
|
237
|
261
|
top: 0;
|
238
|
262
|
left: 0;
|
239
|
263
|
}
|
240
|
|
-}
|
|
264
|
+
|
|
265
|
+ }
|
241
|
266
|
</style>
|