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) {
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
}
},