<template>
  <div class="app-container homeA">
    <div clss="div-row">
      <div class="div-col1">
        <el-card>
          <div style="width: 50%;height: 100%;text-align: center;float: left;font-size: 15px;">
            <img src="../assets/taskDistribution.png" width="15%" style="margin-top: 2.5rem;">
            <p>任务下发</p>
          </div>
          <div style="width: 50%;height: 100%;text-align: center;line-height: 8rem;float: right;font-size: 2.5rem;font-family: 'UnidreamLED';">0</div>
        </el-card>
      </div>
      <div class="div-col1">
        <el-card>
          <div style="width: 50%;height: 100%; text-align: center;float: left;font-size: 15px;">
            <img src="../assets/taskFeedback.png" width="15%" style="margin-top: 2.5rem;">
            <p>任务反馈</p>
          </div>
          <div style="width: 50%;height: 100%;text-align: center;line-height: 8rem;float: right;font-size: 2.5rem;font-family: 'UnidreamLED';">0</div>
        </el-card>
      </div>
      <div class="div-col1">
        <el-card>
          <div style="width: 50%;height: 100%; text-align: center;float: left;font-size: 15px;">
            <img src="../assets/complaint.png" width="15%" style="margin-top: 2.5rem;">
            <p>投诉处置</p>
          </div>
          <div style="width: 50%;height: 100%;text-align: center;line-height: 8rem;float: right;font-size: 2.5rem;font-family: 'UnidreamLED';">0</div>
        </el-card>
      </div>
      <div class="div-col1">
        <el-card>
          <div style="width: 50%;height: 100%; text-align: center;float: left;font-size: 15px;">
            <img src="../assets/complaintFeedback.png" width="15%" style="margin-top: 2.5rem;">
            <p>投诉反馈</p>
          </div>
          <div style="width: 50%;height: 100%;text-align: center;line-height: 8rem;float: right;font-size: 2.5rem;font-family: 'UnidreamLED';">0</div>
        </el-card>
      </div>
    </div>

    <div clss="div-row">
      <div class="div-col1">
        <el-card>
          <div style="width: 50%;height: 100%; text-align: center;float: left;font-size: 15px;">
            <img src="../assets/video.png" width="15%" style="margin-top: 2.5rem;">
            <p>视频监控</p>
          </div>
          <div style="width: 50%;height: 100%;text-align: center;line-height: 8rem;float: right;font-size: 2.5rem;font-family: 'UnidreamLED';">0</div>
        </el-card>
      </div>
      <div class="div-col1">
        <el-card>
          <div style="width: 50%;height: 100%; text-align: center;float: left;font-size: 15px;">
            <img src="../assets/detector.png" width="15%" style="margin-top: 2.5rem;">
            <p>安全装置</p>
          </div>
          <div style="width: 50%;height: 100%;text-align: center;line-height: 8rem;float: right;font-size: 2.5rem;font-family: 'UnidreamLED';">0</div>
        </el-card>
      </div>
      <div class="div-col1">
        <el-card>
          <div style="width: 50%;height: 100%; text-align: center;float: left;font-size: 15px;">
            <img src="../assets/trouble.png" width="15%" style="margin-top: 2.5rem;">
            <p>燃气事故</p>
          </div>
          <div style="width: 50%;height: 100%;text-align: center;line-height: 8rem;float: right;font-size: 2.5rem;font-family: 'UnidreamLED';">0</div>
        </el-card>
      </div>
      <div class="div-col1">
        <el-card>
          <div style="width: 50%;height: 100%; text-align: center;float: left;font-size: 15px;">
            <img src="../assets/hidden.png" width="15%" style="margin-top: 2.5rem;">
            <p>隐患整治</p>
          </div>
          <div style="width: 50%;height: 100%;text-align: center;line-height: 8rem;float: right;font-size: 2.5rem;font-family: 'UnidreamLED';">0</div>
        </el-card>
      </div>
    </div>

    <div clss="div-row">
      <div class="div-col2">
        <el-card>
            <img src="../assets/dataMonitor.png" width="20%"/>
            <p>数据监控</p>
        </el-card>
      </div>
      <div class="div-col2">
        <el-card>
            <img src="../assets/emergency.png" width="20%"/>
            <p>应急处置</p>
        </el-card>
      </div>
      <div class="div-col2">
        <el-card>
            <img src="../assets/enterprise.png" width="20%"/>
            <p>燃气企业</p>
        </el-card>
      </div>
      <div class="div-col2">
        <el-card>
            <img src="../assets/user.png" width="20%"/>
            <p>燃气用户</p>
        </el-card>
      </div>
      <div class="div-col2">
        <el-card>
            <img src="../assets/station.png" width="20%"/>
            <p>场站信息</p>
        </el-card>
      </div>
      <div class="div-col2">
        <el-card>
            <img src="../assets/pipe.png" width="20%"/>
            <p>管道信息</p>
        </el-card>
      </div>
      <div class="div-col2">
        <el-card>
            <img src="../assets/device.png" width="20%"/>
            <p>设备信息</p>
        </el-card>
      </div>
      <div class="div-col2">
        <el-card>
            <img src="../assets/addDetector.png" width="20%"/>
            <p>用户加装安全装置</p>
        </el-card>
      </div>
    </div>

    <div class="div-row">
      <div class="div-col3">
        <el-card>
          <div slot="header">
            <span>任务下发</span>
          </div>
          <div class="body">
            <el-table :data="equipmentList" style="width: 100%; border: 1px solid #e6ebf5;">
              <el-table-column label="优先级" align="center" prop="hiddenTitle" width="80"/>
              <el-table-column label="任务名称" align="left" prop="hiddenTitle">
                <template slot-scope="scope">
                  <span></span>
                </template>
              </el-table-column>
              <el-table-column label="状态" align="center" prop="hiddenTitle" width="80">
                <template slot-scope="scope">
                  <span></span>
                </template>
              </el-table-column>
            </el-table>
          </div>
        </el-card>
      </div>
      <div class="div-col3">
        <el-card>
          <div slot="header">
            <span>投诉处置</span>
          </div>
          <div class="body">
            <el-table :data="equipmentList" style="width: 100%; border: 1px solid #e6ebf5;">
              <el-table-column label="优先级" align="center" prop="hiddenTitle" width="80"/>
              <el-table-column label="任务名称" align="left" prop="hiddenTitle">
                <template slot-scope="scope">
                  <span></span>
                </template>
              </el-table-column>
              <el-table-column label="状态" align="center" prop="hiddenTitle" width="80">
                <template slot-scope="scope">
                  <span></span>
                </template>
              </el-table-column>
            </el-table>
          </div>
        </el-card>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "index",
  data() {
    return {

    };
  },
  created(){
    // 默认配置
    console.log(this.$store.state.settings)
  },
  methods: {
    goTarget(href) {
      window.open(href, "_blank");
    },
  },
};
</script>

<style scoped lang="scss">
.homeA {
  div {
    color: #515a6e;
  }

  .col-item {
    margin-bottom: 20px;
  }

  padding: 10px;
  font-family: "open sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  overflow-x: hidden;

  p {
    margin: 0px;
    color: #515a6e;
  }

  .div-col1 {
    width: 25%;
    padding: 6px;
    float: left;
  }

  .div-col2 {
    width: 12.5%;
    padding: 6px;
    float: left;
    text-align: center;
  }

  .div-col3 {
    width: 50%;
    padding: 6px;
    float: left;
  }

}
</style>

