1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<template>
<d2-container class="ct">
<!-- <div class="test">
<el-menu
:default-active="index"
class="el-menu-vertical-demo"
@open="handleOpen"
@close="handleClose"
>
<el-menu-item index="1" @click="handleMenuChange('1')">
<span class="circle"><d2-icon-svg name="mail"/></span>
<span slot="title">通讯录管理</span>
</el-menu-item>
<el-menu-item index="2" @click="handleMenuChange('2')">
<span class="circle"><d2-icon-svg name="counters"/></span>
<span slot="title">柜组管理</span>
</el-menu-item>
<el-menu-item index="3" @click="handleMenuChange('3')">
<span class="circle"><d2-icon-svg name="store"/></span>
<span slot="title">品牌管理</span>
</el-menu-item>
<el-menu-item index="4" @click="handleMenuChange('4')">
<span class="circle"><d2-icon-svg name="store"/></span>
<span slot="title">组织架构管理</span>
</el-menu-item>
</el-menu>
</div> -->
<div class="content">
<mail v-if="index == '1' && isHistoryShow == false" @isShow="contorlHistoryShow"></mail>
<counter v-if="index == '2'"></counter>
<store v-if="index == '3'"></store>
<org v-if="index == '4'"></org>
<history v-if="isHistoryShow == true" @isShow="contorlHistoryShow"></history>
</div>
</d2-container>
</template>
<script>
import Mail from "./mail";
import Store from "./store";
import Org from "./org";
import Counter from "./counter";
import History from "./components/history";
export default {
components: {
Mail,
Store,
Org,
Counter,
History
},
data () {
return {
index: '1',
isHistoryShow: false
}
},
methods: {
handleClose () {},
handleOpen (index) {
},
handleMenuChange (index) {
this.index = index
this.isHistoryShow = false
},
contorlHistoryShow (val) {
this.isHistoryShow = val
}
}
}
</script>
<style></style>
<style scoped>
.ct >>> .d2-container-full__body{
overflow: visible !important;
}
.ct >>> .d2-container-full {
padding: 0 !important;
}
.d2-theme-container-main {
background-color: #f8f8f8;
}
.test {
width: 13%;
min-height: 100%;
display: flex;
box-shadow:0px 2px 4px 0px rgba(221,221,221,1);
}
.content {
width: 100%;
display: flex;
}
.ct >>> .d2-container-full__body {
display: flex;
justify-content: space-between;
padding: 0 !important;
}
/* .tac {
width: 99%;
height: 100%;
box-shadow:0px 2px 4px 0px rgba(221,221,221,1);
} */
.test >>> .el-menu {
border-right: none;
}
.test >>> .el-menu-item.is-active{
border-left: 2px solid rgba(78,89,199,1);
}
.test >>> .el-menu {
width: 100%;
box-shadow: 0px 2px 4px 0px #ddd;
}
.content {
flex: 6;
padding: 16px;
background-color: #f8f8f8;
}
.circle {
display: inline-block;
width: 24px;
height: 24px;
background:rgba(255,255,255,1);
box-shadow: 0px 1px 2px 0px rgba(78,89,199,1);
border-radius: 50%;
line-height: 24px;
text-align: center;
margin-right: 12px;
}
.theme-d2 .el-menu-item svg, .theme-d2 .el-submenu__title svg {
margin-right: 0;
}
.ct >>> .d2-layout-header-aside-group .d2-layout-header-aside-content .d2-theme-container .d2-theme-container-main .d2-theme-container-main-layer {
left: 0 !important;
}
</style>