hanbaoshan
2020-07-23 95fc665771abeb335b29e6d59fe74d69cf9c446f
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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
<template>
  <div class="s-board-card flex-center">
    <div style="width:38%;">
      <div class="top-text">
        <em>{{title}}</em>
      </div>
      <div class="mid-text">
        <em>{{total}}</em>
      </div>
    </div>
    <div style="height:86px;">
      <el-divider class="divider-css" direction="vertical"></el-divider>
    </div>
    <div style="width:61%;height:100%;">
      <div style="height:50%;" class="flex-center right-bot-css">
        <el-tooltip effect="dark" placement="top">
          <div slot="content">全部打开分析开关</div>
          <span class="bottom-text">
            <i class="iconfont iconquanbu" style="color:#3D68E1;" 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="iconfont iconicon-test6"
              style="color:#3D68E1;margin-left: 15px;"
              v-show="InValidCount.length"
            ></i>
            {{InValidCount}}
          </span>
        </el-tooltip>
      </div>
      <div style="width:100%;">
        <el-divider></el-divider>
      </div>
      <div style="height:40%;" class="flex-center right-bot-css">
        <el-tooltip effect="dark" placement="top">
          <div slot="content">正在执行分析处理</div>
          <span class="bottom-text">
            <i class="iconfont iconicon-test11" style="color:#3D68E1" v-show="RunningCount.length"></i>
            {{RunningCount}}
          </span>
        </el-tooltip>
 
        <el-tooltip effect="dark" placement="top">
          <div slot="content">{{fourTip}}</div>
          <span class="bottom-text">
            <i
              :class="`iconfont ${fourIcon}`"
              style="color:#3D68E1;margin-left:15px;"
              v-show="NoDeal.length"
            ></i>
            {{NoDeal}}
          </span>
        </el-tooltip>
      </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: "" },
    NoDeal: { type: String, default: "" },
    width: { type: String, default: "126px" },
    fourTip: { type: String, default: "" },
    fourIcon: { type: String, default: "" }
  }
}
</script>
<style lang="scss">
.s-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;
  }
  .mid-text {
    margin-bottom: 18px;
    font-family: PingFangSC-Medium;
    font-size: 18px;
    color: #ff7733;
  }
  .bottom-text {
    word-break: keep-all;
    text-align: right;
    // 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 5px;
    position: relative;
  }
  .out-div-33 {
    width: 33%;
    height: 100%;
    .txt-css {
      width: 100%;
      height: 50%;
      position: relative;
      top: 30px;
    }
    .icon-css {
      width: 100%;
      height: 30%;
      margin-top: 10px;
      position: relative;
    }
  }
}
</style>