<template>
  <!-- 访视阅片 -->
  <VisitReview
    v-if="rowData.ReadingCategory === 1"
    :audit-info="auditInfo"
    :row-data="rowData"
  />
  <!-- 全局阅片 -->
  <GlobalReview
    v-else-if="rowData.ReadingCategory === 2"
    :audit-info="auditInfo"
    :row-data="rowData"
  />
  <!-- 裁判阅片 -->
  <AdReview
    v-else-if="rowData.ReadingCategory === 4"
    :audit-info="auditInfo"
    :row-data="rowData"
  />
  <!-- 肿瘤学阅片 -->
  <OncologyReview
    v-else-if="rowData.ReadingCategory === 5"
    :audit-info="auditInfo"
    :row-data="rowData"
  />

</template>
<script>
import VisitReview from './VisitReview'
import GlobalReview from './GlobalReview'
import AdReview from './AdReview'
import OncologyReview from './OncologyReview'
export default {
  name: 'HistoricAssessment',
  components: { VisitReview, GlobalReview, AdReview, OncologyReview },
  props: {
    auditInfo: {
      type: Object,
      default() {
        return {}
      }
    },
    rowData: {
      type: Object,
      default() {
        return {}
      }
    }
  }

}
</script>
<style lang="scss">
.historicAssess_wrapper{
  .highlight_row{
    color: #000;
    background-color: #ffde7b;
  }
  .highlight_row:hover>td {
    background-color: #ffde7b !important;
  }
}
</style>
