diff --git a/src/views/trials/trials-panel/visit/qc-check/components/qualityAssurance.vue b/src/views/trials/trials-panel/visit/qc-check/components/qualityAssurance.vue index be5bff93..973620b3 100644 --- a/src/views/trials/trials-panel/visit/qc-check/components/qualityAssurance.vue +++ b/src/views/trials/trials-panel/visit/qc-check/components/qualityAssurance.vue @@ -1273,7 +1273,8 @@ export default { try { let params = { TrialId: this.data.TrialId, - UserTypeEnum: 3 + UserTypeEnum: 3, + SubjectVisitId: this.data.Id } let res = await getTrialUserRoleList(params) if (res.IsSuccess) { @@ -1293,18 +1294,17 @@ export default { this.$emit('getList') this.assignObj.visible = false this.$emit("close") - } else { - if (res.Code === 5 && res.ErrorMessage) { - this.$confirm(res.ErrorMessage, { - type: 'warning', - showCancelButton: false, - callback: (action) => { }, - }) - this.$emit('getList') - } } } catch (err) { console.log(err) + if (err.Code === 5 && err.ErrorMessage) { + this.$confirm(err.ErrorMessage, { + type: 'warning', + showCancelButton: false, + callback: (action) => { }, + }) + this.$emit('getList') + } } }, // 保存审核问题 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 f16990b5..69866e32 100644 --- a/src/views/trials/trials-panel/visit/qc-check/index.vue +++ b/src/views/trials/trials-panel/visit/qc-check/index.vue @@ -821,19 +821,18 @@ export default { 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 + if (err.Code === 5 && err.ErrorMessage) { + this.$confirm(err.ErrorMessage, { + type: 'warning', + showCancelButton: false, + callback: (action) => { }, + }) + this.getList() + } } },