1
continuous-integration/drone/push Build encountered an error
Details
continuous-integration/drone/push Build encountered an error
Details
parent
6218b536f9
commit
5e67f8b65f
|
@ -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
|
||||
}
|
||||
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue