From 0baa90d86ff9858703d879cf2247397e5bc9d9ed Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Fri, 24 May 2024 15:27:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=B2=E8=A3=81=E8=A7=84=E5=88=99=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/ArbitrationRules.vue | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) 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({