diff --git a/src/views/trials/trials-panel/setting/reading-unit/components/ArbitrationRules.vue b/src/views/trials/trials-panel/setting/reading-unit/components/ArbitrationRules.vue index eedf29e8..f655cf74 100644 --- a/src/views/trials/trials-panel/setting/reading-unit/components/ArbitrationRules.vue +++ b/src/views/trials/trials-panel/setting/reading-unit/components/ArbitrationRules.vue @@ -617,7 +617,7 @@ export default { }); }, applySync(ReadingQuestionTrialId, index) { - return new Promise((resolve, reject) => { + return new Promise(async (resolve, reject) => { console.log(this.QuestionList[index].JudgeType); if (this.QuestionList[index].JudgeType === 0) { reject(false); @@ -637,6 +637,21 @@ export default { reject(false); return; } + if ( + this.QuestionList[index].JudgeType === 4 || + this.QuestionList[index].JudgeType === 5 + ) { + try { + let validate = await this.$refs[ + "JudgeDifferenceValue" + + this.QuestionList[index].JudgeType + + index + ][0].validate(); + if (!validate) return reject(false); + } catch (err) { + return reject(false); + } + } this.btnLoading = true; this.loading = true; setTrialCriterionJudgeQuestionAnswerGroup({