diff --git a/src/views/trials/trials-panel/visit/qc-check/index.vue b/src/views/trials/trials-panel/visit/qc-check/index.vue index d63381b7..f16990b5 100644 --- a/src/views/trials/trials-panel/visit/qc-check/index.vue +++ b/src/views/trials/trials-panel/visit/qc-check/index.vue @@ -814,21 +814,26 @@ export default { // 复审 async reviewTask(row) { if (!this.OtherInfo.IsQCQuestionConfirmed) return this.$alert(this.$t("trials:qcCheck:alert:questionNoConfirm")) - this.loading = true - let res = await takeOrReleaseQCTask(row.TrialId, row.Id, true) - this.loading = false - if (res.IsSuccess) { - this.rowData = { ...row } - this.qcVisible = true - } else { - if (res.Code === 5 && res.ErrorMessage) { - this.$confirm(res.ErrorMessage, { - type: 'warning', - showCancelButton: false, - callback: (action) => { }, - }) - this.getList() + try { + this.loading = true + let res = await takeOrReleaseQCTask(row.TrialId, row.Id, true) + this.loading = false + if (res.IsSuccess) { + this.rowData = { ...row } + this.qcVisible = true + } else { + if (res.Code === 5 && res.ErrorMessage) { + this.$confirm(res.ErrorMessage, { + type: 'warning', + showCancelButton: false, + callback: (action) => { }, + }) + this.getList() + } } + } catch (err) { + console.log(err) + this.loading = false } },