91 lines
		
	
	
		
			2.4 KiB
		
	
	
	
		
			Plaintext
		
	
	
			
		
		
	
	
			91 lines
		
	
	
		
			2.4 KiB
		
	
	
	
		
			Plaintext
		
	
	
<template>
 | 
						|
  <div v-loading="loading" class="none-dicom-reading-container">
 | 
						|
    <!-- 访视阅片 -->
 | 
						|
    <VisitReview
 | 
						|
      v-if="readingCategory && readingCategory=== 1"
 | 
						|
      :trial-id="trialId"
 | 
						|
      :subject-id="subjectId"
 | 
						|
      :visit-task-id="visitTaskId"
 | 
						|
      :reading-category="readingCategory"
 | 
						|
    />
 | 
						|
    <!-- 全局阅片 -->
 | 
						|
    <GlobalReview
 | 
						|
      v-else-if="readingCategory && readingCategory === 2"
 | 
						|
      :trial-id="trialId"
 | 
						|
      :subject-id="subjectId"
 | 
						|
      :visit-task-id="visitTaskId"
 | 
						|
      :reading-category="readingCategory"
 | 
						|
    />
 | 
						|
    <!-- 裁判阅片 -->
 | 
						|
    <AdReview
 | 
						|
      v-else-if="readingCategory && readingCategory === 4"
 | 
						|
      :trial-id="trialId"
 | 
						|
      :subject-id="subjectId"
 | 
						|
      :visit-task-id="visitTaskId"
 | 
						|
      :reading-category="readingCategory"
 | 
						|
    />
 | 
						|
 | 
						|
  </div>
 | 
						|
 | 
						|
</template>
 | 
						|
 | 
						|
<script>
 | 
						|
import { getNextTask } from '@/api/trials'
 | 
						|
import store from '@/store'
 | 
						|
import { changeURLStatic } from '@/utils/history.js'
 | 
						|
import VisitReview from './components/VisitReview'
 | 
						|
import AdReview from './components/AdReview'
 | 
						|
import GlobalReview from './components/GlobalReview'
 | 
						|
export default {
 | 
						|
  name: 'NoneDicomReading',
 | 
						|
  components: {
 | 
						|
    VisitReview,
 | 
						|
    AdReview,
 | 
						|
    GlobalReview
 | 
						|
  },
 | 
						|
  data() {
 | 
						|
    return {
 | 
						|
      loading: false,
 | 
						|
      readingCategory: null,
 | 
						|
      subjectId: '',
 | 
						|
      visitTaskId: '',
 | 
						|
      trialId: ''
 | 
						|
    }
 | 
						|
  },
 | 
						|
  mounted() {
 | 
						|
    if (this.$router.currentRoute.query.TokenKey) {
 | 
						|
      store.dispatch('user/setToken', this.$router.currentRoute.query.TokenKey)
 | 
						|
      changeURLStatic('TokenKey', '')
 | 
						|
    }
 | 
						|
    this.trialId = this.$router.currentRoute.query.trialId
 | 
						|
    this.subjectId = this.$router.currentRoute.query.subjectId ? this.$router.currentRoute.query.subjectId : ''
 | 
						|
    this.visitTaskId = this.$router.currentRoute.query.visitTaskId ? this.$router.currentRoute.query.visitTaskId : ''
 | 
						|
    this.getTaskInfo()
 | 
						|
  },
 | 
						|
  methods: {
 | 
						|
    getTaskInfo() {
 | 
						|
      var param = {
 | 
						|
        subjectId: this.subjectId,
 | 
						|
        trialId: this.trialId,
 | 
						|
        visistTaskId: this.visitTaskId
 | 
						|
      }
 | 
						|
      getNextTask(param).then(res => {
 | 
						|
        this.readingCategory = res.Result.ReadingCategory
 | 
						|
        this.subjectId = res.Result.SubjectId
 | 
						|
        this.visitTaskId = res.Result.VisitTaskId
 | 
						|
      })
 | 
						|
    }
 | 
						|
  }
 | 
						|
}
 | 
						|
</script>
 | 
						|
 | 
						|
<style lang="scss" scoped>
 | 
						|
.none-dicom-reading-container{
 | 
						|
  width: 100%;
 | 
						|
  height: 100%;
 | 
						|
  display: flex;
 | 
						|
  flex-direction: column;
 | 
						|
}
 | 
						|
 | 
						|
</style>
 |