<template>
    <view class="index-zhuanzhi">
        <div class="header">
            <div class="header-item">
                <div class="header-item-value">8</div>
                <div class="header-item-label">设备总数</div>
            </div>
            <div class="header-item">
                <div class="header-item-value">1</div>
                <div class="header-item-label">正常设备</div>
            </div>
            <div class="header-item" @click="projectWarning">
                <div class="header-item-value">4</div>
                <div class="header-item-label">报警设备</div>
            </div>
            <div class="header-item">
                <div class="header-item-value">3</div>
                <div class="header-item-label">离线设备</div>
            </div>
            <div class="header-item">
                <div class="header-item-value">4</div>
                <div class="header-item-label">告警数量</div>
            </div>
            <div class="header-item">
                <div class="header-item-value">0</div>
                <div class="header-item-label">事件数量</div>
            </div>
            <div class="header-item" @click="projectNum">
                <div class="header-item-value">3</div>
                <div class="header-item-label">项目个数</div>
            </div>
        </div>
    </view>
</template>
<script>
export default {
    data () {
        return {
            loading: false,
        }
    },
    methods: {
        projectWarning () {
            uni.navigateTo({
                url: '/pages/zhuanzhi/warning'
            })
        },
        projectNum () {
            uni.navigateTo({
                url: '/pages/project/list'
            })
        },
        jump (item) {
            if (item.name.indexOf('APF') > -1) {
                uni.navigateTo({
                    url: '/pages/device/APF/detail'
                })
            } else if (item.name.indexOf('DVR') > -1) {
                uni.navigateTo({
                    url: '/pages/device/DVR/detail'
                })
            }
        },
    },
    created(){
    },
}
</script>
<style lang='scss'>
.index-zhuanzhi {}
</style>