diff --git a/src/views/trials/trials-panel/reading/dicoms/components/IRecist/QuestionList.vue b/src/views/trials/trials-panel/reading/dicoms/components/IRecist/QuestionList.vue index 5c07ee5e..ba3b16c5 100644 --- a/src/views/trials/trials-panel/reading/dicoms/components/IRecist/QuestionList.vue +++ b/src/views/trials/trials-panel/reading/dicoms/components/IRecist/QuestionList.vue @@ -589,15 +589,15 @@ export default { } } }, - split(rowId, questionId) { + async split(rowId, questionId) { const loading = this.$loading({ fullscreen: true }) - var params = { - visitTaskId: this.visitTaskId, - questionId: questionId, - rowId: rowId - } - splitLesion(params).then(async res => { - loading.close() + try { + var params = { + visitTaskId: this.visitTaskId, + questionId: questionId, + rowId: rowId + } + await splitLesion(params) await this.getReadingQuestionAndAnswer() this.$nextTick(() => { this.tableQuestions.forEach(item => { @@ -607,7 +607,11 @@ export default { }) }) }) - }) + loading.close() + } catch (e) { + loading.close() + console.log(e) + } }, isCanActiveTool(toolName) { console.log('isCanActiveTool') 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 f8659653..d11436f1 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 @@ -673,17 +673,16 @@ export default { } } }, - split(rowId, questionId) { + async split(rowId, questionId) { const loading = this.$loading({ fullscreen: true }) - var params = { - visitTaskId: this.visitTaskId, - questionId: questionId, - rowId: rowId - } - splitLesion(params).then(async res => { - loading.close() + try { + var params = { + visitTaskId: this.visitTaskId, + questionId: questionId, + rowId: rowId + } + await splitLesion(params) await this.getReadingQuestionAndAnswer() - DicomEvent.$emit('readingPageUpdate', {}) this.$nextTick(() => { this.tableQuestions.forEach(item => { item.TableQuestions.Answers.forEach(i => { @@ -692,7 +691,11 @@ export default { }) }) }) - }) + loading.close() + } catch (e) { + loading.close() + console.log(e) + } }, // 融合 async handleMerge(answers, questionId, orderMark) { diff --git a/src/views/trials/trials-panel/reading/dicoms/components/Recist/QuestionList.vue b/src/views/trials/trials-panel/reading/dicoms/components/Recist/QuestionList.vue index a7bf6186..b96b73df 100644 --- a/src/views/trials/trials-panel/reading/dicoms/components/Recist/QuestionList.vue +++ b/src/views/trials/trials-panel/reading/dicoms/components/Recist/QuestionList.vue @@ -516,15 +516,15 @@ export default { } } }, - split(rowId, questionId) { + async split(rowId, questionId) { const loading = this.$loading({ fullscreen: true }) - var params = { - visitTaskId: this.visitTaskId, - questionId: questionId, - rowId: rowId - } - splitLesion(params).then(async res => { - loading.close() + try { + var params = { + visitTaskId: this.visitTaskId, + questionId: questionId, + rowId: rowId + } + await splitLesion(params) await this.getReadingQuestionAndAnswer() this.$nextTick(() => { this.tableQuestions.forEach(item => { @@ -534,7 +534,11 @@ export default { }) }) }) - }) + loading.close() + } catch (e) { + loading.close() + console.log(e) + } }, isCanActiveTool(toolName) { this.getUnSaveTarget() diff --git a/src/views/trials/trials-panel/reading/dicoms/components/RecistBM/QuestionList.vue b/src/views/trials/trials-panel/reading/dicoms/components/RecistBM/QuestionList.vue index 5370c36a..68498a50 100644 --- a/src/views/trials/trials-panel/reading/dicoms/components/RecistBM/QuestionList.vue +++ b/src/views/trials/trials-panel/reading/dicoms/components/RecistBM/QuestionList.vue @@ -517,18 +517,16 @@ export default { questionId: questionId, rowId: rowId } - const res = await splitLesion(params) - if (res.IsSuccess) { - await this.getReadingQuestionAndAnswer() - this.$nextTick(() => { - this.tableQuestions.forEach(item => { - item.TableQuestions.Answers.forEach(i => { - var refName = `${item.Id}_${i.RowIndex}` - this.$refs[refName] && this.$refs[refName][0].initForm() - }) + await splitLesion(params) + await this.getReadingQuestionAndAnswer() + this.$nextTick(() => { + this.tableQuestions.forEach(item => { + item.TableQuestions.Answers.forEach(i => { + var refName = `${item.Id}_${i.RowIndex}` + this.$refs[refName] && this.$refs[refName][0].initForm() }) }) - } + }) loading.close() } catch (e) { loading.close()