<template>
  <div ref="box" class="box">
    <bmyCaseQualityBox v-if="data" :data="data" :width="400"/>
  </div>
</template>

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

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