1
continuous-integration/drone/push Build encountered an error Details

uat
wangxiaoshuang 2025-07-17 16:50:32 +08:00
parent 6218b536f9
commit 5e67f8b65f
1 changed files with 19 additions and 14 deletions

View File

@ -814,21 +814,26 @@ export default {
// //
async reviewTask(row) { async reviewTask(row) {
if (!this.OtherInfo.IsQCQuestionConfirmed) return this.$alert(this.$t("trials:qcCheck:alert:questionNoConfirm")) if (!this.OtherInfo.IsQCQuestionConfirmed) return this.$alert(this.$t("trials:qcCheck:alert:questionNoConfirm"))
this.loading = true try {
let res = await takeOrReleaseQCTask(row.TrialId, row.Id, true) this.loading = true
this.loading = false let res = await takeOrReleaseQCTask(row.TrialId, row.Id, true)
if (res.IsSuccess) { this.loading = false
this.rowData = { ...row } if (res.IsSuccess) {
this.qcVisible = true this.rowData = { ...row }
} else { this.qcVisible = true
if (res.Code === 5 && res.ErrorMessage) { } else {
this.$confirm(res.ErrorMessage, { if (res.Code === 5 && res.ErrorMessage) {
type: 'warning', this.$confirm(res.ErrorMessage, {
showCancelButton: false, type: 'warning',
callback: (action) => { }, showCancelButton: false,
}) callback: (action) => { },
this.getList() })
this.getList()
}
} }
} catch (err) {
console.log(err)
this.loading = false
} }
}, },