diff --git a/src/api/reading.js b/src/api/reading.js index ca4d71f2..d0697f26 100644 --- a/src/api/reading.js +++ b/src/api/reading.js @@ -45,15 +45,9 @@ export function saveImageLabelList(param) { }) } -export function getStudyInfo(studyId, visitTaskId) { - let url = '' - if (visitTaskId) { - url = `/Study/item/${studyId}?visitTaskId=${visitTaskId}` - } else { - url = `/Study/item/${studyId}` - } +export function getStudyInfo(studyId) { return request({ - url: url, + url: `/Study/item/${studyId}`, method: 'get' }) } diff --git a/src/views/dicom-show/dicom-study.vue b/src/views/dicom-show/dicom-study.vue index af11c267..84ca2921 100644 --- a/src/views/dicom-show/dicom-study.vue +++ b/src/views/dicom-show/dicom-study.vue @@ -194,8 +194,7 @@ export default { imageList: [], showSeriesList: [], currentLoadIns: [], - isFromCRCUpload: false, - visitTaskId: null + isFromCRCUpload: false } }, created: function() { @@ -217,7 +216,6 @@ export default { this.initSeries() } else if (this.type === 'Study') { this.showDelete = parseInt(this.$router.currentRoute.query.showDelete) - this.visitTaskId = this.$route.query.visitTaskId this.loadStudy() } else if (this.type === 'Share') { this.loadStudy() @@ -239,12 +237,7 @@ export default { }, methods: { async loadStudy() { - let data = null - if (this.visitTaskId) { - data = await getStudyInfo(this.studyId, this.visitTaskId) - } else { - data = await getStudyInfo(this.studyId) - } + const data = await getStudyInfo(this.studyId) if (data.IsSuccess) { if (data.Result) { this.studyCode = data.Result.StudyCode