From b7655ebad08cd319a9694f500a07ebb0afdc80a0 Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Thu, 18 Sep 2025 17:55:05 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E8=BE=91=E5=85=B6=E4=BB=96=E6=A3=80?= =?UTF-8?q?=E6=9F=A5=E9=83=A8=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/reading.js | 19 ++++++++++++++++++- .../components/uploadDicomFiles2.vue | 2 +- .../components/uploadNonDicomFiles.vue | 2 +- .../qc-check/components/qualityAssurance.vue | 4 ++-- 4 files changed, 22 insertions(+), 5 deletions(-) diff --git a/src/store/modules/reading.js b/src/store/modules/reading.js index 47dabfb7..b67ee71b 100644 --- a/src/store/modules/reading.js +++ b/src/store/modules/reading.js @@ -172,6 +172,22 @@ function getQuestionAnswer(questions, questionMark, answers) { return '' } } +function getQuerys(e) { + if (!e) return ""; + var t = {}, + r = [], + n = "", + a = ""; + try { + var i = []; + if (e.indexOf("?") >= 0 && (i = e.substring(e.indexOf("?") + 1, e.length).split("&")), i.length > 0) for (var o in i) n = (r = i[o].split("="))[0], + a = r[1], + t[n] = a + } catch (s) { + t = {} + } + return t +} async function getBodyPart(bodyPart, other) { if (!bodyPart && !other) return '' var separator = ',' @@ -183,7 +199,8 @@ async function getBodyPart(bodyPart, other) { separator = ',' } let BodyPart = {} - BodyPart.Bodypart = await Vue.prototype.$getBodyPart(Vue.prototype.$route.query.trialId) + let query = getQuerys(window.location.href) + BodyPart.Bodypart = await Vue.prototype.$getBodyPart(query.trialId) var arr = bodyPart.split(separator) var newArr = arr.map((i) => { return Vue.prototype.$fd('Bodypart', i.trim(), 'Code', BodyPart, 'Name') diff --git a/src/views/trials/trials-panel/visit/crc-upload/components/uploadDicomFiles2.vue b/src/views/trials/trials-panel/visit/crc-upload/components/uploadDicomFiles2.vue index c8cd1951..839190c1 100644 --- a/src/views/trials/trials-panel/visit/crc-upload/components/uploadDicomFiles2.vue +++ b/src/views/trials/trials-panel/visit/crc-upload/components/uploadDicomFiles2.vue @@ -509,7 +509,7 @@ $fd('Bodypart', bodyPart, 'Code', BodyPart, 'Name') }} + v-model.trim="studyForm.BodyPartForEditOther" style="width:150px;margin-left: 30px;"> diff --git a/src/views/trials/trials-panel/visit/crc-upload/components/uploadNonDicomFiles.vue b/src/views/trials/trials-panel/visit/crc-upload/components/uploadNonDicomFiles.vue index bb3219f0..58ca8f30 100644 --- a/src/views/trials/trials-panel/visit/crc-upload/components/uploadNonDicomFiles.vue +++ b/src/views/trials/trials-panel/visit/crc-upload/components/uploadNonDicomFiles.vue @@ -173,7 +173,7 @@ $fd('Bodypart', bodyPart, 'Code', BodyPart, 'Name') }} + v-model.trim="form.BodyPartForEditOther" style="width:150px;margin-left: 30px;"> diff --git a/src/views/trials/trials-panel/visit/qc-check/components/qualityAssurance.vue b/src/views/trials/trials-panel/visit/qc-check/components/qualityAssurance.vue index efa3f3d6..b772a12f 100644 --- a/src/views/trials/trials-panel/visit/qc-check/components/qualityAssurance.vue +++ b/src/views/trials/trials-panel/visit/qc-check/components/qualityAssurance.vue @@ -645,7 +645,7 @@ $fd('Bodypart', bodyPart, 'Code', BodyPart, 'Name') }} + v-model.trim="studyForm.BodyPartForEditOther" style="width:150px;margin-left: 30px;"> @@ -754,7 +754,7 @@ $fd('Bodypart', bodyPart, 'Code', BodyPart, 'Name') }} + v-model.trim="noneDicomForm.BodyPartForEditOther" style="width:150px;margin-left: 30px;">