<template>
  <div class="dashboard-editor-container">
    
    
    
    <div class="layout-1">
      <el-row :gutter="24">
      
        <el-col class="gutter-row item item4" :span="8">
            <div class="gutter-box">
              <div class="gutter-box-title">风场统计</div>
              <div class="count-to-box">
                <span class="text">总数</span>
                <span class="number" @click="redirectPage('departments')">
                  <i class="el-icon-loading" v-if="showLoading"></i>
                  <countTo v-else :startVal='startVal' :endVal='countData.department_count' :duration='duration'></countTo>
                </span>
                个
              </div>
            </div>
        </el-col>
        
        <el-col class="gutter-row item item4" :span="8">
            <div class="gutter-box">
              <div class="gutter-box-title">设备统计</div>
              <div class="count-to-box">
                <span class="text">总数</span>
                <el-popover
                  placement="bottom"
                  width="600"
                  trigger="hover">
                  <div>
                    <device-table :tableData="countData.device_type_data" />
                  </div>
                  <span slot="reference" class="number">
                    <i class="el-icon-loading" v-if="showLoading"></i>
                    <countTo v-else :startVal='startVal' :endVal='countData.device_total_count' :duration='duration'></countTo>
                  </span>
                </el-popover>
                <!-- <span class="number" @click="redirectPage('school')">
                  <i class="el-icon-loading" v-if="showLoading"></i>
                  <countTo v-else :startVal='startVal' :endVal='countData.device_total_count' :duration='duration'></countTo>
                </span> -->个
              </div>
              <div class="count-to-box">
                <span class="text">在线数</span>
                <span class="number" @click="redirectPage('school')">
                  <i class="el-icon-loading" v-if="showLoading"></i>
                  <countTo v-else :startVal='startVal' :endVal='countData.device_online_count' :duration='duration'></countTo>
                </span>个
              </div>
            </div>
        </el-col>

      
      </el-row>
    </div>

    <div class="layout-2">

      <!-- 用户设备数据 -->
      <el-row :gutter="16">
        <el-col class="gutter-row item" :span="24">
          <device-data-chart :countData="countData" :total="countData.device_total_count" />
        </el-col>
      </el-row>

      <!-- 告警图表 -->
      <el-row :gutter="16">
        <!-- 告警提醒 -->
        <el-col class="gutter-row item" :span="8">
          <device-alarm-message />
        </el-col>
        <!-- 告警数据 -->
        <el-col class="gutter-row item" :span="16">
          <!-- <device-alarm-chart :statsData="statsData" /> -->
          <normal-card 
            showHeader
            showMenu
            title="告警数据"
            shadow="always"
            trigger="hover"
            :menuItems="alarmGrowthMenuItems"
            :bodyStyle="{height: '310px'}"
          >
            <template v-slot:content>
                <total-alarm-growth width="100%" />
            </template>
        </normal-card>
        </el-col>
      </el-row>
       <!-- 维保记录 -->
      <el-row :gutter="16">
      
         <!--扭矩分析-->
        <el-col class="gutter-row item" :span="12">
          <!-- <device-alarm-chart :statsData="statsData" /> -->
          <normal-card
            showHeader
            showMenu
            title="压力分析"
            shadow="always"
            trigger="hover"
            :menuItems="alarmGrowthMenuItems"
            :bodyStyle="{height: '310px'}"
          >
              <template v-slot:content>
                  <maintenance-alarm-chart width="100%" />
              </template>
          </normal-card>
        </el-col>
        <!--压力分析-->
        <el-col class="gutter-row item" :span="12">
          <!-- <device-alarm-chart :statsData="statsData" /> -->
          <normal-card
            showHeader
            showMenu
            title="扭矩分析"
            shadow="always"
            trigger="hover"
            :menuItems="alarmGrowthMenuItems"
            :bodyStyle="{height: '310px'}"
          >
              <template v-slot:content>
                  <maintenance-alarm-chart width="100%" />
              </template>
          </normal-card>
        </el-col>
      </el-row>

    </div>
    



  </div>
</template>

<script>

