ZZJ
2022-06-28 2cb264ec2b7c7dd9798d1821927104fad35bd063
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
<template>
  <div class="AuthorizationManagement">
    <div class="content">
      <div class="title">设备授权管理</div>
 
      <div class="formArea">
        <div class="formHeader">
          <div class="headerItem">授权设备ID</div>
          <div class="headerItem">授权时间</div>
          <div class="headerItem">解除授权</div>
        </div>
 
        <div class="formBody">
          <div
            class="formItem"
            v-for="(item, index) in authorizationList"
            :key="index"
          >
            <div class="id">
              {{ item.id }}
            </div>
 
            <div class="time">
              {{ item.time }}
            </div>
 
            <div class="unbind iconfont" @click="isShowUnbindBox = true">
              &#xe7e8;
            </div>
          </div>
        </div>
      </div>
    </div>
 
    <UnbindBox
      v-if="isShowUnbindBox"
      @close="isShowUnbindBox = false"
    ></UnbindBox>
  </div>
</template>
 
<script>
import UnbindBox from "@/pages/settings/components/UnbindBox";
 
export default {
  data() {
    return {
      isShowUnbindBox: false,
      authorizationList: [
        {
          id: "DSVAD010120190621",
          time: "2019-08-02 12:43:43",
        },
        {
          id: "DSVAD010120190621",
          time: "2019-08-02 12:43:43",
        },
        {
          id: "DSVAD010120190621",
          time: "2019-08-02 12:43:43",
        },
        {
          id: "DSVAD010120190621",
          time: "2019-08-02 12:43:43",
        },
      ],
    };
  },
  components: {
    UnbindBox,
  },
};
</script>
 
<style lang="scss" scoped>
.AuthorizationManagement {
  position: relative;
 
  .content {
    // width: 456px;
    margin: 0 auto;
  }
 
  .title {
    height: 48px;
    font-size: 16px;
    line-height: 48px;
    color: #4f4f4f;
    font-weight: bold;
    background: #f2f2f7;
    border-radius: 8px;
    margin-bottom: 4px;
  }
 
  .formArea {
    overflow: hidden;
    margin-top: 4px;
    background: #f2f2f7;
 
    .formHeader {
      margin: 8px 30px 10px 30px;
      display: flex;
      justify-content: space-between;
      font-size: 14px;
      color: #666;
    }
 
    .formBody {
      padding-bottom: 8px;
      border-radius: 8px;
    }
 
    .formItem {
      box-sizing: border-box;
      padding-left: 10px;
      padding-right: 42px;
      margin: 0 20px 8px 20px;
      display: flex;
      height: 32px;
      justify-content: space-between;
      align-items: center;
      font-size: 12px;
      color: #333;
      font-weight: 700;
      background-color: #fff;
      border-radius: 20px;
 
      .unbind {
        font-size: 24px;
        color: rgb(78, 148, 255);
        cursor: pointer;
      }
    }
  }
}
</style>