irc_web/.svn/pristine/a9/a93e9f618ee5588154793e32f36...

124 lines
3.9 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"
:subject-code="subjectCode"
:task-blind-name="taskBlindName"
:is-reading-show-subject-info="isReadingShowSubjectInfo"
:is-reading-show-previous-results="isReadingShowPreviousResults"
/>
<!-- 裁判阅片 -->
<AdReview
v-else-if="readingCategory && readingCategory === 4"
:trial-id="trialId"
:subject-id="subjectId"
:visit-task-id="visitTaskId"
:reading-category="readingCategory"
:subject-code="subjectCode"
:task-blind-name="taskBlindName"
:is-reading-show-subject-info="isReadingShowSubjectInfo"
:is-reading-show-previous-results="isReadingShowPreviousResults"
/>
<!-- 肿瘤学阅片 -->
<OncologyReview
v-else-if="readingCategory && readingCategory === 5"
:trial-id="trialId"
:subject-id="subjectId"
:visit-task-id="visitTaskId"
:reading-category="readingCategory"
:subject-code="subjectCode"
:task-blind-name="taskBlindName"
:is-reading-show-subject-info="isReadingShowSubjectInfo"
:is-reading-show-previous-results="isReadingShowPreviousResults"
/>
</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'
import OncologyReview from './components/OncologyReview'
export default {
name: 'NoneDicomReading',
components: {
VisitReview,
AdReview,
GlobalReview,
OncologyReview
},
data() {
return {
loading: false,
readingCategory: null,
subjectId: '',
visitTaskId: '',
trialId: '',
subjectCode: '',
taskBlindName: '',
isReadingShowSubjectInfo: false,
isReadingShowPreviousResults: false
}
},
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.subjectCode = this.$router.currentRoute.query.subjectCode
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,
subjectCode: this.subjectCode
}
getNextTask(param).then(res => {
this.readingCategory = res.Result.ReadingCategory
this.subjectId = res.Result.SubjectId
this.visitTaskId = res.Result.VisitTaskId
this.subjectCode = res.Result.SubjectCode
this.taskBlindName = res.Result.TaskBlindName
this.isReadingShowSubjectInfo = res.Result.IsReadingShowSubjectInfo
this.isReadingShowPreviousResults = res.Result.IsReadingShowPreviousResults
})
}
}
}
</script>
<style lang="scss" scoped>
.none-dicom-reading-container{
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
}
</style>