<template>
  <div class="saga-report">
    <section class="saga-report-section">
      <el-row :gutter="20"  v-for="(item,index) in errorReport" :key="item.Id" style="margin-bottom: 10px">
          <el-col :span="12">
            <h3>{{index +1}}.{{item.Name}}</h3>
            <div class="problem-description">{{item.Note}}</div>
            <h5>问题创建人：{{item.Author}}</h5>
          </el-col>
          <el-col :span="12" v-show="item.Pic" v-for="pic in item.Pic" :key="pic.Key">
            <h4 style="font-size: 14px">现场照片</h4>
            <el-image
              :src="`/image-service/common/image_get?systemId=dataPlatform&key=${pic.Key}`"
              style="width:100%;height: 300px" :alt="item.Name"
              :fit="fill"></el-image>
          </el-col>
      </el-row>
    </section>
  </div>
</template>

<script>
  import {mapState} from "vuex";

  export default {
    name: "report",
    data() {
      return {
        fill:'cover'
      }
    },
    computed: {
      ...mapState('layout', ['errorReport'])

    },
    created() {
      console.log("lisa gagagg",this.errorReport)
    }

  }
</script>

<style scoped lang="less">
  .saga-report {
    width: 1000px;
    height: 710px;
    background: #fff;
    margin: 0 auto;
    overflow-y: auto;

    .saga-report-section {
      padding: 20px;

      .problem-description {
        width: 400px;
        height: 240px;
        background: #eeeeee;
        border-radius: 5px;
        padding: 10px;
      }
    }
  }
</style>
