Skip to content

Commit

Permalink
fix add conflict bug
Browse files Browse the repository at this point in the history
  • Loading branch information
as6325400 committed Jan 17, 2024
1 parent 9f5dc8a commit 88b4b51
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/components/pages/main/serach_modes/department.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
</div>
<div class="w-full -z-40 mt-3">
<ul class = "mx-auto w-11/12 result-show overflow-y-auto overflow-x-hidden" ref="searchList" v-show="show_search_list">
<li v-for = "item in filteredClassList" class = "w-full bg-white/70 px-6 py-1 hover:bg-orange-300 hover:text-white" :class="{conflict: item.conflict}" @click="push_to_table(2, item) && addConflict(item)">
<li v-for = "item in filteredClassList" class = "w-full bg-white/70 px-6 py-1 hover:bg-orange-300 hover:text-white" :class="{conflict: item.conflict}" @click="push_to_table(2, item) && setConflictState(true);">
[{{item.id}}] {{item.class_name}} {{item.teacher}} {{item.class_time}} {{item.class_room}}
</li>
</ul>
Expand Down Expand Up @@ -118,9 +118,6 @@ async function clickDepartment()
show_search_list.value = true;
}
function addConflict(item){
item['conflict'] = true;
}
onMounted(async () =>
{
Expand Down

0 comments on commit 88b4b51

Please sign in to comment.