Skip to content

Commit

Permalink
fix:修复了课程类别选择按钮的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
luolananDR committed Jan 19, 2025
1 parent d75c36e commit 363f7cb
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/pages/score/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 363f7cb

Please sign in to comment.