index.vue 2.91 KB
Newer Older
Z's avatar
Z committed
1
<template>
xd's avatar
xd committed
2
  <d2-container class="ct">
xd's avatar
xd committed
3
    <!-- <div class="test">
xd's avatar
xd committed
4 5 6 7 8 9 10 11 12 13
        <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>
14

xd's avatar
xd committed
15
          <el-menu-item index="2" @click="handleMenuChange('2')">
xd's avatar
xd committed
16
            <span class="circle"><d2-icon-svg name="counters"/></span>
xd's avatar
xd committed
17 18
            <span slot="title">柜组管理</span>
          </el-menu-item>
19

xd's avatar
xd committed
20 21
          <el-menu-item index="3" @click="handleMenuChange('3')">
            <span class="circle"><d2-icon-svg name="store"/></span>
Z's avatar
Z committed
22
            <span slot="title">品牌管理</span>
xd's avatar
xd committed
23
          </el-menu-item>
24 25 26 27 28
          
          <el-menu-item index="4" @click="handleMenuChange('4')">
            <span class="circle"><d2-icon-svg name="store"/></span>
            <span slot="title">组织架构管理</span>
          </el-menu-item>
xd's avatar
xd committed
29
        </el-menu>
xd's avatar
xd committed
30 31

    </div> -->
xd's avatar
xd committed
32
    <div class="content">
33
      <mail></mail>
xd's avatar
xd committed
34
    </div>
Z's avatar
Z committed
35 36
  </d2-container>
</template>
xd's avatar
xd committed
37 38 39 40 41

<script>
import Mail from "./mail";
export default {
  components: {
42
    Mail
xd's avatar
xd committed
43 44 45
  },
  data () {
    return {
xd's avatar
xd committed
46 47
      index: '1',
      isHistoryShow: false
xd's avatar
xd committed
48 49 50 51 52 53 54
    }
  },
  methods: {
    handleClose () {},
    handleOpen (index) {
    },
    handleMenuChange (index) {
Z's avatar
Z committed
55
      this.index = index
xd's avatar
xd committed
56
      this.isHistoryShow = false
xd's avatar
xd committed
57
    },
Z's avatar
Z committed
58
    contorlHistoryShow (val) {
xd's avatar
xd committed
59
      this.isHistoryShow = val
xd's avatar
xd committed
60
    }
Z's avatar
Z committed
61
  }
xd's avatar
xd committed
62 63 64 65
}
</script>
<style></style>
<style scoped>
xd's avatar
xd committed
66 67 68 69 70 71
.ct >>> .d2-container-full__body{
  overflow: visible !important;
}
.ct >>> .d2-container-full {
  padding: 0 !important;
}
xd's avatar
xd committed
72 73 74
.d2-theme-container-main {
  background-color: #f8f8f8;
}
xd's avatar
xd committed
75
.test {
xd's avatar
xd committed
76
  width: 13%;
xd's avatar
xd committed
77 78
  min-height: 100%;
  display: flex;
xd's avatar
xd committed
79
  box-shadow:0px 2px 4px 0px rgba(221,221,221,1);
xd's avatar
xd committed
80
}
xd's avatar
xd committed
81
.content {
xd's avatar
xd committed
82
  width: 100%;
xd's avatar
xd committed
83
  display: flex;
xd's avatar
xd committed
84
}
xd's avatar
xd committed
85 86 87 88 89
.ct >>> .d2-container-full__body {
  display: flex;
  justify-content: space-between;
  padding: 0 !important;
}
xd's avatar
xd committed
90
/* .tac {
xd's avatar
xd committed
91
  width: 99%;
xd's avatar
xd committed
92
  height: 100%;
xd's avatar
xd committed
93
  box-shadow:0px 2px 4px 0px rgba(221,221,221,1);
xd's avatar
xd committed
94 95
} */
.test >>> .el-menu {
xd's avatar
xd committed
96 97
  border-right: none;
}
xd's avatar
xd committed
98
.test >>> .el-menu-item.is-active{
xd's avatar
xd committed
99 100
  border-left: 2px solid rgba(78,89,199,1);
}
xd's avatar
xd committed
101 102 103 104
.test >>> .el-menu {
  width: 100%;
  box-shadow: 0px 2px 4px 0px #ddd;
} 
xd's avatar
xd committed
105 106
.content {
  flex: 6;
xd's avatar
xd committed
107 108
  padding: 16px;
  background-color: #f8f8f8;
xd's avatar
xd committed
109 110 111 112 113 114 115 116 117 118 119 120 121 122 123
}
.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;
}
xd's avatar
xd committed
124 125 126
.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;
}
xd's avatar
xd committed
127
</style>