CheckPathologyDetail.vue 682 B

1234567891011121314151617181920212223242526
  1. <template>
  2. <window-size>
  3. <van-image width="100%" :src="imageSrc" fit="cover"/>
  4. </window-size>
  5. </template>
  6. <script setup>
  7. import {useStore} from "vuex";
  8. import {onMounted, ref} from "vue";
  9. import router from "../../../../router";
  10. import {fetchInspectionReportImage} from "../../../../utils/request";
  11. const store = useStore()
  12. const pathologyIndex = store.getters.getCurrentPathologyIndex
  13. const imageSrc = ref(null)
  14. onMounted(() => {
  15. fetchInspectionReportImage({
  16. patientId: router.currentRoute.value.params.patientId,
  17. reportId: pathologyIndex.reportId,
  18. reportUrl: pathologyIndex.reportUrl
  19. }).then(response => {
  20. imageSrc.value = response
  21. })
  22. })
  23. </script>