ZZJ
2022-01-26 c7298c0ad9c728f55618ad4f924f723f7d2d0a38
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
<template>
  <div class="all" ref="curPage">
    <div class="Authorization">
      <div class="AuthorizationCenter">
        <div
          class="menu-item"
          :class="activePage == i ? 'menu-item-active' : ''"
          @click="openRight(i)"
          v-for="(item, i) in menuArr"
          :key="i"
        >
          <span class="iconfont" :style="`font-size:${item.size}px;`">{{
            item.icon
          }}</span>
          <span class="title">{{ item.name }}</span>
        </div>
      </div>
      <div class="AuthorizationRight"></div>
    </div>
  </div>
</template>
 
<script>
export default {
  data() {
    return {
      activePage: 0,
      menuArr: [
        { name: "设备授权配置", icon: "\ue7e7", size: 28 },
        { name: "设备授权管理", icon: "\ue7e6", size: 28 },
      ],
    };
  },
  methods: {
    openRight(i) {
      this.activePage = i;
    },
  },
};
</script>
 
<style scoped lang="scss">
.Authorization {
  height: 100%;
  display: flex;
  flex-direction: row;
  flex: 1;
  flex-basis: auto;
  box-sizing: border-box;
  .el-input__inner {
    height: 24px !important;
  }
 
  .AuthorizationCenter {
    height: 100%;
    width: 300px;
    overflow: auto;
    box-sizing: border-box;
    flex-shrink: 0;
    padding: 10px 10px;
    padding-top: 6px;
    border-right: 4px solid #f2f2f7;
    border-top: 4px solid #f2f2f7;
    border-left: 4px solid #f2f2f7;
    background-color: #fbfaff;
    .menu-item {
      height: 56px;
      margin-bottom: 4px;
      border-radius: 8px;
      line-height: 56px;
      box-sizing: border-box;
      font-size: 16px;
      padding-left: 15px;
      cursor: pointer;
      display: flex;
      .iconfont {
        margin: 0 17px;
        font-size: 24px !important;
      }
      .title {
        font-size: 16px;
        font-weight: 700;
      }
    }
    .menu-item-active {
      background-color: var(--colorCard) !important;
      color: white !important;
    }
    .menu-item:hover {
      background-color: #f2f2f7;
    }
  }
}
</style>