import countTo from 'vue-count-to'
import NormalCard from '@/components/Card/NormalCard'
import StationDataChart from './components/StationDataChart'
import DeviceDataChart from './components/DeviceDataChart'
import DeviceAlarmMessage from './components/DeviceAlarmMessage'
import TotalAlarmGrowth from './components/TotalAlarmGrowth'
import StationTable from './components/StationTable'
import DeviceTable from './components/DeviceTable'
import MaintenanceAlarmChart from './components/MaintenanceAlarmChart'

export default {
  name: 'DashboardAdmin',
  components: {
    countTo,
    NormalCard,
    StationDataChart,
    DeviceDataChart,
    TotalAlarmGrowth,
    DeviceAlarmMessage,
    StationTable,
    DeviceTable,
    MaintenanceAlarmChart
  },
  deactivated() {
    // 选中本页面时重新加载，以便获取最新数据
    var cached = this.$store.state.tagsView.cachedViews.filter(item => {
      return item != "Dashboard"
    })
    this.$store.state.tagsView.cachedViews = cached
  },
  data() {
    return {
      statsData: {}, // 统计数据
      cardColors: {},
      duration: 3000,
      showLoading: true,
      // showAddLoading: true,
      startVal: 0,
      //维保记录规律统计
      Maintenance:{

      },

      countData: {
       department_count:24,
       device_online_count:31,
       device_total_count:215,
       device_type_data:[
         {
           'alarm': 62,
          'online': 31,
          'text': "液压泵",
          'total': 40,
          'value': "0",
         },
          {
           'alarm': 80,
          'online': 32,
          'text': "法兰",
          'total': 75,
          'value': "0",
         },
         {
           'alarm': 80,
          'online': 32,
          'text': "液压扳手",
          'total': 100,
          'value': "0",
         },
       ]
      },
      alarmGrowthMenuItems: [
          {
              name: '全屏',
              command: 'full',
              icon: 'full-screen',
          }
      ]
    }
  },
  created() {
    this.$appConfig.netState && this.$appConfig.netState.forEach(item => {
      this.cardColors[item.value] = item.color
    })
    // 查询近期统计数据
    this.getHomePageCountData()
  },
  methods: {
    /**
     * 获取首页数量数据
     */
    getHomePageCountData() {
      // this.$http.get('total/getHomePageCountData')
      //           .then((resp) => {
      //             if(resp.code == 10000){
      //               this.countData = resp.data
                    this.showLoading = false
      //             }
      //           })
    },
    redirectPage(type) {
      let path = '';

      switch(type) {
        case 'departments':
          path = '/permissions/departments'
          break;
        case 'student':
          path = '/schoolsys/student'
          break;
        default:
          break;
      }
      this.$router.push({ path: path})
    }
  }
}
</script>

