From de18b8e6e3f25c1f4722ae947052c55325c96336 Mon Sep 17 00:00:00 2001 From: caiyiling <1321909229@qq.com> Date: Thu, 18 Jul 2024 17:04:26 +0800 Subject: [PATCH] =?UTF-8?q?=E9=98=85=E7=89=87=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/AdditionalAssessment.vue | 23 ++-- .../dicoms/components/CustomWwwcForm.vue | 11 +- .../reading/dicoms/components/DicomViewer.vue | 26 ++--- .../reading/dicoms/components/Hotkeys.vue | 102 +++++++++--------- .../reading/dicoms/components/Manuals.vue | 24 +++-- .../dicoms/components/NoneDicomsCanvas.vue | 10 +- .../dicoms/components/NoneDicomsViewer.vue | 2 +- .../reading/dicoms/components/Others.vue | 42 ++++---- .../reading/dicoms/components/WL.vue | 42 +++++--- .../reading/dicoms/components/WLForm.vue | 33 +++--- 10 files changed, 166 insertions(+), 149 deletions(-) diff --git a/src/views/trials/trials-panel/reading/dicoms/components/AdditionalAssessment.vue b/src/views/trials/trials-panel/reading/dicoms/components/AdditionalAssessment.vue index b4e33999..e342b6f4 100644 --- a/src/views/trials/trials-panel/reading/dicoms/components/AdditionalAssessment.vue +++ b/src/views/trials/trials-panel/reading/dicoms/components/AdditionalAssessment.vue @@ -111,10 +111,11 @@ export default { this.isRender = true }, methods: { - handleSave() { - this.$refs.assessmentForm.validate(async valid => { - if (!valid) return - const loading = this.$loading({ fullscreen: true }) + async handleSave() { + const valid = await this.$refs.assessmentForm.validate() + if (!valid) return + const loading = this.$loading({ fullscreen: true }) + try { var answers = [] for (const k in this.form) { answers.push({ questionId: k, answer: this.form[k] }) @@ -123,13 +124,15 @@ export default { visitTaskId: this.visitTaskId, answerList: answers } - submitTaskAdditionalQuestion(params).then(res => { + const res = await submitTaskAdditionalQuestion(params) + if (res.IsSuccess) { this.$emit('sign') - loading.close() - }).catch(() => { - loading.close() - }) - }) + } + loading.close() + } catch (e) { + console.log(e) + loading.close() + } }, handleCancel() { this.$emit('close') diff --git a/src/views/trials/trials-panel/reading/dicoms/components/CustomWwwcForm.vue b/src/views/trials/trials-panel/reading/dicoms/components/CustomWwwcForm.vue index 1922d17b..163b49b3 100644 --- a/src/views/trials/trials-panel/reading/dicoms/components/CustomWwwcForm.vue +++ b/src/views/trials/trials-panel/reading/dicoms/components/CustomWwwcForm.vue @@ -1,6 +1,6 @@