<template>
    <div class="_runnin">
        <HeadlineTag value="车牌识别统计"></HeadlineTag>
        <div class="_runnin_mains">
            <div class="_runnin_mains_left _left_1">
                <div class="_runnin_mains_left_tuan tuan_1"></div>
                <div class="_runnin_mains_left_conter">
                    <div class="_runnin_mains_left_conter_num">785</div>
                    <div class="_runnin_mains_left_conter_text">今日车牌识别</div>
                </div>
            </div>
            <div class="_runnin_mains_left _left_2">
                <div class="_runnin_mains_left_tuan tuan_2"></div>
                <div class="_runnin_mains_left_conter">
                    <div class="_runnin_mains_left_conter_num">14</div>
                    <div class="_runnin_mains_left_conter_text">黑名单</div>
                </div>
            </div>
            
            <!-- <div class="_runnin_mains_right">
                <div class="_runnin_mains_right_item" v-for="item,index in runningList" :key="index">
                    <div class="_runnin_mains_right_item_tuan">
                        <span class="_runnin_mains_right_item_tuan_flag" :style="{backgroundColor: item.color}"></span>
                        <el-tooltip :content="item.tip" placement="top" effect="light">
                            <el-text class="w-150px mb-2" truncated style="color: #ccc;">
                                {{item.name}}
                            </el-text>
                        </el-tooltip>
                    </div>
                    <div class="_runnin_mains_right_item__txt">
                        {{item.state}}
                    </div>
                </div>
            </div> -->
        </div>
    </div>
</template>

<script setup>
import { ref } from "vue";
import HeadlineTag from '@/components/HeadlineTag'
const runningList = ref([
    { name:'入侵检测', state:'154', color:'#409eff',tip:'划定区域人员闯入'},
    { name:'异常行为', state:'15', color:'#15acaa',tip:'徘徊、倒地、聚集'}, 
    { name:'丢失告警', state:'134', color:'#FFC107',tip:'物品遗留/丢失告警'},
])
</script>
<style lang="scss" scoped>
.tuan_1 {
    background: url("@/assets/images/video_he.png");
    animation: scanning 5s linear infinite;
}
._left_1{
    color: #01baff;
}
.tuan_2 {
    background: url("@/assets/images/video_he_.png");	
    animation: scanning 6s linear infinite;
}
._left_2{
    color: #de4034 !important;	
}
._runnin {
    &_mains {
        margin: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        &_left {
            flex-shrink: 0;
            width: 200px;
            height: 200px;
            position: relative;
            &_tuan{
                width: 100%;
                height: 100%;
                background-size: 80% 80%;
                background-position: center;
                background-repeat: no-repeat;
            }
            &_conter {
                position: absolute;
                left: 0;
                top: 0;
            	flex-shrink: 0;
                width: 100%;
                height: 100%;
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                &_num {
                    font-size:22px;
                    font-weight: 500;
                }
                &_text {
                    font-size: 12px;
                }	
            }
        }
        &_right {
            margin-left:10px;
           flex: 1;
           color: #fff;
           &_item{
                display: flex;
                align-items: center; 
                gap: 40px;
                padding: 5px 0;
                &_tuan {
                    display: flex;
                    align-items: center; 
                    &_flag{
                        display: block;
                        width: 7px;
                        height: 7px;
                        border-radius: 50%;
                        margin-right: 10px;
                    }
                }
                &__txt{
                    font-size:24px;
                }
            }
        }

        
    }
}
@keyframes scanning {
		to {
			transform: rotate(1turn);
		}
	}
</style>