haoxuan
2023-09-01 1e1e5f612f252d66b0d0386cf52873bb1f3f7d7b
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
<template>
  <div class="board-card">
    <div class="top-text">
      <em>{{title}}</em>
      <em style="color:#ff7733;font-size:13px">{{channelTotal}}</em>
    </div>
    <div class="bottom-icon">
      <div style="height:45%;" class="flex-center">
        <div class="right-bot-css">
          <el-tooltip effect="dark" placement="top">
            <div slot="content">有规则</div>
            <span class="bottom-text">
              <i class="el-icon-success" style="color:#149A46;" v-show="ValidCount.length"></i>
              {{ValidCount}}
            </span>
          </el-tooltip>
 
          <el-tooltip effect="dark" placement="top">
            <div slot="content">无规则</div>
            <span class="bottom-text">
              <i class="el-icon-warning" style="color:orange;margin-left: 18px;" v-show="InValidCount.length"></i>
              {{InValidCount}}
            </span>
          </el-tooltip>
        </div>
      </div>
      <div style="width:100%;">
        <el-divider></el-divider>
      </div>
      <div style="height:45%;" class="flex-center">
        <div class="right-bot-css">
          <el-tooltip effect="dark" placement="top">
            <div slot="content">处理中</div>
            <span class="bottom-text">
              <i class="iconfont iconzhengzaichuli" style="color:#3D68E1;font-size:18px;" v-show="RunningCount.length"></i>
              {{RunningCount}}
            </span>
          </el-tooltip>
 
          <el-tooltip effect="dark" placement="top">
            <div slot="content">未处理</div>
            <span class="bottom-text">
              <i class="iconfont iconchuli" title="未处理" style="margin-left:18px;font-size:18px;" v-show="NoDeal.length"></i>
              {{NoDeal}}
            </span>
          </el-tooltip>
        </div>
      </div>
    </div>
  </div>
</template>
 
<script>
export default {
  name: "BoardCard",
  props: {
    title: { type: String, default: "" },
    total: { type: String, default: "" },
    ValidCount: { type: String, default: "" },
    InValidCount: { type: String, default: "" },
    RunningCount: { type: String, default: "" },
    channelTotal: { type: String, default: "" },
    NoDeal: { type: String, default: "" },
    width: { type: String, default: "126px"}
  }
}
</script>
<style lang="scss">
.board-card {
  height: 120px;
  width: 100%;
  display: inline-block;
  margin: 10px;
  background: #ffffff;
  border: 1px solid #e2e2e2;
  box-shadow: 0 5px 12px 0 rgba(0, 0, 0, 0.07);
  border-radius: 4px;
  cursor: pointer;
  .top-text {
    line-height: 30px;
    font-family: PingFangSC-Medium;
    font-size: 14px;
    color: #222222;
  }
  .bottom-icon {
    width: 100%;
    height: calc(100% - 30px);
  }
  .mid-text {
    margin-bottom: 18px;
    font-family: PingFangSC-Medium;
    font-size: 18px;
    color: #ff7733;
  }
  .bottom-text {
    position: relative;
    top: 3px;
    left: 1px;
    color: #666666;
    font-size: 13px;
  }
  em {
    font-weight: 700;
  }
  hr {
    background: rgb(226, 226, 226);
    border: 0;
    height: 1px;
  }
  i {
    font-size: 20px;
  }
  .divider-css{
    height: 100%;
    margin: 0;
  }
  .el-divider--horizontal {
    display: block;
    height: 1px;
    width: 100%;
    margin: 3px 0;
  }
  .right-top-css{
    margin: 0px auto;
    position: relative;
  }
  .right-bot-css{
    margin: 0px auto;
    position: relative;
  }
  .item {
    margin: 4px;
  } 
}
</style>