138 lines
4.6 KiB
Plaintext
138 lines
4.6 KiB
Plaintext
<template>
|
|
<div v-loading="loading" class="none-dicom-reading-container">
|
|
<!-- 访视阅片 -->
|
|
<VisitReview
|
|
v-if="readingCategory && readingCategory=== 1"
|
|
:trial-id="trialId"
|
|
:subject-id="subjectId"
|
|
:subject-code="subjectCode"
|
|
: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 GlobalReview from '@/views/trials/trials-panel/reading/global-review'
|
|
import AdReview from '@/views/trials/trials-panel/reading/ad-review'
|
|
import OncologyReview from '@/views/trials/trials-panel/reading/oncology-review'
|
|
export default {
|
|
name: 'NoneDicomReading',
|
|
components: {
|
|
VisitReview,
|
|
AdReview,
|
|
GlobalReview,
|
|
OncologyReview
|
|
},
|
|
data() {
|
|
return {
|
|
loading: false,
|
|
readingCategory: null,
|
|
subjectId: '',
|
|
visitTaskId: '',
|
|
trialId: '',
|
|
subjectCode: '',
|
|
taskBlindName: '',
|
|
isReadingShowSubjectInfo: false,
|
|
isReadingShowPreviousResults: false,
|
|
criterionType: null,
|
|
readingTool: null
|
|
}
|
|
},
|
|
mounted() {
|
|
this.trialId = this.$router.currentRoute.query.trialId
|
|
this.subjectCode = this.$router.currentRoute.query.subjectCode
|
|
this.subjectId = this.$router.currentRoute.query.subjectId
|
|
this.visitTaskId = this.$router.currentRoute.query.visitTaskId
|
|
this.readingCategory = parseInt(this.$router.currentRoute.query.readingCategory)
|
|
|
|
this.taskBlindName = this.$router.currentRoute.query.taskBlindName
|
|
this.isReadingShowSubjectInfo = this.$router.currentRoute.query.isReadingShowSubjectInfo
|
|
this.isReadingShowPreviousResults = this.$router.currentRoute.query.isReadingShowPreviousResults
|
|
this.criterionType = this.$router.currentRoute.query.criterionType
|
|
this.readingTool = this.$router.currentRoute.query.readingTool
|
|
if (this.$router.currentRoute.query.TokenKey) {
|
|
store.dispatch('user/setToken', this.$router.currentRoute.query.TokenKey)
|
|
changeURLStatic('TokenKey', '')
|
|
}
|
|
this.getTaskInfo()
|
|
},
|
|
methods: {
|
|
getTaskInfo() {
|
|
this.loading = true
|
|
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
|
|
this.digitPlaces = res.Result.DigitPlaces
|
|
localStorage.setItem('digitPlaces', 2)
|
|
this.loading = false
|
|
}).catch(() => { this.loading = false })
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.none-dicom-reading-container{
|
|
width: 100%;
|
|
height: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
</style>
|