From 23378a663b6fe6f9dac32d4870f2f743707046e3 Mon Sep 17 00:00:00 2001 From: caiyiling <1321909229@qq.com> Date: Fri, 20 Sep 2024 15:07:11 +0800 Subject: [PATCH] =?UTF-8?q?ivus=E6=A0=87=E5=87=86=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/reading.js | 10 +- .../reading/dicoms/components/DicomViewer.vue | 18 +- .../components/IVUS/QuestionFormItem.vue | 864 ------------------ .../dicoms/components/IVUS/QuestionList.vue | 356 ++++---- .../components/IVUS/QuestionTableFormItem.vue | 255 ++++++ .../dicoms/components/QuestionItem.vue | 2 +- .../reading-unit/components/QuestionsList.vue | 2 +- 7 files changed, 470 insertions(+), 1037 deletions(-) delete mode 100644 src/views/trials/trials-panel/reading/dicoms/components/IVUS/QuestionFormItem.vue create mode 100644 src/views/trials/trials-panel/reading/dicoms/components/IVUS/QuestionTableFormItem.vue diff --git a/src/store/modules/reading.js b/src/store/modules/reading.js index 7c11814a..4a411426 100644 --- a/src/store/modules/reading.js +++ b/src/store/modules/reading.js @@ -37,7 +37,7 @@ const getDefaultState = () => { function getQuestions(questions) { const criterionType = parseInt(localStorage.getItem('CriterionType')) questions.forEach(item => { - if (item.Type === 'table' && item.TableQuestions && item.TableQuestions.Answers.length > 0) { + if ((item.Type === 'table' || item.Type === 'basicTable') && item.TableQuestions && item.TableQuestions.Answers.length > 0) { item.TableQuestions.Answers.forEach(answerObj => { answerObj.isDicomReading = answerObj.IsDicomReading === 'True' @@ -94,7 +94,7 @@ function getQuestions(questions) { } function findQuestionAndRemoveLesion(questions, obj) { for (var i = 0; i < questions.length; i++) { - if (questions[i].Type === 'table' && questions[i].TableQuestions && (questions[i].LesionType === obj.lesionType) && questions[i].TableQuestions.Answers.length > 0) { + if ((questions[i].Type === 'table' || questions[i].Type === 'basicTable') && questions[i].TableQuestions && (questions[i].LesionType === obj.lesionType) && questions[i].TableQuestions.Answers.length > 0) { var idx = questions[i].TableQuestions.Answers.findIndex(i => String(i.RowIndex) === String(obj.rowIndex)) if (idx > -1) { questions[i].TableQuestions.Answers.splice(idx, 1) @@ -110,7 +110,7 @@ function findQuestionAndRemoveLesion(questions, obj) { function findQuestionAndUpdateLesion(questions, obj) { for (var i = 0; i < questions.length; i++) { var item = questions[i] - if (item.Type === 'table' && item.Id === obj.questionId) { + if ((item.Type === 'table' || item.Type === 'basicTable') && item.Id === obj.questionId) { var idx = item.TableQuestions.Answers.findIndex(i => i.RowIndex === obj.rowIndex) item.TableQuestions.Answers[idx].isLymphLesion = obj.isLymphLesion item.TableQuestions.Answers[idx].loctation = obj.lesionOrgan @@ -139,10 +139,10 @@ function findQuestionAndUpdateLesion(questions, obj) { } function findQuestionAndAddLesion(questions, obj) { for (var i = 0; i < questions.length; i++) { - if (questions[i].Type === 'table' && questions[i].TableQuestions && (questions[i].LesionType === obj.lesionType)) { + if ((questions[i].Type === 'table' || questions[i].Type === 'basicTable') && questions[i].TableQuestions && (questions[i].LesionType === obj.lesionType)) { var sourceObj = {} questions[i].TableQuestions.Questions.forEach(item => { - sourceObj[item.Id] = '' + sourceObj[item.Id] = null }) var targetObj = Object.assign(sourceObj, obj.lesionObj) targetObj.IsCurrentTaskAdd = 'True' diff --git a/src/views/trials/trials-panel/reading/dicoms/components/DicomViewer.vue b/src/views/trials/trials-panel/reading/dicoms/components/DicomViewer.vue index e2adddf3..70704988 100644 --- a/src/views/trials/trials-panel/reading/dicoms/components/DicomViewer.vue +++ b/src/views/trials/trials-panel/reading/dicoms/components/DicomViewer.vue @@ -715,17 +715,17 @@ @@ -780,7 +780,7 @@ export default { IVUSList, OCTList, 'download-dicom-and-nonedicom': downloadDicomAndNonedicom, - 'upload-dicom-and-nonedicom': uploadDicomAndNonedicom, + 'upload-dicom-and-nonedicom': uploadDicomAndNonedicom }, props: { isShow: { @@ -1162,7 +1162,7 @@ export default { getTrialCriterion() { getCriterionReadingInfo({ TrialId: this.trialId || this.$route.query.trialId, - TrialReadingCriterionId: this.trialReadingCriterionId || this.$route.query.TrialReadingCriterionId, + TrialReadingCriterionId: this.trialReadingCriterionId || this.$route.query.TrialReadingCriterionId }) .then((res) => { this.trialCriterion = res.Result diff --git a/src/views/trials/trials-panel/reading/dicoms/components/IVUS/QuestionFormItem.vue b/src/views/trials/trials-panel/reading/dicoms/components/IVUS/QuestionFormItem.vue deleted file mode 100644 index eb5448a9..00000000 --- a/src/views/trials/trials-panel/reading/dicoms/components/IVUS/QuestionFormItem.vue +++ /dev/null @@ -1,864 +0,0 @@ - - - diff --git a/src/views/trials/trials-panel/reading/dicoms/components/IVUS/QuestionList.vue b/src/views/trials/trials-panel/reading/dicoms/components/IVUS/QuestionList.vue index ef4127c5..9f60fa44 100644 --- a/src/views/trials/trials-panel/reading/dicoms/components/IVUS/QuestionList.vue +++ b/src/views/trials/trials-panel/reading/dicoms/components/IVUS/QuestionList.vue @@ -29,8 +29,8 @@ -