安琪酵母(西藏)益生菌信息采集中心智能实验室
longyvfengyun
2023-06-17 c33ab23944906306eae8c2a4112927181c9ec5a3
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
<script setup>
import FlexLayout from "@/components/FlexLayout.vue";
import CardBox from "@/components/CardBox.vue";
import {ref} from "vue";
 
const homeInfo = ref([]);
for(let i=1; i<10; i++) {
    homeInfo.value.push({
        name: "#"+i+"室",
        temp: 32,
        hum: 7,
        diffPre: 1
    });
}
</script>
 
<template>
    <flex-layout>
        <div class="home-content">
            <div class="card-box-list">
                <div
                    class="card-box-item"
                    v-for="(item, index) in homeInfo" :key="'key'+index">
                    <card-box>
                        <div class="home-info-list">
                            <div class="home-info-item">
                                {{ item.name }}温度:{{ item.temp }}
                            </div>
                            <div class="home-info-item">
                                {{ item.name }}湿度:{{ item.hum }}
                            </div>
                            <div class="home-info-item">
                                {{ item.name }}压差:{{ item.diffPre }}
                            </div>
                        </div>
                    </card-box>
                </div>
            </div>
 
        </div>
    </flex-layout>
</template>
 
<style scoped>
.home-content {
    position: relative;
    height: 100%;
    background-image: url("./images/home.png");
    background-repeat: no-repeat;
    background-size: 100% 100%;
}
.card-box-list {
    text-align: center;
    .card-box-item {
        display: inline-block;
        margin-left: 16px;
    }
}
 
.home-info-list {
    padding: 8px;
}
</style>