<template>
  <div class="product-analysis-report">
    <div class="page-mian">
      <div class="pdf-left" ref="pdf">
        <embed class="embed" width="100%" height="100%" :src="cases.pdf_uris[0]" />
      </div>
      <div class="right-content">
        <report></report>
      </div>
    </div>
  </div>
</template>

<script>
import Report from '../components/Report.vue'
export default {
  components: { Report },
  computed: {
    cases() {
      return this.$store.state.case
    }
  },
  mounted() {
    this.$refs.pdf.style.height = `${document.documentElement.clientHeight - 40}px`
  }
}
</script>

<style lang="scss" scoped>
input {
  background: none;
  border: none;
  outline: none;
}
.product-analysis-report {
  padding: 33px 50px 0;
  .page-mian {
    // overflow: hidden;
    background: #fff;
    display: flex;
    padding: 20px;
    .right-content {
      width: 674px;
      background: #f8f8f8;
      border: 1px solid #dcdcdc;
      border-radius: 10px;
    }
    .pdf-left {
      flex: 1;
      margin-right: 10px;
      position: sticky;
      top: 20px;
      left: 0;
    }
  }
}
</style>
