From 363f7cb266b3b101fc4ca179b765db5e457bf83d Mon Sep 17 00:00:00 2001 From: luolananDR <1525816996@qq.com> Date: Sun, 19 Jan 2025 23:46:51 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8D=E4=BA=86=E8=AF=BE?= =?UTF-8?q?=E7=A8=8B=E7=B1=BB=E5=88=AB=E9=80=89=E6=8B=A9=E6=8C=89=E9=92=AE?= =?UTF-8?q?=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/score/index.vue | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/pages/score/index.vue b/src/pages/score/index.vue index f60a856..0d7c73e 100644 --- a/src/pages/score/index.vue +++ b/src/pages/score/index.vue @@ -427,6 +427,26 @@ watch(scoreList, (newScoreList) => { }); }, { immediate: true }); +watch(unSelectedLessonsList, (newUnSelectedLessonsList) => { + allChosen_1.value = true; + allChosen_2.value = true; + allChosen_3.value = true; + newUnSelectedLessonsList.forEach((item) => { + const isFind_1 = requiredScoreList.value.find( + storeItem => item.className === storeItem.className && item.scorePoint === storeItem.scorePoint + ); + const isFind_2 = sportsScoreList.value.find( + storeItem => item.className === storeItem.className && item.scorePoint === storeItem.scorePoint + ); + const isFind_3 = optionalScoreList.value.find( + storeItem => item.className === storeItem.className && item.scorePoint === storeItem.scorePoint + ); + if (isFind_1)allChosen_1.value = false; + if (isFind_2)allChosen_2.value = false; + if (isFind_3)allChosen_3.value = false; + }); +}, { immediate: true }); + function handleCheckboxChange(item) { item.selected = !item.selected; if (item.selected) {