From eaba3520e93ba88323f28b011f8ac2dd46f51645 Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Fri, 7 Jun 2024 15:09:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A3=80=E6=9F=A5=E9=83=A8=E4=BD=8D=E5=AD=97?= =?UTF-8?q?=E5=85=B8=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/none-dicom-show/index.vue | 11 +++++++---- .../reading/dicoms/none-dicoms.vue | 11 ++++++----- .../none-dicoms/components/VisitReview.vue | 11 ++++++----- src/views/trials/trials-panel/study/index.vue | 11 ++++++----- .../components/subjectStudy.vue | 9 +++++---- .../visit/qc-check/components/dicomFiles.vue | 19 +++++++++++++------ 6 files changed, 43 insertions(+), 29 deletions(-) diff --git a/src/views/none-dicom-show/index.vue b/src/views/none-dicom-show/index.vue index baab5ae2..46e0cf9a 100644 --- a/src/views/none-dicom-show/index.vue +++ b/src/views/none-dicom-show/index.vue @@ -82,10 +82,14 @@ export default { studyList: [], subjectVisitId: '', sudyId: '', - loading: false + loading: false, + bp:[] } }, - mounted() { + async created(){ + this.bp = await this.$getBodyPart(this.$route.query.trialId); + }, + async mounted() { if (this.$router.currentRoute.query.TokenKey) { store.dispatch('user/setToken', this.$router.currentRoute.query.TokenKey) changeURLStatic('TokenKey', '') @@ -107,9 +111,8 @@ export default { separator = ',' } var arr = bodyPart.split(separator) - let bp = await this.$getBodyPart(this.$route.query.trialId) var newArr = arr.map(i => { - return this.$fd('Bodypart', i.trim(),'Code',{Bodypart:bp},'Name') + return this.$fd('Bodypart', i.trim(),'Code',{Bodypart:this.bp},'Name') }) return newArr.join(' | ') }, diff --git a/src/views/trials/trials-panel/reading/dicoms/none-dicoms.vue b/src/views/trials/trials-panel/reading/dicoms/none-dicoms.vue index bb268d9d..fe4aac74 100644 --- a/src/views/trials/trials-panel/reading/dicoms/none-dicoms.vue +++ b/src/views/trials/trials-panel/reading/dicoms/none-dicoms.vue @@ -95,10 +95,12 @@ export default { subjectCode: '', visistTaskId: '', taskBlindName: '', - readingTaskState: 2 + readingTaskState: 2, + bp:[] } }, - mounted() { + async mounted() { + this.bp = await this.$getBodyPart(this.$route.query.trialId) if (this.$router.currentRoute.query.TokenKey) { store.dispatch('user/setToken', this.$router.currentRoute.query.TokenKey) changeURLStatic('TokenKey', '') @@ -174,7 +176,7 @@ export default { preview() { this.previewVisible = true }, - async getBodyPart(bodyPart) { + getBodyPart(bodyPart) { if (!bodyPart) return '' var separator = ',' if (bodyPart.indexOf('|') > -1) { @@ -185,9 +187,8 @@ export default { separator = ',' } var arr = bodyPart.split(separator) - let bp = await this.$getBodyPart(this.$route.query.trialId) var newArr = arr.map(i => { - return this.$fd('Bodypart', i.trim(),'Code',{Bodypart:bp},'Name') + return this.$fd('Bodypart', i.trim(),'Code',{Bodypart:this.bp},'Name') }) return newArr.join(' | ') } diff --git a/src/views/trials/trials-panel/reading/none-dicoms/components/VisitReview.vue b/src/views/trials/trials-panel/reading/none-dicoms/components/VisitReview.vue index 3359a4cc..21282d84 100644 --- a/src/views/trials/trials-panel/reading/none-dicoms/components/VisitReview.vue +++ b/src/views/trials/trials-panel/reading/none-dicoms/components/VisitReview.vue @@ -154,7 +154,8 @@ export default { associatedList: [], currentTaskId: '', otherInfo: null, - isReadingShowPreviousResults: false + isReadingShowPreviousResults: false, + bp:[] } }, computed: { @@ -162,7 +163,8 @@ export default { return this.otherInfo && this.otherInfo.IsReadingShowPreviousResults && this.isReadingShowPreviousResults } }, - mounted() { + async mounted() { + this.bp = await this.$getBodyPart(this.$route.query.trialId) this.isReadingShowPreviousResults = this.$router.currentRoute.query.isReadingShowPreviousResults !== undefined ? this.$router.currentRoute.query.isReadingShowPreviousResults : true this.getNoneDicomList(this.isReadingShowPreviousResults) @@ -267,7 +269,7 @@ export default { }) window.open(routeData.href, '_blank') }, - async getBodyPart(bodyPart) { + getBodyPart(bodyPart) { if (!bodyPart) return '' var separator = ',' if (bodyPart.indexOf('|') > -1) { @@ -278,9 +280,8 @@ export default { separator = ',' } var arr = bodyPart.split(separator) - let bp = await this.$getBodyPart(this.$route.query.trialId) var newArr = arr.map(i => { - return this.$fd('Bodypart', i.trim(),'Code',{Bodypart:bp},'Name') + return this.$fd('Bodypart', i.trim(),'Code',{Bodypart:this.bp},'Name') }) return newArr.join(' | ') } diff --git a/src/views/trials/trials-panel/study/index.vue b/src/views/trials/trials-panel/study/index.vue index dcd94dcb..6931e8fc 100644 --- a/src/views/trials/trials-panel/study/index.vue +++ b/src/views/trials/trials-panel/study/index.vue @@ -349,10 +349,12 @@ export default { previewNonDicomVisible: false, trialId: this.$route.query.trialId, tokenKey: getToken(), - openWindow: null + openWindow: null, + bp:[] } }, - mounted() { + async mounted() { + this.bp = await this.$getBodyPart(this.$route.query.trialId) this.getSite() this.getVisitPlanOptions() this.getList() @@ -476,7 +478,7 @@ export default { } }).catch(() => { this.loading = false }) }, - async getBodyPart(bodyPart) { + getBodyPart(bodyPart) { if (!bodyPart) return '' var separator = ',' if (bodyPart.indexOf('|') > -1) { @@ -487,9 +489,8 @@ export default { separator = ',' } var arr = bodyPart.split(separator) - let bp = await this.$getBodyPart(this.$route.query.trialId) var newArr = arr.map(i => { - return this.$fd('Bodypart', i.trim(),'Code',{Bodypart:bp},'Name') + return this.$fd('Bodypart', i.trim(),'Code',{Bodypart:this.bp},'Name') }) return newArr.join(' | ') }, diff --git a/src/views/trials/trials-panel/subject/brain-metastasis/components/subjectStudy.vue b/src/views/trials/trials-panel/subject/brain-metastasis/components/subjectStudy.vue index 72b95b2f..762aeb42 100644 --- a/src/views/trials/trials-panel/subject/brain-metastasis/components/subjectStudy.vue +++ b/src/views/trials/trials-panel/subject/brain-metastasis/components/subjectStudy.vue @@ -190,9 +190,11 @@ export default { seriesList: [], moment, trialId: this.$route.query.trialId, + bp:[] } }, - mounted() { + async mounted() { + this.bp = await this.$getBodyPart(this.$route.query.trialId) this.getList() }, methods: { @@ -235,7 +237,7 @@ export default { }) this.open = window.open(routeData.href, '_blank') }, - async getBodyPart(bodyPart) { + getBodyPart(bodyPart) { if (!bodyPart) return '' var separator = ',' if (bodyPart.indexOf('|') > -1) { @@ -246,9 +248,8 @@ export default { separator = ',' } var arr = bodyPart.split(separator) - let bp = await this.$getBodyPart(this.$route.query.trialId) var newArr = arr.map(i => { - return this.$fd('Bodypart', i.trim(),'Code',{Bodypart:bp},'Name') + return this.$fd('Bodypart', i.trim(),'Code',{Bodypart:this.bp},'Name') }) return newArr.join(' | ') }, diff --git a/src/views/trials/trials-panel/visit/qc-check/components/dicomFiles.vue b/src/views/trials/trials-panel/visit/qc-check/components/dicomFiles.vue index d6375223..df0a66d8 100644 --- a/src/views/trials/trials-panel/visit/qc-check/components/dicomFiles.vue +++ b/src/views/trials/trials-panel/visit/qc-check/components/dicomFiles.vue @@ -174,10 +174,12 @@ export default { petVisible: false, rowData: {}, relationInfo: {}, + bp: [], }; }, - mounted() { + async mounted() { this.getStudyInfo(); + this.bp = await this.$getBodyPart(this.$route.query.trialId); }, methods: { // 预览临床数据 @@ -237,7 +239,7 @@ export default { }); window.open(routeData.href, "_blank"); }, - async getBodyPart(bodyPart) { + getBodyPart(bodyPart) { if (!bodyPart) return ""; var separator = ","; if (bodyPart.indexOf("|") > -1) { @@ -248,10 +250,15 @@ export default { separator = ","; } var arr = bodyPart.split(separator); - let bp = await this.$getBodyPart(this.$route.query.trialId) - var newArr = arr.map(i => { - return this.$fd('Bodypart', i.trim(),'Code',{Bodypart:bp},'Name') - }) + var newArr = arr.map((i) => { + return this.$fd( + "Bodypart", + i.trim(), + "Code", + { Bodypart: this.bp }, + "Name" + ); + }); return newArr.join(" | "); }, // 获取勾选项