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) {
|
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
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue