diff --git a/src/api/reading.js b/src/api/reading.js index 9202af20..65b9ecb2 100644 --- a/src/api/reading.js +++ b/src/api/reading.js @@ -45,10 +45,11 @@ export function saveImageLabelList(param) { }) } -export function getStudyInfo(studyId) { +export function getStudyInfo(studyId, params) { return request({ url: `/Study/item/${studyId}`, - method: 'get' + method: 'get', + params }) } export function getSeriesList(url) { diff --git a/src/views/dicom-show/dicom-study.vue b/src/views/dicom-show/dicom-study.vue index a6f761c4..8dac860a 100644 --- a/src/views/dicom-show/dicom-study.vue +++ b/src/views/dicom-show/dicom-study.vue @@ -194,7 +194,8 @@ export default { currentLoadIns: [], isFromCRCUpload: false, isReading: null, - activeSeriesId: null + activeSeriesId: null, + isPacs: false } }, created: function () { @@ -211,6 +212,9 @@ export default { if (this.$router.currentRoute.query.isReading) { this.isReading = this.$router.currentRoute.query.isReading } + if (this.$router.currentRoute.query.isPacs) { + this.isPacs = Boolean(this.$router.currentRoute.query.isPacs) + } this.studyId = this.$router.currentRoute.query.studyId this.isFromCRCUpload = !!this.$router.currentRoute.query.isFromCRCUpload if (this.type === 'Series') { @@ -241,7 +245,11 @@ export default { }, methods: { async loadStudy() { - const data = await getStudyInfo(this.studyId) + let params = {} + if (this.isPacs) { + params.IsPacs = true + } + const data = await getStudyInfo(this.studyId, params) if (data.IsSuccess) { if (data.Result) { this.studyCode = data.Result.StudyCode @@ -250,6 +258,11 @@ export default { this.description = data.Result.Description } let isReading = !!this.isReading ? `?IsReading=true` : '' + if (isReading && this.isPacs) { + isReading += `&IsPacs=true` + } else if (!isReading && this.isPacs) { + isReading = `?IsPacs=true` + } const url = `/series/list/${this.studyId}${isReading}` this.getSeriesList(url) } diff --git a/src/views/trials/trials-panel/visit/crc-upload/components/uploadDiocmPacs.vue b/src/views/trials/trials-panel/visit/crc-upload/components/uploadDiocmPacs.vue index ee7b8868..005a8721 100644 --- a/src/views/trials/trials-panel/visit/crc-upload/components/uploadDiocmPacs.vue +++ b/src/views/trials/trials-panel/visit/crc-upload/components/uploadDiocmPacs.vue @@ -3,96 +3,47 @@ - - \ No newline at end of file + \ No newline at end of file