|
@@ -37,7 +37,32 @@
|
37
|
37
|
:index="index"
|
38
|
38
|
@a="b"
|
39
|
39
|
></sidebar-item>
|
|
40
|
+ <el-menu-item v-if="this.$store.getters.xt_user.cdm_role_exist" index="100">
|
|
41
|
+ <a :href="CDMWebsit()">
|
|
42
|
+ <i class="icon iconfont icon-manbing-xuanzhong" style="margin-right:4px"></i>
|
|
43
|
+ <span
|
|
44
|
+ slot="title"
|
|
45
|
+ >慢病管理</span>
|
|
46
|
+ </a>
|
|
47
|
+ </el-menu-item>
|
|
48
|
+ <el-menu-item v-if="this.$store.getters.xt_user.scrm_role_exist" index="101">
|
|
49
|
+ <a :href="SCRMWebsit()">
|
|
50
|
+ <i class="icon iconfont icon-pengyou" style="margin-right:4px"></i>
|
|
51
|
+ <span
|
|
52
|
+ slot="title"
|
|
53
|
+ >SCRM</span>
|
|
54
|
+ </a>
|
|
55
|
+ </el-menu-item>
|
|
56
|
+ <el-menu-item v-if="this.$store.getters.xt_user.mall_role_exist" index="102">
|
|
57
|
+ <a :href="MircoMallWebsit()">
|
|
58
|
+ <i class="icon iconfont icon-service_fill" style="margin-right:4px"></i>
|
|
59
|
+ <span
|
|
60
|
+ slot="title"
|
|
61
|
+ >微商城</span>
|
|
62
|
+ </a>
|
|
63
|
+ </el-menu-item>
|
40
|
64
|
</el-menu>
|
|
65
|
+
|
41
|
66
|
</el-scrollbar>
|
42
|
67
|
<!-- <div class="mianLeft">
|
43
|
68
|
<div class="logo">
|
|
@@ -109,10 +134,19 @@ export default {
|
109
|
134
|
// this.index = index;
|
110
|
135
|
// this.activeClass = index;
|
111
|
136
|
this.$emit("callBackIndex", index, num);
|
112
|
|
- }
|
|
137
|
+ },
|
|
138
|
+ CDMWebsit() {
|
|
139
|
+ return process.env.CDM_HOST;
|
|
140
|
+ },
|
|
141
|
+ SCRMWebsit() {
|
|
142
|
+ return process.env.SRCM_HOST;
|
|
143
|
+ },
|
|
144
|
+ MircoMallWebsit() {
|
|
145
|
+ return process.env.MIRCO_MALL_HOST;
|
|
146
|
+ },
|
113
|
147
|
},
|
114
|
148
|
created() {
|
115
|
|
- console.log(1111111121121111111, this.permission_routers);
|
|
149
|
+ // console.log(1111111121121111111, this.permission_routers);
|
116
|
150
|
// this.permission_routers.map(item => {
|
117
|
151
|
// console.log(item.children);
|
118
|
152
|
// });
|
|
@@ -204,5 +238,17 @@ export default {
|
204
|
238
|
<style lang="scss">
|
205
|
239
|
.scrollbar-wrapper {
|
206
|
240
|
background-color: #1F2D3D;
|
|
241
|
+ .el-menu{
|
|
242
|
+ background-color: #1F2D3D !important;
|
|
243
|
+ }
|
|
244
|
+ .el-menu-item{
|
|
245
|
+ height: 40px !important;
|
|
246
|
+ line-height: 40px !important;
|
|
247
|
+ background-color: #1F2D3D !important;
|
|
248
|
+ color: #fff !important;
|
|
249
|
+ i{
|
|
250
|
+ color: #fff;
|
|
251
|
+ }
|
|
252
|
+ }
|
207
|
253
|
}
|
208
|
254
|
</style>
|