<!-- 智能监测 -->
<template>
    <div class="smart-monitor">
        <template v-for="(item, index) in columnConfig" :key="index">
            <div class="item-box">
                <div class="left-side">
                    <img class="icon" />
                </div>
                <div class="right-side">
                    <div class="field-item title">
                        <div class="label-text">{{ item.label }}</div>
                    </div>
                    <div class="count-item">
                        {{ data[item.count] }}
                    </div>
                    <div class="field-item alert">
                        <div class="label-text">预警数</div>
                        <div class="value-text">{{ data[item.alert] }}</div>
                    </div>
                    <div class="field-item dispatch">
                        <div class="label-text">派单数</div>
                        <div class="value-text">{{ data[item.dispatch] }}</div>
                    </div>
                </div>
            </div>
        </template>
    </div>
</template>
<script setup>
import { onMounted, ref } from 'vue';
const props = defineProps({
    data: {
        type: Object,
        default: () => ({})
    }
})

const columnConfig = ref([
    {
        label: '桥梁监测',
        icon: '',
        count: '',
        countSubfix: '座',
        alert: '',
        dispatch: '',
    },
    {
        label: '隧道监测',
        icon: '',
        count: '',
        countSubfix: '座',
        alert: '',
        dispatch: '',
    },
    {
        label: '边坡监测',
        icon: '',
        count: '',
        countSubfix: '处',
        alert: '',
        dispatch: '',
    }
])
</script>
<style scoped lang="scss">
.smart-monitor {}
</style>