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 @@ -