<style lang='scss' scoped>

  .dashboard-editor-container {
    padding: 20px;
    background-color: rgb(240, 242, 245);
    position: relative;

    .chart-wrapper {
      background: #fff;
      padding: 16px 16px 0;
      margin-bottom: 32px;
    }
  }
  
  @media (max-width:1024px) {
    .chart-wrapper {
      padding: 8px;
    }
  }

  .layout-1 {
    margin-bottom: 25px;
    .item {
      color: #fff;
      .gutter-box {
        height: 160px;
        border-radius: 5px;
        box-shadow: 0 4px 5px rgba(0,0,0,.15);
        .today-add {
          font-size: 12px;
          .number {
            padding-left: 10px;
            font-size: 22px;
            font-family: Arial,"Helvetica Neue",Helvetica,sans-serif;
            span:hover {
              cursor: pointer;
              color: #000;
            }
          }
          display: flex;
          margin-left: 20px;
          height: 46px;
          line-height: 46px;
        }

        .gutter-box-title {
          font-size: 1.5rem;
          margin-left: 20px;
          height: 46px;
          line-height: 46px;
        }

      }
    }
    .item1 > .gutter-box{
      background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHIAAABOCAYAAAD8ZUKrAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDowNkI0ODE2MUE1QUMxMUU4QkVCRThERDMyMUJCMDZFNiIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDowNkI0ODE2MkE1QUMxMUU4QkVCRThERDMyMUJCMDZFNiI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0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TkSeEdJWDAKtXZOEynHrgbI0DKUANk7MwZLuGORTgktaKOE91dsfhVrBxDbA7wU5FxY4SqGKpnib58wQAYRe547J6F36NjMh7xaItsbYCsHAObcXSHOvSv+3bJSen1lrOZIu1bXnw8s2G7JaMr9TKJbXYUBcKgNgwbtFXZHWq2xyNByhKEB2Op7ErpDOhZL5EKBiFVNWBDTjtZ72AAZWuAqf+R8hED9faWviNVt4LbAAtHENJ/ztn1vDakMZCzDD+wxjr4UtP0hf4qeFFTYz4o/dXYzTr8DAwYrmoZorhSCOuIaic9uyo2MVXMShJ3O2FtinRBAk+0S8f+5WrjYftSXxap3XmJmp5qvb0nbu7iz+PAKyXx7UJ3rNqoZqpRL/PKuFxmnljEh4bYM4xFLD1oyfL64JjxgHSOYaSkIcp79Z5Sa5OH1DhlMHrQX/0b1wa5xnHPhORceJIjUh5yD8Z1onHJju7V2jMHH8t/wOOXxBlIHBO6vlOAW83V2hNdrIVO+Ssuo4sh0Ow03lImQRPUH77bjcLeADCQFdIv5tLgOJGD2n4doomtsosXVc569I97JncLNI0FfRAuJt/j4DMp1z/OvAAMAVPpxr6yc9YYAAAAASUVORK5CYII=') 20px 48px no-repeat #32c5d2;
    }
    .item2 > .gutter-box {
      background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFwAAABOCAYAAACt8XHIAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3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IpyRj4yAbSL0sYbCY5cgmYF/SejoI9X10d+GuI+E6mhzP9zou0uvbka7pnlQIZGMk0yz29i1uaKOL3cKswAUWpDObkEfm87sK6WK79aH27yHAvB5QafIjGlEIpJu+YvYFE1nb85L4/Z0U+RQzF9WqH/1obxgCuQGJ1FGM8u0xoaFsITBduZp5ROfezpbVyuyBTYwDnVbx2g4mqfhfgAEAwUcHMH0YPAIAAAAASUVORK5CYII=') 20px 48px no-repeat;
      //  #7ba7bd
    }
    .item4 > .gutter-box {
      background: #00bcd4 ;
      // background-image: url('/icons/organization.png') 20px 38px no-repeat;
      // background-size: 114px 78px;
      //  #e7505a
    }
    .item5 > .gutter-box {
      background: #00bcd4 url('/icons/student_104.png') 20px 38px no-repeat;
      //  #e7505a
    }
    .count-to-box {
      margin-left: 20px;
      margin-right: 20px;
      text-align: left;
      // position: relative;
      // right: 50px;
      .text {
        display: inline-block;
        width: 100px;
        font-size: 16px;
        height: 28px;
        line-height: 28px;
      }
      .number {
        font-family: Arial,"Helvetica Neue",Helvetica,sans-serif;
        font-size: 2rem;
        height: 52px;
        line-height: 52px;
        /* span {
          float: right;
          width: 100px;
        } */
        span:hover {
          cursor: pointer;
          color: #000;
        }
      }
    }
    /** 5等分 */
    .el-col-5,
    .el-col-5,
    .el-col-5,
    .el-col-5 {
        position: relative;
        min-height: 1px;
        padding-right: 10px;
        padding-left: 10px;
    }

    .el-col-5 {
        width: 20%;
        float: left;
    }

    @media (min-width: 768px) {
        .el-col-5 {
            width: 20%;
            float: left;
        }
    }

    @media (min-width: 992px) {
        .el-col-5 {
            width: 20%;
            float: left;
        }
    }

    @media (min-width: 1200px) {
        .el-col-5 {
            width: 20%;
            float: left;
        }
    }
  }

  .layout-2 {
    margin-bottom: 25px;
    .item {
      margin-bottom: 25px;
    }

    .charts-icon {
      float: right;
      color: #000;
    }
    .charts-icon:hover {
      cursor: pointer;
    }
  }
  
</style>