haoxuan
2023-12-01 1274e4da2f175dba16d68bd091be6f23ee9a523a
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
<template>
  <div class="statistical-box">
    <div v-for="item in allList" class="all-bg">
      <div class="box">
        <div class="commom-title">{{ item.title }}</div>
        <div class="commom-value">{{ item.value }}</div>
      </div>
    </div>
  </div>
</template>
 
<script>
export default {
  components: {},
  props: {},
  data() {
    return {
      allList: [
        { title: "开机台数", value: 200 },
        { title: "总产量", value: 1200 },
        { title: "生产工单数", value: 200 },
        { title: "延期交付", value: 20 },
        { title: "物料不足", value: 10 },
        { title: "计划达成率", value: 2 },
      ],
    };
  },
  mounted() {},
  watch: {},
  methods: {},
};
</script>
 
<style scoped lang="scss">
.statistical-box {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  .all-bg {
    width: 15%;
    height: 100%;
    text-align: center;
    border: 1px solid #00ffff;
    background: linear-gradient(90deg, #09132c, #09374f);
    color: #dcb018;
    display: flex;
    align-items: center;
    justify-content: center;
    .box {
      .commom-title {
        font-size: 18px;
        font-family: "Arial Normal", "Arial";
        font-weight: 400;
      }
      .commom-value {
        font-size: 28px;
        font-family: "Arial Negreta", "Arial Normal", "Arial";
        font-weight: 700;
      }
    }
  }
}
</style>