From f3b5a9dc2a81fac672467e7fc1afa628aa80ca69 Mon Sep 17 00:00:00 2001 From: caiyiling <1321909229@qq.com> Date: Tue, 16 Jan 2024 18:02:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=88=87=E6=8D=A2=E8=AE=BF?= =?UTF-8?q?=E8=A7=86=EF=BC=8Clugano=E6=A0=87=E5=87=86=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E5=B1=95=E7=A4=BA=E5=BC=82=E5=B8=B8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dicoms/components/Lugano/QuestionList.vue | 34 +++++++++++-------- .../reading/dicoms/components/Questions.vue | 10 +++++- 2 files changed, 29 insertions(+), 15 deletions(-) diff --git a/src/views/trials/trials-panel/reading/dicoms/components/Lugano/QuestionList.vue b/src/views/trials/trials-panel/reading/dicoms/components/Lugano/QuestionList.vue index f3dc50cd..75ccf7d2 100644 --- a/src/views/trials/trials-panel/reading/dicoms/components/Lugano/QuestionList.vue +++ b/src/views/trials/trials-panel/reading/dicoms/components/Lugano/QuestionList.vue @@ -19,7 +19,7 @@ ref="ecrf" :question-form-change-state="true" :question-form-change-num="0" - :isQulityIssues="false" + :is-qulity-issues="false" :group-classify="1" /> @@ -86,7 +86,7 @@
@@ -134,7 +134,7 @@ :question-form-change-state="true" :question-form-change-num="0" :group-classify="2" - :isQulityIssues="false" + :is-qulity-issues="false" style="margin-top:20px" @setNonTargetMeasurementStatus="setNonTargetMeasurementStatus" /> @@ -144,7 +144,7 @@ :question-form-change-state="true" :question-form-change-num="0" :group-classify="3" - :isQulityIssues="false" + :is-qulity-issues="false" @setNonTargetMeasurementStatus="setNonTargetMeasurementStatus" /> @@ -252,12 +252,14 @@ export default { DicomEvent.$on('split', measureData => { this.handleSplit(measureData.RowId, measureData.QuestionId) }) - DicomEvent.$on('refreshQuestions', async() => { + DicomEvent.$on('refreshQuestions', async(obj) => { var triald = this.$router.currentRoute.query.trialId await store.dispatch('reading/refreshDicomReadingQuestionAnswer', { trialId: triald, visitTaskId: this.visitTaskId }) - this.$refs['ecrf'].getQuestions(this.visitTaskId) - this.$refs['ecrf2'].getQuestions(this.visitTaskId) - this.$refs['ecrf3'].getQuestions(this.visitTaskId) + this.$nextTick(() => { + this.$refs['ecrf'].getQuestions(this.visitTaskId) + this.$refs['ecrf2'].getQuestions(this.visitTaskId) + this.$refs['ecrf3'].getQuestions(this.visitTaskId) + }) }) window.addEventListener('resize', this.setHeight) @@ -1020,9 +1022,11 @@ export default { this.activeName = '' }, getECRFQuestions(obj) { - this.$refs['ecrf'].getQuestions(obj.visitTaskId) - this.$refs['ecrf2'].getQuestions(obj.visitTaskId) - this.$refs['ecrf3'].getQuestions(obj.visitTaskId) + this.$nextTick(() => { + this.$refs['ecrf'].getQuestions(obj.visitTaskId) + this.$refs['ecrf2'].getQuestions(obj.visitTaskId) + this.$refs['ecrf3'].getQuestions(obj.visitTaskId) + }) }, receiveMsg(event) { if (event.data.type === 'isCanActiveNoneDicomTool') { @@ -1099,9 +1103,11 @@ export default { await this.getReadingQuestionAndAnswer() var triald = this.$router.currentRoute.query.trialId await store.dispatch('reading/refreshDicomReadingQuestionAnswer', { trialId: triald, visitTaskId: this.visitTaskId }) - this.$refs['ecrf'].getQuestions(this.visitTaskId) - this.$refs['ecrf2'].getQuestions(this.visitTaskId) - this.$refs['ecrf3'].getQuestions(this.visitTaskId) + this.$nextTick(() => { + this.$refs['ecrf'].getQuestions(this.visitTaskId) + this.$refs['ecrf2'].getQuestions(this.visitTaskId) + this.$refs['ecrf3'].getQuestions(this.visitTaskId) + }) DicomEvent.$emit('getReportInfo', true) loading.close() } diff --git a/src/views/trials/trials-panel/reading/dicoms/components/Questions.vue b/src/views/trials/trials-panel/reading/dicoms/components/Questions.vue index 976fcb1d..f23535f2 100644 --- a/src/views/trials/trials-panel/reading/dicoms/components/Questions.vue +++ b/src/views/trials/trials-panel/reading/dicoms/components/Questions.vue @@ -130,7 +130,7 @@ export default { if (this.groupClassify === 3) { this.measurements = [] this.visitTaskList[idx].QuestionMarkInfoList.forEach(i => { - if (i.MeasureData) { + if (this.isJSONString(i.MeasureData)) { i.MeasureData = JSON.parse(i.MeasureData) } this.measurements.push(i) @@ -550,6 +550,14 @@ export default { if (obj.key === this.spleenStatusId) { this.setSpleenCommentDisplay() } + }, + isJSONString(str) { + try { + JSON.stringify(JSON.parse(str)) + return true + } catch (e) { + return false + } } } }