<template>
  <div ref="box" class="box" :class="{'nocopy': $route.meta.nocopy}">
    <CaseQualityBox v-if="data.data" :data="data" />
  </div>
</template>

<script>
import CaseQualityBox from './components/CaseQualityBox.vue';
  export default {
    components: {
      CaseQualityBox
    },
    data() {
      return {
        data: {}
      }
    },
    created() {
      if(this.$route.query.id) {
        this.getCaseQualityResults()
      }
    },
    methods: {
      // 获取新病案指控结果
      getCaseQualityResults() {
        const params = {
          id: Number(this.$route.query.id),
        };
        this.$axios2.post('/home_quality/getQualityResult', params).then(res => {
          this.data = res.data;
        });
      }
    }
  }
</script>

<style lang="scss" scoped>
</style>