<template>
    <div class="ele-fire">
        <div class="top">
            <h4 class="title">{{data.deviceName}}</h4>
            <div class="status" v-if="data.viewInfo.smokeState == 0">
                正常
            </div>
            <div class="status status-danger" v-else>
                报警
            </div>
        </div>
        <p>设备编号：{{data.viewInfo.deviceCode}}</p>
        <p>安装位置：{{data.installAddr}}</p>
        <p>近7天报警数：0</p>
        <p>信号强度：{{data.viewInfo.rssi}}dBm</p>

    </div>
</template>

<script>
    export default {
        name: "EleFire",
        props: ['data']
    }
</script>

<style scoped>

</style>
<style lang="scss">
    .ele-fire {
        margin-top: 20px;
        width: calc(100% - 30px);
        /*height: 270px;*/
        margin: 15px;
        border: 1px solid #ddd;
        background: #FFF;

        .top {
            overflow: hidden;
            height: 60px;
            line-height: 60px;
            padding: 0 15px;
            border-bottom: 1px solid #ddd;

            .title {
                /*padding-top: 15px;*/
                /*margin: 30px 0;*/
                font-size: 28px;
                font-weight: 600;
                color: #000;
                float: left;
            }

            .status {
                float: right;
                color: rgb(12, 110, 207);
            }

            .status-danger {
                color: #D7241F;
            }
        }


        p {
            color: #000;
            font-size: 20px;
            margin: 15px 0 15px;
            padding: 0 15px;
        }

        ul, li {
            list-style-type: none;
            padding: 0;
            margin: 0;
            overflow: hidden;
        }

        li {
            width: 33.333%;
            float: left;
            text-align: center;

            p {
                padding: 0;
                margin: 0;
            }
        }


    }
</style>